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

# Class ansys::dpf::Result

![][C++]
![][public]

Encapsulation of results.

## Members

* [EvaluateAmplitudeAtGivenStepIndexAndSubStep](#classansys-dpf-result-1a5e672dee634e76b8a9782cdfab42461b)
* [EvaluateAmplitudeAtGivenTime](#classansys-dpf-result-1a439090991ae8107589374384bfca4933)
* [EvaluateAmplitudeAtGivenTimeIndex](#classansys-dpf-result-1a3df1f87059794e3ff557ccc63b99b171)
* [EvaluateAtGivenStepIndexAndSubStep](#classansys-dpf-result-1af60979c0660e293e0eff722767939814)
* [EvaluateAtGivenTime](#classansys-dpf-result-1ac8e07e03eba295dacfe13a100603d5c4)
* [EvaluateAtGivenTimeIndex](#classansys-dpf-result-1aaf145866535c0773a9ba3524b1f65743)
* [EvaluateWithPhaseAtGivenStepIndexAndSubStep](#classansys-dpf-result-1a75a2c05527109af736a19ca1156d85a2)
* [EvaluateWithPhaseAtGivenTime](#classansys-dpf-result-1a53d7529964052d14a60ee1d53f6d1d06)
* [EvaluateWithPhaseAtGivenTimeIndex](#classansys-dpf-result-1ae1d940c0f56673f96d91716dc736d17f)
* [Result](#classansys-dpf-result-1a73de9b4b151118e388e2985a4c88fa4a)
* [Result](#classansys-dpf-result-1a83f9071125be65acbd5319b0e9f44699)
* [Result](#classansys-dpf-result-1a5ede8932a39a76dc06b9b3b1d21ed606)
* [Result](#classansys-dpf-result-1a0087535ae7c95ba3720b5875ad54025b)
* [\~Result](#classansys-dpf-result-1a19aea748b4d29d9431c4c31e4a1d16f0)

## Public functions

### Function Result

![][public]

```cpp theme={null}
ansys::dpf::Result::Result(const char *res_name, Operator &stream_provider, Operator &timefreq_support_provider)
```

Create a new result from res\_name using given stream and timefreq.

**Parameters**:

* const char \* **res\_name**: \[in] Name of result on which to create result.
* [Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-operator.md) & **stream\_provider**: \[in] Stream from which to create result.
* [Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-operator.md) & **timefreq\_support\_provider**: \[in] Time/frequency from which to create result.

**Return type**:

### Function Result

![][public]

```cpp theme={null}
ansys::dpf::Result::Result(const char *res_name, Operator &stream_provider, Operator &timefreq_support_provider, Scoping meshScoping)
```

Create a new result from res\_name using given stream, timefreq, and scoping.

**Parameters**:

* const char \* **res\_name**: \[in] Name of result on which to create result.
* [Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-operator.md) & **stream\_provider**: \[in] Stream from which to create result.
* [Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-operator.md) & **timefreq\_support\_provider**: \[in] Time/frequency from which to create result.
* [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-scoping.md) **meshScoping**: \[in] [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-scoping.md) from which to create result.

**Return type**:

### Function Result

![][public]

```cpp theme={null}
ansys::dpf::Result::Result(const char *res_name, Operator &stream_provider, Operator &timefreq_support_provider, Scoping meshScoping, Location requested_location, int cs_id)
```

Create a new result from res\_name using given stream, timefreq, scoping, and location.

**Parameters**:

* const char \* **res\_name**: \[in] Name of result on which to create result.
* [Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-operator.md) & **stream\_provider**: \[in] Stream from which to create result.
* [Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-operator.md) & **timefreq\_support\_provider**: \[in] Time/frequency from which to create result.
* [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-scoping.md) **meshScoping**: \[in] Scoping from which to create result.
* [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/structansys-dpf-location.md) **requested\_location**: \[in] Location on which to create result.
* int **cs\_id**: \[in] Not used.

**Return type**:

### Function Result

![][public]

```cpp theme={null}
ansys::dpf::Result::Result(const char *res_name, Operator &stream_provider, Operator &timefreq_support_provider, Operator &mesh_provider, const char *named_selection, Location requested_location, bool bInclusive, int cs_id)
```

Create a new result from res\_name using given stream, timefreq, mesh, named\_selection, and location.

**Parameters**:

* const char \* **res\_name**: \[in] Name of result on which to create result.
* [Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-operator.md) & **stream\_provider**: \[in] Stream from which to create result.
* [Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-operator.md) & **timefreq\_support\_provider**: \[in] Time/frequency from which to create result.
* [Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-operator.md) & **mesh\_provider**: \[in] Mesh from which to create result.
* const char \* **named\_selection**: \[in] Named selection from which to create result.
* [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/structansys-dpf-location.md) **requested\_location**: \[in] Location on which to create result.
* bool **bInclusive**: \[in] If named\_selection is a nodal region and location is elemental, this flag indicates to include full/partial contained elements in named\_selection.
* int **cs\_id**: \[in] Not used.

**Return type**:

### Function \~Result

![][public]

```cpp theme={null}
virtual ansys::dpf::Result::~Result()
```

**Return type**:

### Function EvaluateAtGivenTime

![][public]

```cpp theme={null}
FieldsContainer ansys::dpf::Result::EvaluateAtGivenTime(double dTime, DpfError &error)
```

Get the fields associated with results at a given time.
**Returns**:

FieldsContainer for given time.

**Parameters**:

* double **dTime**: \[in] Time for which to get fields.
* [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpferror.md) & **error**: \[out] Status of call.

**Return type**: [FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-fieldscontainer.md)

### Function EvaluateAtGivenTimeIndex

![][public]

```cpp theme={null}
FieldsContainer ansys::dpf::Result::EvaluateAtGivenTimeIndex(dp_int iSet, DpfError &error)
```

Get the fields associated with results at given [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-timefreqsupport.md) index.
**Returns**:

FieldsContainer for given time/frequency index.

**Parameters**:

* [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1a60d181a1f9d29cc7cc38b25dac4401f0) **iSet**: \[in] Index of [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-timefreqsupport.md).
* [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpferror.md) & **error**: \[out] Status of call.

**Return type**: [FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-fieldscontainer.md)

### Function EvaluateAtGivenStepIndexAndSubStep

![][public]

```cpp theme={null}
FieldsContainer ansys::dpf::Result::EvaluateAtGivenStepIndexAndSubStep(dp_int iStep, dp_int iSubStep, DpfError &error)
```

Results are evaluated for at a given [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-timefreqsupport.md). This is arranged in [TimeFreqSupport::numberOfSteps](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-timefreqsupport.md#classansys-dpf-timefreqsupport-1a6b3cc037c0283450ac0234dadeddd1b6) groups of size [TimeFreqSupport::numberOfSubStepsByStepIndex](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-timefreqsupport.md#classansys-dpf-timefreqsupport-1a4333cdbfac1c49f802a9c33a18970ed5).
**Returns**:

FieldsContainer for given step and substep index.

**Parameters**:

* [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1a60d181a1f9d29cc7cc38b25dac4401f0) **iStep**: \[in] Grouping index.
* [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/namespaceansys-dpf.md#namespaceansys-dpf-1a60d181a1f9d29cc7cc38b25dac4401f0) **iSubStep**: \[in] Subgrouping index.
* [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpferror.md) & **error**: \[out] Status of call.

**Return type**: [FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-fieldscontainer.md)

### Function EvaluateAmplitudeAtGivenTime

![][public]

```cpp theme={null}
FieldsContainer ansys::dpf::Result::EvaluateAmplitudeAtGivenTime(double dTime, DpfError &error)
```

Get the amplitude of the real and imaginary part of results at a given time.
**Returns**:

FieldsContainer for given time.

**Parameters**:

* double **dTime**: \[in] Time for which to get fields.
* [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpferror.md) & **error**: \[out] Status of call.

**Return type**: [FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-fieldscontainer.md)

### Function EvaluateAmplitudeAtGivenTimeIndex

![][public]

```cpp theme={null}
FieldsContainer ansys::dpf::Result::EvaluateAmplitudeAtGivenTimeIndex(int iSet, DpfError &error)
```

Get the amplitude of the real and imaginary part of results of given [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-timefreqsupport.md) index.
**Returns**:

[FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-fieldscontainer.md) for given [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-timefreqsupport.md) index.

**Parameters**:

* int **iSet**: \[in] Index of [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-timefreqsupport.md).
* [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpferror.md) & **error**: \[out] Status of call.

**Return type**: [FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-fieldscontainer.md)

### Function EvaluateAmplitudeAtGivenStepIndexAndSubStep

![][public]

```cpp theme={null}
FieldsContainer ansys::dpf::Result::EvaluateAmplitudeAtGivenStepIndexAndSubStep(int iStep, int iSubStep, DpfError &error)
```

Get the amplitude of the real and imaginary part of results of given [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-timefreqsupport.md). Results are evaluated at a given [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-timefreqsupport.md). This is arranged in [TimeFreqSupport::numberOfSteps](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-timefreqsupport.md#classansys-dpf-timefreqsupport-1a6b3cc037c0283450ac0234dadeddd1b6) groups of size [TimeFreqSupport::numberOfSubStepsByStepIndex](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-timefreqsupport.md#classansys-dpf-timefreqsupport-1a4333cdbfac1c49f802a9c33a18970ed5).
**Returns**:

FieldsContainer for given step and substep index.

**Parameters**:

* int **iStep**: \[in] Grouping index.
* int **iSubStep**: \[in] Subgrouping index.
* [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpferror.md) & **error**: \[out] Status of call.

**Return type**: [FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-fieldscontainer.md)

### Function EvaluateWithPhaseAtGivenTime

![][public]

```cpp theme={null}
FieldsContainer ansys::dpf::Result::EvaluateWithPhaseAtGivenTime(double dTime, double dPhase, DpfError &error)
```

Get the sweeping phase at a given time and phase.
**Returns**:

FieldsContainer for given time and phase.

**Parameters**:

* double **dTime**: \[in] Time for which to get fields.
* double **dPhase**: \[in] Phase angle measured in degrees.
* [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpferror.md) & **error**: \[out] Status of call.

**Return type**: [FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-fieldscontainer.md)

### Function EvaluateWithPhaseAtGivenTimeIndex

![][public]

```cpp theme={null}
FieldsContainer ansys::dpf::Result::EvaluateWithPhaseAtGivenTimeIndex(int iSet, double dPhase, DpfError &error)
```

Get the sweeping phase at given [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-timefreqsupport.md) index and phase
**Returns**:

[FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-fieldscontainer.md) for given [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-timefreqsupport.md) index and phase.

**Parameters**:

* int **iSet**: \[in] Index of [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-timefreqsupport.md).
* double **dPhase**: \[in] Phase angle measured in degrees.
* [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpferror.md) & **error**: \[out] Status of call.

**Return type**: [FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-fieldscontainer.md)

### Function EvaluateWithPhaseAtGivenStepIndexAndSubStep

![][public]

```cpp theme={null}
FieldsContainer ansys::dpf::Result::EvaluateWithPhaseAtGivenStepIndexAndSubStep(int iStep, int iSubStep, double dPhase, DpfError &error)
```

Get the sweeping phase at given [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-timefreqsupport.md) and phase. Results are evaluated at a given [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-timefreqsupport.md). This is arranged in [TimeFreqSupport::numberOfSteps](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-timefreqsupport.md#classansys-dpf-timefreqsupport-1a6b3cc037c0283450ac0234dadeddd1b6) groups of size [TimeFreqSupport::numberOfSubStepsByStepIndex](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-timefreqsupport.md#classansys-dpf-timefreqsupport-1a4333cdbfac1c49f802a9c33a18970ed5).
**Returns**:

FieldsContainer for given step and substep index and phase.

**Parameters**:

* int **iStep**: \[in] Grouping index.
* int **iSubStep**: \[in] Subgrouping index.
* double **dPhase**: \[in] Phase angle measured in degrees.
* [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-dpferror.md) & **error**: \[out] Status of call.

**Return type**: [FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-fieldscontainer.md)

[C++]: https://img.shields.io/badge/language-C%2B%2B-blue "C++"

[const]: https://img.shields.io/badge/-const-lightblue "const"

[public]: https://img.shields.io/badge/-public-brightgreen "public"

[static]: https://img.shields.io/badge/-static-lightgrey "static"
