Difference between revisions of "Tools"
From AQUAgpusph
(Created page with "== Introduction == Since version 2.0, AQUAgpusph is designed like a sandbox, such that the tools that will be used to perform the simulation can be selected "on the fly". Any...") |
m |
||
Line 3: | Line 3: | ||
Since version 2.0, AQUAgpusph is designed like a sandbox, such that the tools that will be used to perform the simulation can be selected "on the fly". Anyway, in order to do more accessible the code some [[Presets]] are provided "out of the box", which are defining [[Variables]], [[Definitions]] and [[Tools]] to carry out specific actions. | Since version 2.0, AQUAgpusph is designed like a sandbox, such that the tools that will be used to perform the simulation can be selected "on the fly". Anyway, in order to do more accessible the code some [[Presets]] are provided "out of the box", which are defining [[Variables]], [[Definitions]] and [[Tools]] to carry out specific actions. | ||
+ | == Defining new tools == | ||
+ | In order to define new tools an specific section should be opened in the simulation definition XML input files (take a look on [[Examples|the examples]] to learn more about this): | ||
+ | |||
+ | <syntaxhighlight lang="xml"> | ||
+ | <Tools> | ||
+ | <!-- ... --> | ||
+ | </Tools> | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | The new tools will be defined between the new "<tt>Tools</tt>" opened section. Each tool is defined as follows: | ||
+ | |||
+ | <syntaxhighlight lang="xml"> | ||
+ | <Tool action="ACTION" name="NAME" type="TYPE"> | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | Where <tt>ACTION</tt>, <tt>NAME</tt> and <tt>TYPE</tt> should be conveniently set. Depending on the selected "<tt>action</tt>" and "<tt>type</tt>" some other specific attributes will be required. | ||
[[Category:Tools]] | [[Category:Tools]] |
Revision as of 16:42, 18 March 2015
Introduction
Since version 2.0, AQUAgpusph is designed like a sandbox, such that the tools that will be used to perform the simulation can be selected "on the fly". Anyway, in order to do more accessible the code some Presets are provided "out of the box", which are defining Variables, Definitions and Tools to carry out specific actions.
Defining new tools
In order to define new tools an specific section should be opened in the simulation definition XML input files (take a look on the examples to learn more about this):
<Tools> <!-- ... --> </Tools>
The new tools will be defined between the new "Tools" opened section. Each tool is defined as follows:
<Tool action="ACTION" name="NAME" type="TYPE">
Where ACTION, NAME and TYPE should be conveniently set. Depending on the selected "action" and "type" some other specific attributes will be required.