Assembly: VM.Operations.Post.dll Interface representing common information for an analysis result view model.
Implements
IOperationsBaseMethods
CreateContour(IList<string>, ContourMappingType, string, string, string)
Creates a contour for displaying various simulation results.Parameters
entities IList<string>
The names of the target entities.
mappingType ContourMappingType
The MappingType is an option to choose objects for contour display. Refer to UI for Contour.
The available options are:
- None
- FENode
- FEElement
- FEElementNode
- FEMaterial
- BeamGroup
- Contact
- ChainedSystem
- Usersubroutine
characteristic string
The name of the characteristic. Refer to UI for Contour.
component string
The name of the component. Refer to UI for Contour.
newName string
The name of the Contour.
Returns
IOperationsContourViewModel An instance of IOperationsContourViewModel representing the created contour.Examples
The following example demonstrates how to use theCreateContour method:
Remarks
This method allows the creation of a contour for visualizing simulation results based on various parameters. The target entities are specified by theentities parameter, which is a list of entity names.
The mappingType parameter determines the type of contour mapping to be used, with options
including nodes, elements, and specialized groups. The characteristic and component
parameters specify the characteristic and component for the contour, respectively. Optionally, a new name for
the contour can be provided using the newName parameter. If not specified, a default name will be used.
GetContourables(ContourMappingType)
Retrieves the entities that are applicable for the specified contour mapping type.Parameters
contourMappingType ContourMappingType
The type of contour mapping.
The available options are:
- None
- FENode
- FEElement
- FEElementNode
- FEMaterial
- BeamGroup
- Contact
- ChainedSystem
- Usersubroutine
Returns
string[] An array of strings representing the entities applicable for the specified contour mapping type.Examples
The following example demonstrates how to use theGetContourables method:
Remarks
This method returns the entities that correspond to the givencontourMappingType.
If there are applicable entities, they are returned as an array of strings.
GetReferenceTimeArray()
Retrieves an array of time values from the result file.Returns
double[] An array of doubles representing the time values.Examples
The following example demonstrates how to use theGetReferenceTimeArray method:
Remarks
This method extracts and returns the array of time values from the result file. The returned array contains the time points relevant to the simulation or analysis.GetStateIDArray()
Retrieves an array of state IDs from the result file.Returns
int[] An array of integers representing the state IDs included in the result file.Examples
The following example demonstrates how to use theGetStateIDArray method:
Remarks
This method extracts and returns the array of state IDs from the result file. The returned array contains the IDs of all states relevant to the simulation or analysis.MoveToAnimationFrame(int)
Moves the animation to the specified frame.Parameters
frame int
The frame number to move to.
Examples
The following example demonstrates how to use theMoveToAnimationFrame method: