CalculationDefinition class is used for the calculation processing of results (Parts, faces, and edges).
The class can be obtained from Study class.
.
More...
Public Member Functions | |
| void | AddGroup (MeshGroup *set, int group=0) |
| Adds MeshGroup object to the calculation. More... | |
| void | AddSelected (Selection *selection) |
| Adds the parts, faces, or edges that is selected using the Selection object to a calculation. More... | |
| void | AddSet (Set *set, int group=0) |
| Adds a set object to a calculation. More... | |
| void | AddSetFromModel (Variant &val, int group=0) |
| Adds a set with a specified name or index to a calculation. More... | |
| void | AddTarget (String &name) |
| Adds an arbitrary section / arbitrary edge to the calculation target. More... | |
| void | ClearParts () |
| Removes all parts, faces, or edges from calculation. | |
| void | ClearTargets () |
| Deletes all arbitrary sections and arbitrary edges from the calculation target. | |
| String | GetCalculationType () |
| Returns the calculation type. More... | |
| StringList | GetCalculationTypeNames () |
| Returns a list of calculation types. More... | |
| DataSet * | GetCaseDataSet (int caseno) |
| Returns DataSet for a specified case. More... | |
| String | GetComponent () |
| Returns CalculationDefinition object for a specified name or index. This function is used to operate the properties of a calculation. More... | |
| Variant | GetComponentNames () |
| Returns a list of components. More... | |
| DataSet * | GetDataSet () |
| Returns a DataSet object. More... | |
| Point * | GetDirectionAxis () |
| Returns the direction axis coordinates. | |
| bool | GetDirectionReverse () |
| Returns whether to reverse the edge or surface direction in the case of a line integral or surface integral. | |
| bool | GetFullModelExpansion () |
| Whether to use full model expansion. | |
| String | GetName () |
| Returns a title. More... | |
| int | GetNumCopies () |
| Returns the number of copies. | |
| double | GetOffsetAngle () |
| Returns the angle offset. | |
| double | GetOffsetTranslation () |
| Returns the translation offset. | |
| Point * | GetOrigin () |
| Returns the origin coordinates. | |
| Variant | GetParts () |
| Returns an ID list of parts, faces, or edges as a point sequence. More... | |
| double | GetPhase () |
| Returns a phase. More... | |
| String | GetPhaseType () |
| Returns the phase type. More... | |
| int | GetReferenceStep () |
| Returns reference step. More... | |
| String | GetResultCoordinateName () |
| Returns the name of the coordinate system being used. More... | |
| String | GetResultCoordinateNameList () |
| Returns a list of coordinate systems that can be used. More... | |
| String | GetResultType () |
| Returns name of a result type as a string. More... | |
| Variant | GetResultTypeNames () |
| Returns a list of result type names. More... | |
| double | GetScaleFactor () |
| Returns the scale factor. More... | |
| Selection * | GetSelection () |
| Returns the parts, faces, or edges included in a calculation as Selection object. More... | |
| Set * | GetSet (int index, int group=0) |
| Returns sets included in a calculation with a specified name or index. More... | |
| double | GetTemperature () |
| Returns temperature. More... | |
| double | GetThreshold () |
| Returns a boundary value. More... | |
| String | GetUserComponentType () |
| Returns the user component selected in the result type. More... | |
| bool | IsOneResultPerSet () |
| Whether to split one result per set. | |
| bool | IsValid () |
| Returns True if an object is valid. More... | |
| int | NumSets (int group=0) |
| Returns the number of sets included in a calculation with a specified name or index. More... | |
| void | RemoveAllSets (int group=0) |
| Removes all sets from a calculation. More... | |
| void | RemoveSet (Variant &val, int group=0) |
| Removes a set with a specified name or index from a calculation. More... | |
| void | SetCalculationType (String &name) |
| Specifies the calculation method. More... | |
| void | SetComponent (String &name) |
| Specifies a component name. More... | |
| void | SetDirectionAxis (double x, double y, double z) |
| Specifies the direction for pattern copy. More... | |
| void | SetDirectionReverse (bool reverse) |
| Specifies whether to reverse the edge or surface direction in the case of line integral or surface integral. More... | |
| void | SetFullModelExpansion (bool useFullModelExpansion) |
| Specifies whether to use full model expansion. More... | |
| void | SetHistoryAllSteps () |
| Specifies all steps to be referenced by the history function. | |
| void | SetHistorySteps (String array &steps) |
| Specifies the range of steps to be referenced by the history function. More... | |
| void | SetHistoryStepsByString (String &str) |
| Specifies multiple steps to be referenced by the history function using a string. More... | |
| void | SetName (String &name) |
| Specifies a title. More... | |
| void | SetNumCopies (Variant &numCopies) |
| Specifies the number of pattern copies. More... | |
| void | SetOffsetAngle (Variant &offsetAngle) |
| Specifies the offset angle. More... | |
| void | SetOffsetTranslation (Variant &offsetTranslation) |
| Returns the offset translation. More... | |
| void | SetOneResultPerSet (bool oneResultPerSet) |
| Splits into one result per set. More... | |
| void | SetOrigin (double x, double y, double z) |
| Specifies the origin for pattern copy. More... | |
| void | SetPhase (double value) |
| Specifies a phase. More... | |
| void | SetPhaseType (Variant &value) |
| Specifies the phase type. More... | |
| void | SetReferenceStep (Variant &step) |
| Specifies reference step. More... | |
| void | SetResultCoordinate (Variant &name) |
| Specifies coordinate system to be used by specifying its name or index. More... | |
| void | SetResultType (String &typeName, String &sourceTitle=String()) |
| Specifies the result type. More... | |
| void | SetScaleFactor (Variant &scaleFactor) |
| Specifies the scale factor. More... | |
| void | SetTemperature (Variant &value) |
| Specifies temperature. More... | |
| void | SetThreshold (Variant &value) |
| Specifies the boundary value. More... | |
| void | SetUseFullModelConversion (bool use) |
| Specifies whether to use the full model conversion or not. More... | |
| void | SetUsePatternCopy (bool usePatternCopy) |
| Uses automatic pattern copy. More... | |
| void | SetUserComponentType (String &name) |
| Specifies user component. More... | |
| void | SetUseRotationCopy (bool useRotationCopy) |
| Specifies whether to use rotation or translation pattern copy. More... | |
| bool | UseFullModelConversion () |
| Returns whether to use the full model conversion or not. | |
| bool | UsePatternCopy () |
| Whether to use automatic pattern copy. | |
| bool | UseRotationCopy () |
| Uses rotation pattern copy or translation copy. | |
CalculationDefinition class is used for the calculation processing of results (Parts, faces, and edges).
The class can be obtained from Study class.
.
Example of calling the class object:
| void CalculationDefinition::AddGroup | ( | MeshGroup * | set, |
| int | group = 0 |
||
| ) |
| void CalculationDefinition::AddSelected | ( | Selection * | selection | ) |
| void CalculationDefinition::AddSet | ( | Set * | set, |
| int | group = 0 |
||
| ) |
| void CalculationDefinition::AddSetFromModel | ( | Variant & | val, |
| int | group = 0 |
||
| ) |
Adds a set with a specified name or index to a calculation.
| val | Name or index of the set |
| group | Group |
| void CalculationDefinition::AddTarget | ( | String & | name | ) |
Adds an arbitrary section / arbitrary edge to the calculation target.
| name | Name to be calculate target |
| String CalculationDefinition::GetCalculationType | ( | ) |
Returns the calculation type.
| StringList CalculationDefinition::GetCalculationTypeNames | ( | ) |
Returns a list of calculation types.
| DataSet * CalculationDefinition::GetCaseDataSet | ( | int | caseno | ) |
| String CalculationDefinition::GetComponent | ( | ) |
Returns CalculationDefinition object for a specified name or index. This function is used to operate the properties of a calculation.
| val | Name or index |
| Variant CalculationDefinition::GetComponentNames | ( | ) |
Returns a list of components.
| DataSet * CalculationDefinition::GetDataSet | ( | ) |
| String CalculationDefinition::GetName | ( | ) |
Returns a title.
| Variant CalculationDefinition::GetParts | ( | ) |
Returns an ID list of parts, faces, or edges as a point sequence.
| double CalculationDefinition::GetPhase | ( | ) |
Returns a phase.
| String CalculationDefinition::GetPhaseType | ( | ) |
Returns the phase type.
| int CalculationDefinition::GetReferenceStep | ( | ) |
Returns reference step.
This command is used when the demagnetization ratio (Compared to reference step) is selected as the result type.
| String CalculationDefinition::GetResultCoordinateName | ( | ) |
Returns the name of the coordinate system being used.
| String CalculationDefinition::GetResultCoordinateNameList | ( | ) |
Returns a list of coordinate systems that can be used.
| String CalculationDefinition::GetResultType | ( | ) |
Returns name of a result type as a string.
| Variant CalculationDefinition::GetResultTypeNames | ( | ) |
Returns a list of result type names.
| double CalculationDefinition::GetScaleFactor | ( | ) |
Returns the scale factor.
| Selection * CalculationDefinition::GetSelection | ( | ) |
| Set * CalculationDefinition::GetSet | ( | int | index, |
| int | group = 0 |
||
| ) |
| double CalculationDefinition::GetTemperature | ( | ) |
Returns temperature.
This command is used when the demagnetization ratio (Compared to undemagnetized state, temperature dependent) is selected as the result type.
| double CalculationDefinition::GetThreshold | ( | ) |
Returns a boundary value.
| String CalculationDefinition::GetUserComponentType | ( | ) |
Returns the user component selected in the result type.
| bool CalculationDefinition::IsValid | ( | ) |
Returns True if an object is valid.
| int CalculationDefinition::NumSets | ( | int | group = 0 | ) |
Returns the number of sets included in a calculation with a specified name or index.
| group | Group ID for calculation |
| void CalculationDefinition::RemoveAllSets | ( | int | group = 0 | ) |
Removes all sets from a calculation.
| group | Group ID for calculation |
| void CalculationDefinition::RemoveSet | ( | Variant & | val, |
| int | group = 0 |
||
| ) |
Removes a set with a specified name or index from a calculation.
| val | Name or index of the set |
| group | Group ID for calculation |
| void CalculationDefinition::SetCalculationType | ( | String & | name | ) |
Specifies the calculation method.
| name | Calculation method
max : Maximum value
min : Minimum value
range : Range (maximum value - minimum value)
sum : Total sum
average : Simple average
integral_average : Integral average
integral : Integral (part)
surface_integral : Surface integral
line_integral : Line integral
below_threshold : Region below threshold
above_threshold : Region above threshold
|
| void CalculationDefinition::SetComponent | ( | String & | name | ) |
Specifies a component name.
| name | Component name |
| void CalculationDefinition::SetDirectionAxis | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
Specifies the direction for pattern copy.
| x | x-axis |
| y | y-axis |
| z | z-axis |
| void CalculationDefinition::SetDirectionReverse | ( | bool | reverse | ) |
Specifies whether to reverse the edge or surface direction in the case of line integral or surface integral.
| reverse | Reverse the edge or surface direction |
| void CalculationDefinition::SetFullModelExpansion | ( | bool | useFullModelExpansion | ) |
Specifies whether to use full model expansion.
| useFullModelExpansion | whether to use full model expansion |
| void CalculationDefinition::SetHistorySteps | ( | String array & | historySteps | ) |
Specifies the range of steps to be referenced by the history function.
| historySteps | Step |
| void CalculationDefinition::SetHistoryStepsByString | ( | String & | str | ) |
Specifies multiple steps to be referenced by the history function using a string.
The steps can be specified either with a comma (e.g. 1,2,3) or by the range (e.g. 4-8).
| str | Step |
| void CalculationDefinition::SetName | ( | String & | name | ) |
Specifies a title.
| name | Name |
| void CalculationDefinition::SetNumCopies | ( | Variant & | numCopies | ) |
Specifies the number of pattern copies.
| numCopies | Number of copies to be made |
| void CalculationDefinition::SetOffsetAngle | ( | Variant & | offsetAngle | ) |
Specifies the offset angle.
| offsetAngle | Offset angle |
| void CalculationDefinition::SetOffsetTranslation | ( | Variant & | offsetTranslation | ) |
Returns the offset translation.
| offsetTranslation | Offset translation |
| void CalculationDefinition::SetOneResultPerSet | ( | bool | oneResultPerSet | ) |
Splits into one result per set.
| oneResultPerSet | Whether to split into one result per set. |
| void CalculationDefinition::SetOrigin | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
Specifies the origin for pattern copy.
| x | x-axis |
| y | y-axis |
| z | z-axis |
| void CalculationDefinition::SetPhase | ( | double | value | ) |
Specifies a phase.
| value | Phase |
| void CalculationDefinition::SetPhaseType | ( | Variant & | value | ) |
Specifies the phase type.
| value | Phase type
"RealImag" or "0" = Displays real part and imaginary part
"AmplitudePhase" or "1" = Displays amplitude and phase
"FixedPhase" or "2" = Specified phase
|
| void CalculationDefinition::SetReferenceStep | ( | Variant & | step | ) |
Specifies reference step.
| step | Reference step ID |
This command is used to display the demagnetization ratio (Compared to reference step) for a magnetic field analysis.
| void CalculationDefinition::SetResultCoordinate | ( | Variant & | name | ) |
Specifies coordinate system to be used by specifying its name or index.
| name | Name or index of the coordinate system |
| void CalculationDefinition::SetResultType | ( | String & | typeName, |
| String & | sourceTitle = String() |
||
| ) |
Specifies the result type.
| typeName | Result type name |
| sourceTitle | Title of the result calculation, such as FFT, when referencing the calculation tool. |
sourceTitle can be omitted.
For information about the condition type name that can be specified as typeName , see Properties and Flags for Calculating Results .
| void CalculationDefinition::SetScaleFactor | ( | Variant & | scaleFactor | ) |
Specifies the scale factor.
| scaleFactor | Scale factor |
| void CalculationDefinition::SetTemperature | ( | Variant & | value | ) |
Specifies temperature.
| value | Temperature |
This command is used to display the demagnetization ratio (Compared to undemagnetized state, temperature dependent) for a magnetic field analysis.
| void CalculationDefinition::SetThreshold | ( | Variant & | value | ) |
Specifies the boundary value.
| value | Boundary value |
| void CalculationDefinition::SetUseFullModelConversion | ( | bool | use | ) |
Specifies whether to use the full model conversion or not.
| use | Use the full model conversion |
| void CalculationDefinition::SetUsePatternCopy | ( | bool | usePatternCopy | ) |
Uses automatic pattern copy.
| usePatternCopy | Whether to use automatic pattern copy. |
| void CalculationDefinition::SetUserComponentType | ( | String & | name | ) |
Specifies user component.
| name | User component name |
| void CalculationDefinition::SetUseRotationCopy | ( | bool | useRotationCopy | ) |
Specifies whether to use rotation or translation pattern copy.
| useRotationCopy | Whether to use rotation or translation pattern copy |