Multiple SetOptions blocks are allowed. Label values specified in one SetOption block may be overwritten by a later SetOption block. Output formats for a given output are set during the processing of the Specify block for the enclosing Oxs_Ext object. Therefore, one can specify different formats for outputs in different Oxs_Ext objects by strategic placement of SetOptions blocks.
Additional label names may be added in the future, and may be Oxs_Ext class dependent. At present there is no checking for unknown label names, but that policy is subject to change.
An example SetOptions block:
SetOptions {
basename fubar
scalar_output_format %.12g
scalar_field_output_format {text %.4g}
scalar_field_output_meshtype irregular
vector_field_output_format {binary 4}
}
Oxs_AtlasScalarField:Ms {
atlas :atlas
default_value 0
values {
Adisks 520e3
Bdisks 520e3
}
}}
set Ms_a [EvalScalarField :Ms 50e-9 20e-9 2e-9]
The four arguments to EvalScalarField are a reference to the scalar
field (here :Ms), and the three coordinates of the point where you
want the field evaluated. The coordinates are in the problem coordinate
space, i.e., in meters.
set regions_list [GetAtlasRegions :atlas]
set rogue_region [GetAtlasRegionByPosition :atlas 350e-9 120e-9 7.5e-9]