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

# ansys::dpf::Result Class Reference

`#include <dpf_result.h>`

## Public Member Functions

| Type | Name |
| - | - |
| | [Result](#a73de9b4b151118e388e2985a4c88fa4a) (const char \*res\_name, [Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Operator.md) \&stream\_provider, [Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Operator.md) \&timefreq\_support\_provider) |
| | [Result](#a83f9071125be65acbd5319b0e9f44699) (const char \*res\_name, [Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Operator.md) \&stream\_provider, [Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Operator.md) \&timefreq\_support\_provider, [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Scoping.md) meshScoping) |
| | [Result](#a5ede8932a39a76dc06b9b3b1d21ed606) (const char \*res\_name, [Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Operator.md) \&stream\_provider, [Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Operator.md) \&timefreq\_support\_provider, [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Scoping.md) meshScoping, [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) requested\_location, int cs\_id) |
| | [Result](#a0087535ae7c95ba3720b5875ad54025b) (const char \*res\_name, [Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Operator.md) \&stream\_provider, [Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Operator.md) \&timefreq\_support\_provider, [Operator](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Operator.md) \&mesh\_provider, const char \*named\_selection, [Location](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/structansys_1_1dpf_1_1Location.md) requested\_location, bool bInclusive, int cs\_id) |
| [FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1FieldsContainer.md) | [EvaluateAtGivenTime](#ac8e07e03eba295dacfe13a100603d5c4) (double dTime, [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfError.md) \&error) |
| [FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1FieldsContainer.md) | [EvaluateAtGivenTimeIndex](#aaf145866535c0773a9ba3524b1f65743) ([dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) iSet, [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfError.md) \&error) |
| [FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1FieldsContainer.md) | [EvaluateAtGivenStepIndexAndSubStep](#af60979c0660e293e0eff722767939814) ([dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) iStep, [dp\_int](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/namespaceansys_1_1dpf#a60d181a1f9d29cc7cc38b25dac4401f0) iSubStep, [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfError.md) \&error) |
| [FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1FieldsContainer.md) | [EvaluateAmplitudeAtGivenTime](#a439090991ae8107589374384bfca4933) (double dTime, [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfError.md) \&error) |
| [FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1FieldsContainer.md) | [EvaluateAmplitudeAtGivenTimeIndex](#a3df1f87059794e3ff557ccc63b99b171) (int iSet, [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfError.md) \&error) |
| [FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1FieldsContainer.md) | [EvaluateAmplitudeAtGivenStepIndexAndSubStep](#a5e672dee634e76b8a9782cdfab42461b) (int iStep, int iSubStep, [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfError.md) \&error) |
| [FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1FieldsContainer.md) | [EvaluateWithPhaseAtGivenTime](#a53d7529964052d14a60ee1d53f6d1d06) (double dTime, double dPhase, [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfError.md) \&error) |
| [FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1FieldsContainer.md) | [EvaluateWithPhaseAtGivenTimeIndex](#ae1d940c0f56673f96d91716dc736d17f) (int iSet, double dPhase, [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfError.md) \&error) |
| [FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1FieldsContainer.md) | [EvaluateWithPhaseAtGivenStepIndexAndSubStep](#a75a2c05527109af736a19ca1156d85a2) (int iStep, int iSubStep, double dPhase, [DpfError](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1DpfError.md) \&error) |

## Detailed Description

Encapsulation of results.

**Examples**

[DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/DataApis_8cpp-example.md), [ModelTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/ModelTest_8cpp-example.md), and [ResultTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/ResultTest_8cpp-example.md).

## Constructor & Destructor Documentation

### Result() \[1/4]

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

`inline`

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

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | res\_name | Name of result on which to create result. |
| \[in] | stream\_provider | Stream from which to create result. |
| \[in] | timefreq\_support\_provider | Time/frequency from which to create result. |

### Result() \[2/4]

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

`inline`

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

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | res\_name | Name of result on which to create result. |
| \[in] | stream\_provider | Stream from which to create result. |
| \[in] | timefreq\_support\_provider | Time/frequency from which to create result. |
| \[in] | meshScoping | [Scoping](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1Scoping.md) from which to create result. |

### Result() \[3/4]

```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
)
```

`inline`

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

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | res\_name | Name of result on which to create result. |
| \[in] | stream\_provider | Stream from which to create result. |
| \[in] | timefreq\_support\_provider | Time/frequency from which to create result. |
| \[in] | meshScoping | Scoping from which to create result. |
| \[in] | requested\_location | Location on which to create result. |
| \[in] | cs\_id | Not used. |

### Result() \[4/4]

```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
)
```

`inline`

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

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | res\_name | Name of result on which to create result. |
| \[in] | stream\_provider | Stream from which to create result. |
| \[in] | timefreq\_support\_provider | Time/frequency from which to create result. |
| \[in] | mesh\_provider | Mesh from which to create result. |
| \[in] | named\_selection | Named selection from which to create result. |
| \[in] | requested\_location | Location on which to create result. |
| \[in] | bInclusive | If named\_selection is a nodal region and location is elemental, this flag indicates to include full/partial contained elements in named\_selection. |
| \[in] | cs\_id | Not used. |

## Member Function Documentation

### EvaluateAmplitudeAtGivenStepIndexAndSubStep()

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

`inline`

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

**Returns**

FieldsContainer for given step and substep index.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | iStep | Grouping index. |
| \[in] | iSubStep | Subgrouping index. |
| \[out] | error | Status of call. |

### EvaluateAmplitudeAtGivenTime()

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

`inline`

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

**Returns**

FieldsContainer for given time.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | dTime | Time for which to get fields. |
| \[out] | error | Status of call. |

### EvaluateAmplitudeAtGivenTimeIndex()

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

`inline`

Get the amplitude of the real and imaginary part of results of given [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1TimeFreqSupport.md) index.

**Returns**

[FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1FieldsContainer.md) for given [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1TimeFreqSupport.md) index.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | iSet | Index of [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1TimeFreqSupport.md). |
| \[out] | error | Status of call. |

### EvaluateAtGivenStepIndexAndSubStep()

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

`inline`

Results are evaluated for at a given [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1TimeFreqSupport.md). This is arranged in [TimeFreqSupport::numberOfSteps](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1TimeFreqSupport.md#a6b3cc037c0283450ac0234dadeddd1b6) groups of size [TimeFreqSupport::numberOfSubStepsByStepIndex](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1TimeFreqSupport.md#a4333cdbfac1c49f802a9c33a18970ed5).

**Returns**

FieldsContainer for given step and substep index.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | iStep | Grouping index. |
| \[in] | iSubStep | Subgrouping index. |
| \[out] | error | Status of call. |

### EvaluateAtGivenTime()

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

`inline`

Get the fields associated with results at a given time.

**Returns**

FieldsContainer for given time.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | dTime | Time for which to get fields. |
| \[out] | error | Status of call. |

**Examples**

[DataApis.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/DataApis_8cpp-example.md), and [ModelTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/ModelTest_8cpp-example.md).

### EvaluateAtGivenTimeIndex()

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

`inline`

Get the fields associated with results at given [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1TimeFreqSupport.md) index.

**Returns**

FieldsContainer for given time/frequency index.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | iSet | Index of [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1TimeFreqSupport.md). |
| \[out] | error | Status of call. |

**Examples**

[ResultTest.cpp](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/ResultTest_8cpp-example.md).

### EvaluateWithPhaseAtGivenStepIndexAndSubStep()

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

`inline`

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

**Returns**

FieldsContainer for given step and substep index and phase.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | iStep | Grouping index. |
| \[in] | iSubStep | Subgrouping index. |
| \[in] | dPhase | Phase angle measured in degrees. |
| \[out] | error | Status of call. |

### EvaluateWithPhaseAtGivenTime()

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

`inline`

Get the sweeping phase at a given time and phase.

**Returns**

FieldsContainer for given time and phase.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | dTime | Time for which to get fields. |
| \[in] | dPhase | Phase angle measured in degrees. |
| \[out] | error | Status of call. |

### EvaluateWithPhaseAtGivenTimeIndex()

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

`inline`

Get the sweeping phase at given [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1TimeFreqSupport.md) index and phase

**Returns**

[FieldsContainer](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1FieldsContainer.md) for given [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1TimeFreqSupport.md) index and phase.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | iSet | Index of [TimeFreqSupport](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/2025-r2/classansys_1_1dpf_1_1TimeFreqSupport.md). |
| \[in] | dPhase | Phase angle measured in degrees. |
| \[out] | error | Status of call. |
