ResultTableData class is used to handle each table value for the result table.
The class can be called from ResultTable class.
.
More...
Public Member Functions | |
| double | GetAngle (int row) |
| Returns the angle in the specified row as a real number for models with rotation motion. More... | |
| String | GetAngleUnit () |
| Returns the unit of the angle as a string for models with rotation motion. More... | |
| String | GetColName (int col) |
| Returns the name of the column as a string. More... | |
| int | GetCols () |
| Returns the number of columns in the result table as an integer. More... | |
| String | GetComponent () |
| Returns the name of the components (x, y, z) or complex numbers (real, imaginary) as a string. More... | |
| double | GetDistance (int row) |
| Returns the distance in the specified row as a real number for models with translation motion. More... | |
| String | GetDistanceUnit () |
| Returns the unit of distance as a string for models with translation motion. More... | |
| String | GetName () |
| Returns the name of the result table as a string. More... | |
| String | GetRowName (int row) |
| Returns the name of the row as a string. More... | |
| int | GetRows () |
| Returns the number of rows in the result table as an integer. More... | |
| int | GetStep (int row) |
| Returns the number of steps in the specified row as a real number. More... | |
| double | GetTime (int row) |
| Returns the time in the specified row as a real number. More... | |
| String | GetTimeUnit () |
| Returns the unit of time as a string. More... | |
| double | GetValue (int row, Variant &val) |
| Returns the value in the specified cell as a real number. A column is specified by an index or name. More... | |
| String | GetValueUnit () |
| Returns the unit for physical amounts as a string. More... | |
| bool | IsValid () |
| Returns True if an object is valid. More... | |
| bool | IsValidStep (int step) |
| Returns whether or not the specified number of steps is valid. More... | |
| void | SetComponent (String &name) |
| Specifies the components (x, y, z) or complex numbers (real, imaginary) for a result. More... | |
| void | WriteAllComponents (String &filename, String &type, int step) |
| Exports all components for the data with the specified step number to a file. More... | |
| void | WriteSingleStep (String &filename, String &type, int step) |
| Exports the data of the specified step number to a file. More... | |
| void | WriteSummary (String &filename, String &summarytype, int fromstep, int tostep) |
| Exports all the data accumulated in the results table to the file. More... | |
| void | WriteTable (String &filename, String &type) |
| Exports the data to a file. More... | |
ResultTableData class is used to handle each table value for the result table.
The class can be called from ResultTable class.
.
Example of creating the class object:
| double ResultTableData::GetAngle | ( | int | row | ) |
Returns the angle in the specified row as a real number for models with rotation motion.
| row | Row number |
| String ResultTableData::GetAngleUnit | ( | ) |
Returns the unit of the angle as a string for models with rotation motion.
| String ResultTableData::GetColName | ( | int | col | ) |
Returns the name of the column as a string.
| col | Column number |
| int ResultTableData::GetCols | ( | ) |
Returns the number of columns in the result table as an integer.
In the case of the frequency response analysis result table, the combination of the real part and the imaginary part is counted as one column.
| String ResultTableData::GetComponent | ( | ) |
Returns the name of the components (x, y, z) or complex numbers (real, imaginary) as a string.
| double ResultTableData::GetDistance | ( | int | row | ) |
Returns the distance in the specified row as a real number for models with translation motion.
| row | Row number |
| String ResultTableData::GetDistanceUnit | ( | ) |
Returns the unit of distance as a string for models with translation motion.
| String ResultTableData::GetName | ( | ) |
Returns the name of the result table as a string.
| String ResultTableData::GetRowName | ( | int | row | ) |
Returns the name of the row as a string.
| row | Row number |
| int ResultTableData::GetRows | ( | ) |
Returns the number of rows in the result table as an integer.
In the static analysis result table, the number of rows with all parts expanded is obtained. For example, the right figure and the left figure in the figure below are the same table, but the number of rows in the right figure is obtained.
| int ResultTableData::GetStep | ( | int | row | ) |
Returns the number of steps in the specified row as a real number.
| row | Row number |
| double ResultTableData::GetTime | ( | int | row | ) |
Returns the time in the specified row as a real number.
| row | Row number |
| String ResultTableData::GetTimeUnit | ( | ) |
Returns the unit of time as a string.
| double ResultTableData::GetValue | ( | int | row, |
| Variant & | val | ||
| ) |
Returns the value in the specified cell as a real number. A column is specified by an index or name.
| row | Row number |
| val | Column index or Column name |
| String ResultTableData::GetValueUnit | ( | ) |
Returns the unit for physical amounts as a string.
| bool ResultTableData::IsValid | ( | ) |
Returns True if an object is valid.
| bool ResultTableData::IsValidStep | ( | int | step | ) |
Returns whether or not the specified number of steps is valid.
| step | Number of steps |
| void ResultTableData::SetComponent | ( | String & | name | ) |
Specifies the components (x, y, z) or complex numbers (real, imaginary) for a result.
| name | Component or complex number name
x : x-component
y : y-component
z : z-component
Real : Real part
Imaginary : Imaginary part
|
This function affects objects that are defined with the "Set" function (in this case, tables).
Define the target table with the "Set" function before using this function.
For more information, see the example in ResultTable::SetXYZComponent .
| void ResultTableData::WriteAllComponents | ( | String & | filename, |
| String & | type, | ||
| int | step | ||
| ) |
Exports all components for the data with the specified step number to a file.
| filename | File path |
| type | |
| step | Step number |
| void ResultTableData::WriteSingleStep | ( | String & | filename, |
| String & | type, | ||
| int | step | ||
| ) |
Exports the data of the specified step number to a file.
| filename | File path |
| type | |
| step | Step number |
| void ResultTableData::WriteSummary | ( | String & | filename, |
| String & | summarytype, | ||
| int | fromstep, | ||
| int | tostep | ||
| ) |
Exports all the data accumulated in the results table to the file.
| filename | File name of destination folder |
| summarytype | Accumulation method
Average : Average value
RMS : RMS (root mean square)
Maximum : Maximum value
Minimum : Minimum value
Sum : Total sum
|
| fromstep | Number of start steps |
| tostep | Number of end steps |
| void ResultTableData::WriteTable | ( | String & | filename, |
| String & | type | ||
| ) |
Exports the data to a file.
| filename | File path |
| type |
The file format to be output is determined by the specified extension.