> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Interface IOperationAnalysisResultViewModel

Namespace: [VM.Operations.Post.Interfaces](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces)\
Assembly: VM.Operations.Post.dll

Interface representing common information for an analysis result view model.

```csharp theme={null}
public interface IOperationAnalysisResultViewModel : IOperationsBase
```

#### Implements

[IOperationsBase](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces.IOperationsBase.md)

## Methods

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

Creates a contour for displaying various simulation results.

```csharp theme={null}
IOperationsContourViewModel CreateContour(IList<string> entities, ContourMappingType mappingType, string characteristic, string component, string newName = null)
```

#### Parameters

`entities` [IList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1)\<[string](https://learn.microsoft.com/dotnet/api/system.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:
<ul><li>None</li><li>FENode</li><li>FEElement</li><li>FEElementNode</li><li>FEMaterial</li><li>BeamGroup</li><li>Contact</li><li>ChainedSystem</li><li>Usersubroutine</li></ul>

`characteristic` [string](https://learn.microsoft.com/dotnet/api/system.string)

The name of the characteristic. Refer to UI for Contour.

`component` [string](https://learn.microsoft.com/dotnet/api/system.string)

The name of the component. Refer to UI for Contour.

`newName` [string](https://learn.microsoft.com/dotnet/api/system.string)

The name of the Contour.

#### Returns

[IOperationsContourViewModel](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces.IOperationsContourViewModel.md)

An instance of [IOperationsContourViewModel](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/2025-r1/lib/VM.Operations.Post.Interfaces.IOperationsContourViewModel.md) representing the created contour.

#### Examples

The following example demonstrates how to use the `CreateContour` method:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
dynamic_analysis.LoadAnimationFrames(50);
entities = dynamic_analysis.GetContourables(ContourMappingType.Contact);
dynamic_analysis.CreateContour(entities, ContourMappingType.Contact, "Normal Force", "Average")
```

#### 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.

```csharp theme={null}
string[] GetContourables(ContourMappingType contourMappingType)
```

#### Parameters

`contourMappingType` ContourMappingType

The type of contour mapping.
The available options are:
<ul><li>None</li><li>FENode</li><li>FEElement</li><li>FEElementNode</li><li>FEMaterial</li><li>BeamGroup</li><li>Contact</li><li>ChainedSystem</li><li>Usersubroutine</li></ul>

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)\[]

An array of strings representing the entities applicable for the specified contour mapping type.

#### Examples

The following example demonstrates how to use the `GetContourables` method:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
dynamic_analysis.LoadAnimationFrames(50);
entities = dynamic_analysis.GetContourables(ContourMappingType.Contact);
```

#### 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.

```csharp theme={null}
double[] GetReferenceTimeArray()
```

#### Returns

[double](https://learn.microsoft.com/dotnet/api/system.double)\[]

An array of doubles representing the time values.

#### Examples

The following example demonstrates how to use the `GetReferenceTimeArray` method:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
timearray = dynamic_analysis.GetReferenceTimeArray();
```

#### 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.

```csharp theme={null}
int[] GetStateIDArray()
```

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)\[]

An array of integers representing the state IDs included in the result file.

#### Examples

The following example demonstrates how to use the `GetStateIDArray` method:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
idarray = dynamic_analysis.GetStateIDArray();
```

#### 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.

```csharp theme={null}
void MoveToAnimationFrame(int frame)
```

#### Parameters

`frame` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The frame number to move to.

#### Examples

The following example demonstrates how to use the `MoveToAnimationFrame` method:

```csharp theme={null}
filepath = "result file path"
applicationHandler = ApplicationHandler();
document = applicationHandler.GetDocument(filepath);
dynamic_analysis = document.GetAnalysisResultViewModel(AnalysisResultType.Dynamics);
dynamic_analysis.LoadAnimationFrames(50);
dynamic_analysis.MoveToAnimationFrame(10);
```

#### Remarks

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