2
2
3
3
[ TOC]
4
4
5
- The signature has to be defined between the @if DocIsLaTeX ** BEGIN_SIMULATOR_SIGNATURE** @else # BEGIN_SIMULATOR_SIGNATURE @endif
6
- and the @if DocIsLaTeX ** END_SIMULATOR_SIGNATURE** @else # END_SIMULATOR_SIGNATURE @endif
5
+ The signature has to be defined between the @if DocIsLaTeX ** BEGIN_SIMULATOR_SIGNATURE** @else BEGIN_SIMULATOR_SIGNATURE @endif
6
+ and the @if DocIsLaTeX ** END_SIMULATOR_SIGNATURE** @else END_SIMULATOR_SIGNATURE @endif
7
7
instructions.
8
8
The signature is usually placed in the upper part of the simulator main source file, before the C++ class of the simulator.
9
9
@@ -12,23 +12,23 @@ The signature is usually placed in the upper part of the simulator main source f
12
12
13
13
The identification part of the signature must contain at least the ID of the simulator.
14
14
This ID will be used by the framework to load simulators. It is declared in
15
- the signature as an argument of the @if DocIsLaTeX ** BEGIN_SIMULATOR_SIGNATURE** @else # BEGIN_SIMULATOR_SIGNATURE @endif
15
+ the signature as an argument of the @if DocIsLaTeX ** BEGIN_SIMULATOR_SIGNATURE** @else BEGIN_SIMULATOR_SIGNATURE @endif
16
16
instruction.
17
17
Other optional informations can be included for better description of the simulator:
18
18
19
- * the simulator name, declared through the @if DocIsLaTeX ** DECLARE_NAME** @else # DECLARE_NAME @endif
19
+ * the simulator name, declared through the @if DocIsLaTeX ** DECLARE_NAME** @else DECLARE_NAME @endif
20
20
instruction,
21
21
allowing to assign a long name to the simulator
22
- * the simulator description, declared through the @if DocIsLaTeX ** DECLARE_DESCRIPTION** @else # DECLARE_DESCRIPTION @endif
22
+ * the simulator description, declared through the @if DocIsLaTeX ** DECLARE_DESCRIPTION** @else DECLARE_DESCRIPTION @endif
23
23
instruction,
24
24
allowing to provide a detailed description of what the simulator actually does
25
- * the name(s) of the author(s) and corresponding email address(es), declared through the @if DocIsLaTeX ** DECLARE_AUTHOR** @else # DECLARE_AUTHOR @endif
25
+ * the name(s) of the author(s) and corresponding email address(es), declared through the @if DocIsLaTeX ** DECLARE_AUTHOR** @else DECLARE_AUTHOR @endif
26
26
instruction.
27
- There may be multiple @if DocIsLaTeX ** DECLARE_AUTHOR** @else # DECLARE_AUTHOR @endif
27
+ There may be multiple @if DocIsLaTeX ** DECLARE_AUTHOR** @else DECLARE_AUTHOR @endif
28
28
instructions in the signature in case of multiple authors
29
- * the software version of the simulator, declared through the @if DocIsLaTeX ** DECLARE_VERSION** @else # DECLARE_VERSION @endif
29
+ * the software version of the simulator, declared through the @if DocIsLaTeX ** DECLARE_VERSION** @else DECLARE_VERSION @endif
30
30
instruction
31
- * the software status of the simulator, declared through the @if DocIsLaTeX ** DECLARE_STATUS** @else # DECLARE_STATUS @endif
31
+ * the software status of the simulator, declared through the @if DocIsLaTeX ** DECLARE_STATUS** @else DECLARE_STATUS @endif
32
32
instruction. The value can be
33
33
_ openfluid::ware::EXPERIMENTAL_ , _ openfluid::ware::BETA_ or _ openfluid::ware::STABLE_
34
34
@@ -42,11 +42,11 @@ The informations about scientific applications are only indicative.
42
42
It has no effects on simulator consistency or computational code.
43
43
These informations can be :
44
44
45
- * the domain in which the simulator can be applied, declared through the @if DocIsLaTeX ** DECLARE_DOMAIN** @else # DECLARE_DOMAIN @endif
45
+ * the domain in which the simulator can be applied, declared through the @if DocIsLaTeX ** DECLARE_DOMAIN** @else DECLARE_DOMAIN @endif
46
46
instruction
47
- * the processes simulated by the simulator, declared through the @if DocIsLaTeX ** DECLARE_PROCESS** @else # DECLARE_PROCESS @endif
47
+ * the processes simulated by the simulator, declared through the @if DocIsLaTeX ** DECLARE_PROCESS** @else DECLARE_PROCESS @endif
48
48
instruction
49
- * the numerical methods used by the simulator, declared through the @if DocIsLaTeX ** DECLARE_METHOD** @else # DECLARE_METHOD @endif
49
+ * the numerical methods used by the simulator, declared through the @if DocIsLaTeX ** DECLARE_METHOD** @else DECLARE_METHOD @endif
50
50
instruction
51
51
52
52
@@ -77,7 +77,7 @@ The declarations of spatial data access include constraint levels:
77
77
78
78
Simulator parameters are values provided to each simulator,
79
79
and are declared using the @if DocIsLaTeX ** DECLARE_REQUIRED_PARAMETER** or ** DECLARE_USED_PARAMETER**
80
- @else # DECLARE_REQUIRED_PARAMETER or # DECLARE_USED_PARAMETER @endif
80
+ @else DECLARE_REQUIRED_PARAMETER or DECLARE_USED_PARAMETER @endif
81
81
instructions.
82
82
These instructions takes 3 arguments
83
83
@@ -87,15 +87,15 @@ These instructions takes 3 arguments
87
87
88
88
89
89
_ Example of a declaration of a required simulator parameter:_
90
- @ snippet help.snippets.signature-parts/SignaturePartsSim.cpp signature_params
90
+ ** TOIMPL **
91
91
92
92
93
93
### Spatial attributes {#dev_signature_data_attrs}
94
94
95
95
Spatial attributes are constant properties attached to each spatial units,
96
96
and are declared using @if DocIsLaTeX ** DECLARE_REQUIRED_ATTRIBUTE** , ** DECLARE_USED_ATTRIBUTE**
97
97
or ** DECLARE_PRODUCED_ATTRIBUTE**
98
- @else # DECLARE_REQUIRED_ATTRIBUTE, # DECLARE_USED_ATTRIBUTE or # DECLARE_PRODUCED_ATTRIBUTE @endif
98
+ @else DECLARE_REQUIRED_ATTRIBUTE, DECLARE_USED_ATTRIBUTE or DECLARE_PRODUCED_ATTRIBUTE @endif
99
99
instructions
100
100
101
101
These instructions take 4 arguments:
@@ -106,22 +106,18 @@ These instructions take 4 arguments:
106
106
* the SI unit of the attribute (may be empty)
107
107
108
108
109
- _ Example of attributes declaration:_
110
- @snippet help.snippets.signature-parts/SignaturePartsSim.cpp signature_attributes
111
-
112
-
113
109
### Simulation variables {#dev_signature_data_vars}
114
110
115
111
Simulation variables are attached to spatial units. They are produced, accessed and modified
116
112
by simulators during simulations.
117
113
Accessed variables are declared using @if DocIsLaTeX ** DECLARE_REQUIRED_VARIABLE** or ** DECLARE_USED_VARIABLE**
118
- @else # DECLARE_REQUIRED_VARIABLE or # DECLARE_USED_VARIABLE @endif
114
+ @else DECLARE_REQUIRED_VARIABLE or DECLARE_USED_VARIABLE @endif
119
115
instructions,
120
116
produced variables are declared using @if DocIsLaTeX ** DECLARE_PRODUCED_VARIABLE**
121
- @else # DECLARE_PRODUCED_VARIABLE @endif
117
+ @else DECLARE_PRODUCED_VARIABLE @endif
122
118
instruction,
123
119
updated variables are declared using @if DocIsLaTeX ** DECLARE_UPDATED_VARIABLE**
124
- @else # DECLARE_UPDATED_VARIABLE @endif
120
+ @else DECLARE_UPDATED_VARIABLE @endif
125
121
instruction.
126
122
127
123
These instructions take 4 arguments:
@@ -170,36 +166,36 @@ simulator B requires/uses/updates a _typed_ variable _var1_ of type `matrix`
170
166
171
167
172
168
_ Example of variable declarations:_
173
- @ snippet help.snippets.signature-parts/SignaturePartsSim.cpp signature_variables
169
+ ** TOIMPL **
174
170
175
171
176
172
### Discrete events {#dev_signature_data_events}
177
173
178
174
Discrete events are attached to spatial units, They are accessed or appended by simulators during simulations,
179
175
and are declared using the @if DocIsLaTeX ** DECLARE_USED_EVENTS**
180
- @else # DECLARE_USED_EVENTS @endif
176
+ @else DECLARE_USED_EVENTS @endif
181
177
instruction.
182
178
183
179
The declaration instruction takes 1 argument: the units class.
184
180
185
181
_ Example of events declaration:_
186
- @ snippet help.snippets.signature-parts/SignaturePartsSim.cpp signature_events
182
+ ** TOIMPL **
187
183
188
184
189
185
### Extra files {#dev_signature_data_extrafiles}
190
186
191
187
Simulators can declare files that they load and manage. This helps users to provide the needed files, and also
192
188
notifies the OpenFLUID framework to check the presence of the file if it is required.
193
189
These files are declared using the @if DocIsLaTeX ** DECLARE_USED_EXTRAFILE**
194
- @else # DECLARE_USED_EXTRAFILE @endif
190
+ @else DECLARE_USED_EXTRAFILE @endif
195
191
or @if DocIsLaTeX ** DECLARE_REQUIRED_EXTRAFILE**
196
- @else # DECLARE_REQUIRED_EXTRAFILE @endif
192
+ @else DECLARE_REQUIRED_EXTRAFILE @endif
197
193
instructions.
198
194
199
195
The declaration instruction takes 1 argument: the file name with relative path to the dataset path.
200
196
201
197
_ Example of extra file declarations:_
202
- @ snippet help.snippets.signature-parts/SignaturePartsSim.cpp signature_extrafiles
198
+ ** TOIMPL **
203
199
204
200
205
201
### Spatial units graph {#dev_signature_data_spatial}
@@ -208,7 +204,7 @@ The spatial units graph representing the landscape can be modified by simulators
208
204
These modifications are declared in the signature function using two instructions.
209
205
210
206
The @if DocIsLaTeX ** DECLARE_UPDATED_UNITSGRAPH**
211
- @else # DECLARE_UPDATED_UNITSGRAPH @endif
207
+ @else DECLARE_UPDATED_UNITSGRAPH @endif
212
208
instruction is used for declaration of the global units graph modification
213
209
that will occur during simulation.
214
210
It is for information purpose only, and takes a description as a single argument.
@@ -223,11 +219,11 @@ It takes two arguments:
223
219
224
220
225
221
_ Example of declarations for spatial units graph:_
226
- @ snippet help.snippets.signature-parts/SignaturePartsSim.cpp signature_spatial
222
+ ** TOIMPL **
227
223
228
224
229
225
## Complete signature example {#dev_signature_exmpl}
230
226
231
227
The signature code below shows an example of a possible signature for a simulator.
232
228
233
- @ snippet help.snippets.signature/SignatureSim.cpp signature_full
229
+ ** TOIMPL **
0 commit comments