Parameters_1.gif > Parameters_2.gif

PARAMETERS TUTORIAL Parameters_3.gif            Parameters_4.gif

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]:=

Parameters_5.gif

Out[1]//Short=

Parameters_6.gif

or it can be used to list only a subset of parameters

In[2]:=

Parameters_7.gif

Out[2]=

Parameters_8.gif

If you already know the parameter name, then you can just request the value of that parameter using ReadSimulationParameter

In[3]:=

Parameters_9.gif

Out[3]=

Parameters_10.gif

All parameter values are returned as strings which can then be converted to the appropriate type

In[4]:=

Parameters_11.gif

Out[4]//InputForm=

2.00

In[5]:=

Parameters_12.gif

Out[5]=

Parameters_13.gif

Related Tutorials

SupportedCodesAndDataFormats

SimulationInformation

Created with the Wolfram Language