>
GRIDS TUTORIAL |
Grid Structure
The computational domain of a simulation may be a complicated combination of maps (coordinate patches) and refinement levels with different grid spacings. SimulationTools can be used to access and visualize this information in a straightforward way.
Accessing grid structure information
ReadGridSpacings | ReadTimeStep |
ReadTimeRange | ReadMaxRefinementLevels |
Determining grid structure information.
Read grid spacing in the x, y and z directions (by default, refinement level 0 is assumed):
In[1]:=
Out[1]=
Read grid spacing on a specific refinement level:
In[2]:=
Out[2]=
Read the time step on refinement level 0:
In[3]:=
Out[3]=
and on other refinement levels:
In[4]:=
Out[4]=
Read the coordinate time range over which simulation data is available:
In[5]:=
Out[5]=
Find the maximum number of refinement levels in the simulation:
In[6]:=
Out[6]=
To determine the coordinate time interval corresponding to a single iteration,
In[7]:=
Out[7]=
Note that these functions rely on certain information being present in the simulation, for example the parameter file. If there is not enough simulation output to determine the above quantities, the functions will fail.