AQUAgpusph 4.1.2
|
Simulation variables registered. More...
#include <ProblemSetup.h>
Public Member Functions | |
sphVariables () | |
Constructor. | |
~sphVariables () | |
Destructor. | |
void | registerVariable (std::string name, std::string type, std::string length, std::string value) |
Add a new variable. | |
Data Fields | |
std::vector< std::string > | names |
Name of the variables. | |
std::vector< std::string > | types |
Type of variables. | |
std::vector< std::string > | lengths |
Lengths. | |
std::vector< std::string > | values |
Values. | |
Simulation variables registered.
In order to make AQUAgpusph more extensible, variables can be registered in runtime, specifing them in the input XML files.
The variables can be either scalars or arrays:
These setting are set between the following XML tags:
|
inline |
Constructor.
|
inline |
Destructor.
void Aqua::InputOutput::ProblemSetup::sphVariables::registerVariable | ( | std::string | name, |
std::string | type, | ||
std::string | length, | ||
std::string | value | ||
) |
Add a new variable.
It can be repeated, such that the variable will be overwritten later by the last instance found.
name | Name of the variable. |
type | Type of the varaible. |
length | Array length, 1 for scalars, 0 for arrays that will not be allocated at the start (for instance the heads of chains, which requires the number of cells). |
value | Variable value, NULL for arrays. It is optional for scalar variables. |
std::vector<std::string> Aqua::InputOutput::ProblemSetup::sphVariables::lengths |
Lengths.
std::vector<std::string> Aqua::InputOutput::ProblemSetup::sphVariables::names |
Name of the variables.
std::vector<std::string> Aqua::InputOutput::ProblemSetup::sphVariables::types |
Type of variables.
std::vector<std::string> Aqua::InputOutput::ProblemSetup::sphVariables::values |
Values.