getnumcomps
Returns the number of components within a given data type. The function has two forms. Use the first form when there is zero or at most one subcase and second form when there are multiple subcases.
Attention: Valid only with Altair CAE Readers and Writers Extension.
Syntax
getnumcomps(filename, datatype)
getnumcomps(filename, subcase, datatype)
R = getnumcomps(...)
Inputs
- filename
- Path of the file.
- subcase
- Subcase name or index in the file.
- datatype
- Data type name or index in the file.
Outputs
- R
- Number of components.
Examples
Basic getnumcomps example without
subcases:
getnumcomps('Path/To/File/ANGACC', 'Angular Acceleration')
R = 3
Basic getnumcomps example with
subcases:
getnumcomps('Path/To/File/bezel.res','Complex','Velocities (c)')
R = 6