Skip to main content
Namespace: VM.Operations.Post.Interfaces
Assembly: VM.Operations.Post.dll
Interface representing common information for an analysis result view model.

Implements

IOperationsBase

Examples

For an example that includes information about interfaces, see this example. To view the examples, refer to the location of the ‘Install_Path\Motion\Document\Postprocessor API for Python.zip’ file.

Methods

CreateContour(IList<string>, ContourMappingType, string, string, string)

Creates a contour for displaying various simulation results. Please refer to this here link.

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

For an example that includes this property, see the Interface IOperationAnalysisResultViewModel.

Remarks

This method allows the creation of a contour for visualizing simulation results based on various parameters. The target entities are specified by the entities 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

For an example that includes this property, see the Interface IOperationAnalysisResultViewModel.

Remarks

This method returns the entities that correspond to the given contourMappingType. 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

For an example that includes this property, see the Interface IOperationAnalysisResultViewModel.

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

For an example that includes this property, see the Interface IOperationAnalysisResultViewModel.

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

For an example that includes this property, see the Interface IOperationAnalysisResultViewModel.

Remarks

This method sets the animation to the specified frame, allowing for control over the playback position.