Setting Key Parameters
You can also declare your primary variables right before their respective XVar blocks
and essentially condense the Exposed Variables and Primary Variables sections into one, as
shown below:
$ VARIABLEONE = default value
<XVar VARIABLEONE>
description = "First variable"
min = minimum value
max = maximum value
</XVar>
$ VARIABLETWO = default value
<XVAR VARIABLETWO>
description = "Second variable"
</XVar>
The parameters defined in the sections above then can be passed as the values for global variables
that define your simulation. For example, if you defined a variable named NDIM
as below:
$ NDIM = 3
<XVar NDIM>
description = "Number of simulated dimensions"
min = 3
</XVar>
You could then use this parameter as the value for the global variable dimension
.
For more information on global variables, see either Global Variables or the section on
global variables in VSim Reference.