hasModeColumn impure function

Requirements.LinearAnalysis.hasModeColumn  ยท source

Icon of hasModeColumn

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

NameTypeDescription
filePath inputStringThe file's path (loadResource of the URI)
name inputStringThe column's header name

Outputs

NameTypeDescription
has outputBoolean= true, if the header row contains the column name