getnumcomps3d

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 the second form when there are multiple subcases.

Attention: Valid only with Altair CAE Readers and Writers Extension.

Syntax

R = getnumcomps3d(filename, datatype)

R = getnumcomps3d(filename, subcase, datatype)

Inputs

filename
Path of the file.
Type: string
subcase
Subcase name or index in the file.
Type: string | int
datatype
Data type name or index in the file.
Type: string | int

Outputs

R
Number of components.

Examples

Basic getnumcomps3d example with subcases:
R = getnumcomps3d('tutorials/Comp-plate-1LC.h3d','Subcase 1 (LC-Tens)',1)
R = 4