>
PARAMETERS TUTORIAL |
Parameters
SimulationTools currently supports parameter files in the format used by Cactus. It can list all parameters specified for a simulation, search for parameters based on a pattern, or read the value of a specific parameters
Accessing simulation parameters
Reading parameters
FindSimulationParameters | ReadSimulationParameter |
Functions for accessing parameters.
The FindSimulationParameters function can be used to list all parameters set in a simulation
In[1]:=
Out[1]//Short=
or it can be used to list only a subset of parameters
In[2]:=
Out[2]=
If you already know the parameter name, then you can just request the value of that parameter using ReadSimulationParameter
In[3]:=
Out[3]=
All parameter values are returned as strings which can then be converted to the appropriate type
In[4]:=
Out[4]//InputForm=
2.00
In[5]:=
Out[5]=