ansys::dpf::Result Class Reference
Last update: 10.07.2023
ansys::dpf::Result Class Reference
#include <dpf_result.h>
Public Member Functions | |
Result (const char *res_name, Operator &stream_provider, Operator &timefreq_support_provider) | |
Result (const char *res_name, Operator &stream_provider, Operator &timefreq_support_provider, Scoping meshScoping) | |
Result (const char *res_name, Operator &stream_provider, Operator &timefreq_support_provider, Scoping meshScoping, Location requested_location, int cs_id) | |
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) | |
FieldsContainer | EvaluateAtGivenTime (double dTime, DpfError &error) |
FieldsContainer | EvaluateAtGivenTimeIndex (dp_int iSet, DpfError &error) |
FieldsContainer | EvaluateAtGivenStepIndexAndSubStep (dp_int iStep, dp_int iSubStep, DpfError &error) |
FieldsContainer | EvaluateAmplitudeAtGivenTime (double dTime, DpfError &error) |
FieldsContainer | EvaluateAmplitudeAtGivenTimeIndex (int iSet, DpfError &error) |
FieldsContainer | EvaluateAmplitudeAtGivenStepIndexAndSubStep (int iStep, int iSubStep, DpfError &error) |
FieldsContainer | EvaluateWithPhaseAtGivenTime (double dTime, double dPhase, DpfError &error) |
FieldsContainer | EvaluateWithPhaseAtGivenTimeIndex (int iSet, double dPhase, DpfError &error) |
FieldsContainer | EvaluateWithPhaseAtGivenStepIndexAndSubStep (int iStep, int iSubStep, double dPhase, DpfError &error) |
Detailed Description
Encapsulation of results.
- Examples
- DataApis.cpp, and ModelTest.cpp.
Constructor & Destructor Documentation
◆ Result() [1/4]
|
inline |
Create a new result from res_name using given stream and timefreq.
- Parameters
-
[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]
|
inline |
Create a new result from res_name using given stream, timefreq, and scoping.
- Parameters
-
[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.
◆ Result() [3/4]
|
inline |
Create a new result from res_name using given stream, timefreq, scoping, and location.
- Parameters
-
[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]
|
inline |
Create a new result from res_name using given stream, timefreq, mesh, named_selection, and location.
- Parameters
-
[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()
|
inline |
Get the amplitude of the real and imaginary part of results of given TimeFreqSupport. Results are evaluated at a given TimeFreqSupport. This is arranged in TimeFreqSupport::numberOfSteps groups of size TimeFreqSupport::numberOfSubStepsByStepIndex.
- Returns
- FieldsContainer for given step and substep index.
- Parameters
-
[in] iStep Grouping index. [in] iSubStep Subgrouping index. [out] error Status of call.
◆ EvaluateAmplitudeAtGivenTime()
|
inline |
Get the amplitude of the real and imaginary part of results at a given time.
- Returns
- FieldsContainer for given time.
- Parameters
-
[in] dTime Time for which to get fields. [out] error Status of call.
◆ EvaluateAmplitudeAtGivenTimeIndex()
|
inline |
Get the amplitude of the real and imaginary part of results of given TimeFreqSupport index.
- Returns
- FieldsContainer for given TimeFreqSupport index.
- Parameters
-
[in] iSet Index of TimeFreqSupport. [out] error Status of call.
◆ EvaluateAtGivenStepIndexAndSubStep()
|
inline |
Results are evaluated for at a given TimeFreqSupport. This is arranged in TimeFreqSupport::numberOfSteps groups of size TimeFreqSupport::numberOfSubStepsByStepIndex.
- Returns
- FieldsContainer for given step and substep index.
- Parameters
-
[in] iStep Grouping index. [in] iSubStep Subgrouping index. [out] error Status of call.
◆ EvaluateAtGivenTime()
|
inline |
Get the fields associated with results at a given time.
- Returns
- FieldsContainer for given time.
- Parameters
-
[in] dTime Time for which to get fields. [out] error Status of call.
- Examples
- DataApis.cpp, and ModelTest.cpp.
◆ EvaluateAtGivenTimeIndex()
|
inline |
Get the fields associated with results at given TimeFreqSupport index.
- Returns
- FieldsContainer for given time/frequency index.
- Parameters
-
[in] iSet Index of TimeFreqSupport. [out] error Status of call.
◆ EvaluateWithPhaseAtGivenStepIndexAndSubStep()
|
inline |
Get the sweeping phase at given TimeFreqSupport and phase. Results are evaluated at a given TimeFreqSupport. This is arranged in TimeFreqSupport::numberOfSteps groups of size TimeFreqSupport::numberOfSubStepsByStepIndex.
- Returns
- FieldsContainer for given step and substep index and phase.
- Parameters
-
[in] iStep Grouping index. [in] iSubStep Subgrouping index. [in] dPhase Phase angle measured in degrees. [out] error Status of call.
◆ EvaluateWithPhaseAtGivenTime()
|
inline |
Get the sweeping phase at a given time and phase.
- Returns
- FieldsContainer for given time and phase.
- Parameters
-
[in] dTime Time for which to get fields. [in] dPhase Phase angle measured in degrees. [out] error Status of call.
◆ EvaluateWithPhaseAtGivenTimeIndex()
|
inline |
Get the sweeping phase at given TimeFreqSupport index and phase
- Returns
- FieldsContainer for given TimeFreqSupport index and phase.
- Parameters
-
[in] iSet Index of TimeFreqSupport. [in] dPhase Phase angle measured in degrees. [out] error Status of call.