Variables
Introduction
Since version 2.0, AQUAgpusph is designed like a sandbox, such that the variables that will be used by the code can be defined "on the fly" for each simulation. Anyway, in order to do more accessible the code some Presets are provided "out of the box", which are defining Variables and Tools to carry out specific actions.
Defining new variables
In order to define new variables an specific section should be opened in the simulation definition XML input files (take a look on the examples to learn more about this):
<Variables> (...) </Variables>
The new variables will be defined between the new "Variables" opened section. Each variable is defined as follows:
<Variable name="NAME" type="TYPE" length="LENGTH" value="VALUE">
Where NAME, TYPE, LENGTH and VALUE should be conveniently set as it is described in the following subsections.
Name
The name of the variable can be arbitrary selected, being mindful that the name should be ISO C compliance (otherwise it will not be usable in OpenCL codes).