ansys::Project::Run Class Reference
Last update: 24.03.2026Subfolder of a Simulation, regrouping Output/Result for a step. More...
#include "Run.hpp"

Public Types | |
| enum | RunOutputType { Simple , Sequence , Parametric , Transient , Steady , RO_Other } |
| enum | OutputSequenceOrder { CreationID , MonotonicIncreasing , Increasing , IncreasingUnique , Decreasing , DecreasingUnique } |
| enum | OutputMatchOperator { Equal , Greater , GreaterEqual , Smaller , SmallerEqual } |
Public Member Functions | |
| Run (Iterator pIter) | |
| Constructor from Iterator. More... | |
| virtual | ~Run () |
| virtual Error | isValid () const |
| Returns error with message if invalid. More... | |
| bool | addVariable (const std::string &pVar) |
| Register an input variable for this run. More... | |
| bool | setVariables (const std::vector< std::string > &pVars) |
| Set/replace the list of variables for this run. More... | |
| bool | removeVariable (const std::string &pVar) |
| Remove a variable from the list of inputs. More... | |
| std::vector< std::string > | getVariables () const |
| Return the list of input variables for this Run. More... | |
| std::vector< std::vector< std::string > > | getValues (const std::vector< std::string > &pVars) const |
| Return the list of values -one per output- for a list of variables. More... | |
| bool | addOutputVariable (const std::string &pVar) |
| Register an output variable for this run. More... | |
| bool | setOutputVariables (const std::vector< std::string > &pVars) |
| Set/replace the list of output variables. More... | |
| bool | removeOutputVariable (const std::string &pVar) |
| Remove an output variable. More... | |
| std::vector< std::string > | getOutputVariables () const |
| Returns the list of output variables. More... | |
| std::vector< std::string > | getAllVariables () const |
| Returns the list of all variables ( input and output ) More... | |
| void | addVarIndex () |
| Add the Index variable (not required if mandatory for the run type) More... | |
| void | addVarTime () |
| Add the Time variable (not required if mandatory for the run type) More... | |
| void | addVarSolverIteration () |
| Add the SolverIteration variable (not required if mandatory for the run type) More... | |
| void | addVarCrankAngle () |
| Add the built-in variable. More... | |
| void | addVarMeshId () |
| Add the MeshId variable - Id should be incremented when the mesh has changed. More... | |
| void | addVarDomainTransformationId () |
| Add the DomainTransformationId variable - Id should be incremented when the mesh transformation metadata has changed. More... | |
| void | addVarPhysicsId () |
| Add the PhysicsId variable - Id should be incremented when the physics settings have changed. More... | |
| void | addVarTopologyId () |
| Add the TopologyId variable - Id should be incremented when the topology (list of boundaries, domains) has changed. More... | |
| void | addVarCoordinatesId () |
| Add the CoordinatesId variable - Id should be incremented when the node locations of a mesh have changed. More... | |
| void | addVarLocationId () |
| Add the LocationId variable - Id should be incremented when the node locations of a mesh have changed. More... | |
| void | addVarConnectivityId () |
| Add the ConnectivityId variable - Id should be incremented when the cells of a mesh are changed (number changed, connectivity changed, ...) More... | |
| void | addVarCaseId () |
| Add the CaseId variable - Id is incremented when the case settings are changed. More... | |
| void | addVarInputSettingsId () |
| Add the InputSettings variable - Id is incremented when the input case settings are changed. More... | |
| void | addVarOutputSettingsId () |
| Add the OutputSettings variable - Id is incremented when the case output settings are changed. More... | |
| Error | computeIds () |
| Compute missing ids (CaseId, MeshId, InputSettingsId) from their dependencies. More... | |
| virtual bool | hasValue (const std::string &pVar, bool pFlagInherited) const |
| Search the metadata (local and inherited) for the specified key. More... | |
| Iterator | getValueIter (const std::string &pVar) const |
| Search the metadata (local and inherited) for the specified metadata link and return the value as an iterator. More... | |
| virtual std::string | getValue (const std::string &pVar, bool pFlagInherited) const |
| Search the metadata (local and inherited) for the specified key and return the value as string. More... | |
| virtual int | getValueInt (const std::string &pVar, bool pFlagInherited) const |
| Search the metadata (local and inherited) for the specified key and return the value as integer. More... | |
| virtual double | getValueDouble (const std::string &pVar, bool pFlagInherited) const |
| Search the metadata (local and inherited) for the specified key and return the value as double. More... | |
| virtual MetaVariableType | getValueType (const std::string &pVar, bool pFlagInherited) const |
| Search the metadata (local and inherited) for the specified key and return the its data type. More... | |
| virtual void | setValue (const std::string &pVar, const std::string &pValue) |
| Sets the local metadata to the specified key/value. More... | |
| virtual void | setValueInt (const std::string &pVar, int pValue) |
| Sets the local metadata to the specified key/value. More... | |
| virtual void | setValueDouble (const std::string &pVar, double pValue) |
| Sets the local metadata to the specified key/value. More... | |
| void | setValue (const std::string &pVar, int pValue) |
| void | setValue (const std::string &pVar, double pValue) |
| bool | setRunOutputType (RunOutputType pType) |
| Set the run output type, will add automatically the mandatory variables (if any) More... | |
| RunOutputType | getRunOutputType () const |
| Return the RunOutputType as the enum. More... | |
| std::string | getRunOutputTypeAsString () const |
| Return the RunOutputType as a string. More... | |
| Iterator | getCase () const |
| Returns the case file associated with this run (if any, see setCase()) More... | |
| Iterator | newOutput (std::string pName="") |
| Create a Output folder in the current Run folder. More... | |
| std::vector< Iterator > | getResultIterators (const std::string &pType, const std::string &pSubtype) const |
| Return the list of results in the current Run and Output subfolders, as vector of Iterator. More... | |
| std::vector< Result > | getResults (const std::string &pType, const std::string &pSubtype) const |
| Return the list of results in the current Run and Output subfolders. More... | |
| std::vector< Iterator > | getOutputIterators () const |
| Return the list of Output in the current Run, as a vector of Iterator. More... | |
| std::vector< Output > | getOutputs () const |
| Return the list of Output in the current Run. More... | |
| Iterator | getData () |
| Returns the default latest data file (from the current output, main data type) More... | |
| Iterator | getResult (const std::string &pDataType) |
| Returns the current data file of specified type. More... | |
| void | setCurrentOutput (Iterator pOutput) |
| Set the current output link for this run, typically the latest output is the current. More... | |
| Iterator | getCurrentOutput () const |
| Return the current output link for this run, typically the latest output is the current. More... | |
| std::vector< std::string > | getResultTypes () const |
| Returns the list of available output types listed in the run Outputs. More... | |
| Error | getTransientOutputs (const std::string &pResultType, std::vector< Iterator > &pOutIterators, std::vector< double > &pOutTimeval) const |
| For transient runs - return the list of output results and their time values. More... | |
| Error | getOutputSequence (OutputSequenceOrder pOrder, std::string pVariable, std::vector< Output > &pOutputs) const |
| Get the Output sequence, ordered by the specified parameter. More... | |
| std::vector< Output > | getOutputsMatching (std::string pVariable, OutputMatchOperator pOperator, double pValue) const |
| Get the list of outputs matching the specified condition. More... | |
| Error | removeOutputs (const std::vector< Output > &pOut, bool pEraseFiles) |
| Remove the specified list of Output from the children of this run. More... | |
| void | setRunStatus (RunStatus pStatus) |
| Set the RunStatus state for this Run. More... | |
| RunStatus | getRunStatus () const |
| Returns the RunStatus state for this Output. See setRunStatus() More... | |
| Iterator | getIterator () const |
Public Member Functions inherited from ansys::Project::SimBase | |
| bool | ok () const |
| std::string | getName () const |
| Returns the object name in the project. More... | |
| Iterator | setCase (Iterator pCaseFile) |
| Set the case file associated with this item. More... | |
| void | setMainDataType (const std::string &pDataType) |
| Set the result type expected as default output for runs. More... | |
| std::string | getMainDataType () const |
| Returns the result type expected as default output for runs (see: setMainDataType() ) More... | |
| Iterator | copyInput (Path pPath, bool pInInputFolder=false) |
| Copy the specified project file into the current folder. More... | |
| Iterator | setInput (Path pPath) |
| Register a files as Input/ to this folder. More... | |
| std::vector< Iterator > | getInputs (Error *pErrorPtr=0) const |
| Return the list of registered inputs for this simulation. More... | |
| Iterator | getInputByType (const std::string &pType, std::string pSubtype="") const |
| Search for a -single- input of the specified type (and optionally, subtype) More... | |
| std::vector< Iterator > | getInputsByType (const std::string &pType, std::string pSubtype="", Error *pErrorPtr=0) const |
| Search for one or multiple input of the specified type (and optionally, subtype) More... | |
| Metadata & | getMeta () |
| Access the Iterator Metadata, equivalent to getIterator().getMeta() More... | |
| const Metadata & | getMeta () const |
| Access the Iterator Metadata, equivalent to getIterator().getMeta() More... | |
| operator Iterator () const | |
Public Member Functions inherited from ansys::Project::RunOutputAttr | |
| virtual | ~RunOutputAttr () |
| std::vector< std::string > | getValues (const std::vector< std::string > &pVars, bool pFlagInherited) const |
| Returns the values for a list of variables. More... | |
| int | getIndex () const |
| Returns the output index (incremental id in a run) - always available. More... | |
| int | getSolverIteration () const |
| Returns the number of solver iterations (if available) More... | |
| double | getTime () const |
| Returns the transient time value (if available) More... | |
| void | setIndex (int pValue) |
| Changes the specified variable. More... | |
| void | setSolverIteration (int pValue) |
| Changes the specified variable. More... | |
| void | setTime (double pValue) |
| Changes the specified variable. More... | |
| double | getCrankAngle () const |
| Returns the specified variable (if available) More... | |
| void | setCrankAngle (double pValue) |
| Changes the specified variable. More... | |
| int | getCaseId () const |
| Returns the specified variable (if available) More... | |
| int | getInputSettingsId () const |
| Returns the specified variable (if available) More... | |
| int | getDomainTransformationId () const |
| Returns the specified variable (if available) More... | |
| int | getPhysicsId () const |
| Returns the specified variable (if available) More... | |
| int | getOutputSettingsId () const |
| Returns the specified variable (if available) More... | |
| int | getMeshId () const |
| Returns the specified variable (if available) More... | |
| int | getTopologyId () const |
| Returns the specified variable (if available) More... | |
| int | getConnectivityId () const |
| Returns the specified variable (if available) More... | |
| int | getCoordinatesId () const |
| Returns the specified variable (if available) More... | |
| int | getLocationId () const |
| Returns the specified variable (if available) More... | |
| void | setCaseId (int pValue) |
| Changes the specified variable. More... | |
| void | setInputSettingsId (int pValue) |
| Changes the specified variable. More... | |
| void | setDomainTransformationId (int pValue) |
| Changes the specified variable. More... | |
| void | setPhysicsId (int pValue) |
| Changes the specified variable. More... | |
| void | setOutputSettingsId (int pValue) |
| Changes the specified variable. More... | |
| void | setMeshId (int pValue) |
| Changes the specified variable. More... | |
| void | setTopologyId (int pValue) |
| Changes the specified variable. More... | |
| void | setConnectivityId (int pValue) |
| Changes the specified variable. More... | |
| void | setCoordinatesId (int pValue) |
| Changes the specified variable. More... | |
| void | setLocationId (int pValue) |
| Changes the specified variable. More... | |
| Iterator | getFirstIteratorForCurrentCaseId () const |
| See getFirstIterator(const std::string&) More... | |
| Iterator | getFirstIteratorForCurrentPhysicsId () const |
| See getFirstIterator(const std::string&) More... | |
| Iterator | getFirstIteratorForCurrentInputSettingsId () const |
| See getFirstIterator(const std::string&) More... | |
| Iterator | getFirstIteratorForCurrentDomainTransformationId () const |
| See getFirstIterator(const std::string&) More... | |
| Iterator | getFirstIteratorForCurrentMeshId () const |
| See getFirstIterator(const std::string&) More... | |
| Iterator | getFirstIteratorForCurrentTopologyId () const |
| See getFirstIterator(const std::string&) More... | |
| Iterator | getFirstIteratorForCurrentConnectivityId () const |
| See getFirstIterator(const std::string&) More... | |
| Iterator | getFirstIteratorForCurrentCoordinatesId () const |
| See getFirstIterator(const std::string&) More... | |
| Iterator | getFirstIteratorForCurrentLocationId () const |
| See getFirstIterator(const std::string&) More... | |
| Iterator | getFirstIteratorForCurrent (const std::string &pVar) const |
| Return the first entry in the current Run, with same variable value. More... | |
Static Public Member Functions | |
| static std::string | runStatusToString (RunStatus pStatus) |
| static RunStatus | stringToRunStatus (const std::string &pStr) |
Protected Member Functions | |
| Run (Iterator pIter, const std::string &pSubclass) | |
Protected Member Functions inherited from ansys::Project::SimBase | |
| SimBase (Iterator pIter) | |
| virtual | ~SimBase () |
| Error | copyDatafileMeta (const Iterator &pInput, Iterator &pOutput) |
Additional Inherited Members | |
Static Public Attributes inherited from ansys::Project::RunOutputAttr | |
| static const std::string | sVarTime |
| static const std::string | sVarSolverIteration |
| static const std::string | sVarIndex |
| static const std::string | sVarCrankAngle |
| static const std::string | sVarCaseId |
| static const std::string | sVarInputSettingsId |
| static const std::string | sVarDomainTransformationId |
| static const std::string | sVarPhysicsId |
| static const std::string | sVarOutputSettingsId |
| static const std::string | sVarMeshId |
| static const std::string | sVarTopologyId |
| static const std::string | sVarConnectivityId |
| static const std::string | sVarCoordinatesId |
| static const std::string | sVarLocationId |
Protected Attributes inherited from ansys::Project::SimBase | |
| Iterator | aIter |
Detailed Description
Subfolder of a Simulation, regrouping Output/Result for a step.
Subclass of Iterator, can be constructed from an Iterator, the Run is ok() only if the provided iterator is of the appropriate subclass.
Iterator it = prj.get("/Sim1/Run1/");
Run run(it);
run.ok()
In a Simulation, one or multiple Run are created, to store the simulation Results, organized in Output subfolders. The Run might have Metatada assigned from the settings for this computation ( reference conditions, etc. )
The expected amount of Output in a run, and the variables expected to be defined for each Output depends of the RunOutputType.
- Simple : Single Output
- Transient : One or more Output. variable : Time
- Steady : One or more Output. variable : SolverIteration
- Sequence : One or more Output. variable : Index
- Parametric : One or more Output, for a sweep of values across a list of variables.
A variable (addVariable(), addVar*()) enabled in a Run, is expected to be changed across all Output subfolders. Its related to the input settings, or the context of a result (for example, the solver iteration or time step) Additional variables can be added, in addition to the mandatory variables from the RunOutputType
Output variables (addOutputVariable()) are values computed from that result, they might be from monitors or probe points.
Run run(it);
run.setRunOutputType(Run::Transient);
// Time is the automatic -mandatory- variable for Transient run type
run.addOutputVariable("probe-temperature");
Output o = run.newOutput("")
o.setTime(0.);
o.newResult("out.00000001.dat","","Result","fluent-dat");
o.setValue("probe-temperature",277.64);
o = run.newOutput("")
o.setTime(0.1);
o.newResult("out.00000002.dat","","Result","fluent-dat");
o.setValue("probe-temperature",278.822);
Variable values assigned to the Run will be inherited by all underlying Output and Result children.
Member Enumeration Documentation
◆ OutputMatchOperator
◆ OutputSequenceOrder
◆ RunOutputType
Constructor & Destructor Documentation
◆ Run() [1/2]
| ansys::Project::Run::Run | ( | Iterator | pIter | ) |
◆ ~Run()
|
inlinevirtual |
◆ Run() [2/2]
|
protected |
Member Function Documentation
◆ addOutputVariable()
| bool ansys::Project::Run::addOutputVariable | ( | const std::string & | pVar | ) |
Register an output variable for this run.
All Output subfolders should define a specific value for this variable.
◆ addVarCaseId()
| void ansys::Project::Run::addVarCaseId | ( | ) |
Add the CaseId variable - Id is incremented when the case settings are changed.
◆ addVarConnectivityId()
| void ansys::Project::Run::addVarConnectivityId | ( | ) |
Add the ConnectivityId variable - Id should be incremented when the cells of a mesh are changed (number changed, connectivity changed, ...)
◆ addVarCoordinatesId()
| void ansys::Project::Run::addVarCoordinatesId | ( | ) |
Add the CoordinatesId variable - Id should be incremented when the node locations of a mesh have changed.
◆ addVarCrankAngle()
| void ansys::Project::Run::addVarCrankAngle | ( | ) |
Add the built-in variable.
◆ addVarDomainTransformationId()
| void ansys::Project::Run::addVarDomainTransformationId | ( | ) |
Add the DomainTransformationId variable - Id should be incremented when the mesh transformation metadata has changed.
◆ addVariable()
| bool ansys::Project::Run::addVariable | ( | const std::string & | pVar | ) |
Register an input variable for this run.
This registration is not required for automatic variables (Transient=Time, etc.)
All Output subfolders should define a specific value for this variable.
◆ addVarIndex()
| void ansys::Project::Run::addVarIndex | ( | ) |
Add the Index variable (not required if mandatory for the run type)
◆ addVarInputSettingsId()
| void ansys::Project::Run::addVarInputSettingsId | ( | ) |
Add the InputSettings variable - Id is incremented when the input case settings are changed.
If provided, this should be incremented when any of the dependent input settings are changed, such as PhysicsId or DomainTransformationId
◆ addVarLocationId()
| void ansys::Project::Run::addVarLocationId | ( | ) |
Add the LocationId variable - Id should be incremented when the node locations of a mesh have changed.
◆ addVarMeshId()
| void ansys::Project::Run::addVarMeshId | ( | ) |
Add the MeshId variable - Id should be incremented when the mesh has changed.
◆ addVarOutputSettingsId()
| void ansys::Project::Run::addVarOutputSettingsId | ( | ) |
Add the OutputSettings variable - Id is incremented when the case output settings are changed.
◆ addVarPhysicsId()
| void ansys::Project::Run::addVarPhysicsId | ( | ) |
Add the PhysicsId variable - Id should be incremented when the physics settings have changed.
◆ addVarSolverIteration()
| void ansys::Project::Run::addVarSolverIteration | ( | ) |
Add the SolverIteration variable (not required if mandatory for the run type)
◆ addVarTime()
| void ansys::Project::Run::addVarTime | ( | ) |
Add the Time variable (not required if mandatory for the run type)
◆ addVarTopologyId()
| void ansys::Project::Run::addVarTopologyId | ( | ) |
Add the TopologyId variable - Id should be incremented when the topology (list of boundaries, domains) has changed.
◆ computeIds()
| Error ansys::Project::Run::computeIds | ( | ) |
Compute missing ids (CaseId, MeshId, InputSettingsId) from their dependencies.
◆ getAllVariables()
| std::vector< std::string > ansys::Project::Run::getAllVariables | ( | ) | const |
Returns the list of all variables ( input and output )
◆ getCase()
|
virtual |
Returns the case file associated with this run (if any, see setCase())
Reimplemented from ansys::Project::SimBase.
◆ getCurrentOutput()
| Iterator ansys::Project::Run::getCurrentOutput | ( | ) | const |
Return the current output link for this run, typically the latest output is the current.
◆ getData()
| Iterator ansys::Project::Run::getData | ( | ) |
Returns the default latest data file (from the current output, main data type)
◆ getIterator()
|
inlinevirtual |
Implements ansys::Project::RunOutputAttr.
Reimplemented in ansys::Project::RunGroup.
◆ getOutputIterators()
| std::vector< Iterator > ansys::Project::Run::getOutputIterators | ( | ) | const |
◆ getOutputs()
| std::vector< Output > ansys::Project::Run::getOutputs | ( | ) | const |
◆ getOutputSequence()
| Error ansys::Project::Run::getOutputSequence | ( | OutputSequenceOrder | pOrder, |
| std::string | pVariable, | ||
| std::vector< Output > & | pOutputs | ||
| ) | const |
Get the Output sequence, ordered by the specified parameter.
Retrieve the output list, as ordered by a specific recipe and based on the value of a variable.
The default getOutput() will return the outputs as ordered by their creation order. In a simple transient or steady run, this will be sufficient to get the ordered datasets. Transient postprocessing typically assumes a monotonic (increasing, unique values) sequence. Parametric runs might have their dataset generated in any order, and a sorted list of outputs might be desirable.
- Parameters
-
pOrcer : Indicate the order of the outputs - CreationID : Order by creation index, the pVariable argument is unused
- MonotonicIncreasing : Strictly increating sequence of values for the specified variable. If the sequence reverts to a prior step, only the newer values are returned. 1,2,[3,4,5]{3,4,5,6} -> 1,2,{3,4,5,6}
- Increasing : Outputs are sorted by the specified variable low to high value
- IncreasingUnique : As Increasing, but duplicates are removed in case of duplicate, the newest entry is kept.
- Decreasing : Outputs are sorted by the specified variable high to low value
- DecreasingUnique : As Increasing, but duplicates are removed in case of duplicate, the newest entry is kept.
pVariable : Variable name to use in comparison Must be an integer or floating point property. The variable must be defined for all outputs.
RunOutputAttr contains the list of standard variable names See: RunOutputAttr::sVarTime, RunOutputAttr::sVarSolverIteration, etc.
- Parameters
-
pOutputs : Array with Output ordered as specified
- Returns
- : Error in case of unknown variable or invalid parameters
◆ getOutputsMatching()
| std::vector< Output > ansys::Project::Run::getOutputsMatching | ( | std::string | pVariable, |
| OutputMatchOperator | pOperator, | ||
| double | pValue | ||
| ) | const |
Get the list of outputs matching the specified condition.
Returns the subset of outputs matching the specified condition, the outputs will not have any specified order. See also getOutputSequence()
- Parameters
-
pVariable : Name of the variable to check pOperator : Operator to use pValue : Value for comparison
◆ getOutputVariables()
| std::vector< std::string > ansys::Project::Run::getOutputVariables | ( | ) | const |
Returns the list of output variables.
◆ getResult()
| Iterator ansys::Project::Run::getResult | ( | const std::string & | pDataType | ) |
Returns the current data file of specified type.
◆ getResultIterators()
| std::vector< Iterator > ansys::Project::Run::getResultIterators | ( | const std::string & | pType, |
| const std::string & | pSubtype | ||
| ) | const |
◆ getResults()
| std::vector< Result > ansys::Project::Run::getResults | ( | const std::string & | pType, |
| const std::string & | pSubtype | ||
| ) | const |
◆ getResultTypes()
| std::vector< std::string > ansys::Project::Run::getResultTypes | ( | ) | const |
Returns the list of available output types listed in the run Outputs.
◆ getRunOutputType()
| Run::RunOutputType ansys::Project::Run::getRunOutputType | ( | ) | const |
Return the RunOutputType as the enum.
◆ getRunOutputTypeAsString()
| std::string ansys::Project::Run::getRunOutputTypeAsString | ( | ) | const |
Return the RunOutputType as a string.
◆ getRunStatus()
| RunStatus ansys::Project::Run::getRunStatus | ( | ) | const |
Returns the RunStatus state for this Output. See setRunStatus()
◆ getTransientOutputs()
| Error ansys::Project::Run::getTransientOutputs | ( | const std::string & | pResultType, |
| std::vector< Iterator > & | pOutIterators, | ||
| std::vector< double > & | pOutTimeval | ||
| ) | const |
For transient runs - return the list of output results and their time values.
The output runs are processed to return a monotonic (increasing, unique values) sequence (see getOutputSequence()). For each output of that sequence, if a result of the specified type exist, its returned alongside with the time value.
- Parameters
-
pResultType File type (ResultType metadata) of the result query pOutIterators (output) pOutTimeval (output)
◆ getValue()
|
virtual |
Search the metadata (local and inherited) for the specified key and return the value as string.
- Parameters
-
pFlagInherited : If true, the parent Run/Simulation are searched for the metadata entry, if not defined locally
Implements ansys::Project::RunOutputAttr.
◆ getValueDouble()
|
virtual |
Search the metadata (local and inherited) for the specified key and return the value as double.
- Parameters
-
pFlagInherited : If true, the parent Run/Simulation are searched for the metadata entry, if not defined locally
Implements ansys::Project::RunOutputAttr.
◆ getValueInt()
|
virtual |
Search the metadata (local and inherited) for the specified key and return the value as integer.
- Parameters
-
pFlagInherited : If true, the parent Run/Simulation are searched for the metadata entry, if not defined locally
Implements ansys::Project::RunOutputAttr.
◆ getValueIter()
| Iterator ansys::Project::Run::getValueIter | ( | const std::string & | pVar | ) | const |
Search the metadata (local and inherited) for the specified metadata link and return the value as an iterator.
- Parameters
-
pFlagInherited : If true, the parent Run/Simulation are searched for the metadata entry, if not defined locally
◆ getValues()
| std::vector< std::vector< std::string > > ansys::Project::Run::getValues | ( | const std::vector< std::string > & | pVars | ) | const |
Return the list of values -one per output- for a list of variables.
◆ getValueType()
|
virtual |
Search the metadata (local and inherited) for the specified key and return the its data type.
- Parameters
-
pFlagInherited : If true, the parent Run/Simulation are searched for the metadata entry, if not defined locally
Implements ansys::Project::RunOutputAttr.
◆ getVariables()
| std::vector< std::string > ansys::Project::Run::getVariables | ( | ) | const |
Return the list of input variables for this Run.
◆ hasValue()
|
virtual |
Search the metadata (local and inherited) for the specified key.
- Parameters
-
pFlagInherited : If true, the parent Run/Simulation are searched for the metadata entry, if not defined locally
Implements ansys::Project::RunOutputAttr.
◆ isValid()
|
virtual |
Returns error with message if invalid.
Implements ansys::Project::SimBase.
Reimplemented in ansys::Project::RunGroup.
◆ newOutput()
| Iterator ansys::Project::Run::newOutput | ( | std::string | pName = "" | ) |
Create a Output folder in the current Run folder.
The Output folder is by default a virtual (project-only) folder and no folder is created in the filesystem. By default, all Result owned by a Run/Output are stored in the same disk folder, but the Project structure regroup each group of Result in an Output block.
- Parameters
-
pName : Name of the output folder , use "" to have a default automatic name generated ( o###### )
◆ removeOutputs()
Remove the specified list of Output from the children of this run.
- Parameters
-
pEraseFiles If true, the associated files to the outputs will be erased
◆ removeOutputVariable()
| bool ansys::Project::Run::removeOutputVariable | ( | const std::string & | pVar | ) |
Remove an output variable.
◆ removeVariable()
| bool ansys::Project::Run::removeVariable | ( | const std::string & | pVar | ) |
Remove a variable from the list of inputs.
Mandatory variables cannot be removed
◆ runStatusToString()
|
static |
◆ setCurrentOutput()
| void ansys::Project::Run::setCurrentOutput | ( | Iterator | pOutput | ) |
Set the current output link for this run, typically the latest output is the current.
◆ setOutputVariables()
| bool ansys::Project::Run::setOutputVariables | ( | const std::vector< std::string > & | pVars | ) |
Set/replace the list of output variables.
◆ setRunOutputType()
| bool ansys::Project::Run::setRunOutputType | ( | RunOutputType | pType | ) |
Set the run output type, will add automatically the mandatory variables (if any)
◆ setRunStatus()
| void ansys::Project::Run::setRunStatus | ( | RunStatus | pStatus | ) |
◆ setValue() [1/3]
|
virtual |
Sets the local metadata to the specified key/value.
Implements ansys::Project::RunOutputAttr.
◆ setValue() [2/3]
|
inline |
◆ setValue() [3/3]
|
inline |
◆ setValueDouble()
|
virtual |
Sets the local metadata to the specified key/value.
Implements ansys::Project::RunOutputAttr.
◆ setValueInt()
|
virtual |
Sets the local metadata to the specified key/value.
Implements ansys::Project::RunOutputAttr.
◆ setVariables()
| bool ansys::Project::Run::setVariables | ( | const std::vector< std::string > & | pVars | ) |
Set/replace the list of variables for this run.
The operation will fail if the list of variables does not contain the mandatory variable for the RunOutputType
All Output subfolders should define a specific value for each variable.
◆ stringToRunStatus()
|
static |
Public Member Functions inherited from