hasModeColumn impure function
Requirements.LinearAnalysis.hasModeColumn
ยท source
Whether a mode table has a column of this name
Extends Modelica.Icons.Function
Returns true if the first (header) row of the comma-separated mode table filePath
contains the column name name, and false if it does not or if the file is empty. The
header is read with Modelica.Utilities.Streams.readLine and searched with
columnIndex; the file is closed afterwards. Use it to decide whether an optional column such as
zeta or meff_z can be read with readModeColumn, for example to set parameter
damped of ModeTableCheck or ModesWithinRegion.
Copyright © 2026 Model Based Innovation LLC. All rights reserved.
Inputs
| Name | Type | Description |
|---|---|---|
filePath input | String | The file's path (loadResource of the URI) |
name input | String | The column's header name |
Outputs
| Name | Type | Description |
|---|---|---|
has output | Boolean | = true, if the header row contains the column name |