readModeColumn impure function

Requirements.LinearAnalysis.readModeColumn  · source

Icon of readModeColumn

One column of a mode table (MA-HS-CSV: mode, f, zeta, meff_x, ...) by its header name

Extends Modelica.Icons.Function

One column of a mode table read at initialization: an MA-HS-CSV file whose first column is the mode's number and whose other columns include f (the natural frequency [Hz]) and, optionally, zeta (the damping ratio) and the effective-mass fractions meff_x, meff_y, meff_z -- the table a finite-element modal run or an experimental modal analysis gives, and the format of Chaperone's mode traces. The header row names the columns; each later row is one mode. Read in plain Modelica (Streams.readLine, Strings.scanReal), so it needs no external code. Use hasModeColumn to ask whether an optional column is there.

Copyright © 2026 Model Based Innovation LLC. All rights reserved.

Inputs

NameTypeDescription
filePath inputStringThe file's path -- a modelica:// URI resolved by the caller with loadResource, in a parameter of its own (as for readStateMatrix)
nModes inputIntegerThe number of modes: the table's rows read (the caller states it, as nx for readStateMatrix)
name inputStringThe column's header name: f [Hz], zeta [1], meff_x, meff_y, meff_z [1]

Outputs

NameTypeDescription
values[…] outputRealThe column, one value per mode