Grids_1.gif > Grids_2.gif

GRIDS TUTORIAL Grids_3.gif            Grids_4.gif

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

Grids_5.gif

Out[1]=

Grids_6.gif

Read grid spacing on a specific refinement level:

In[2]:=

Grids_7.gif

Out[2]=

Grids_8.gif

Read the time step on refinement level 0:

In[3]:=

Grids_9.gif

Out[3]=

Grids_10.gif

and on other refinement levels:

In[4]:=

Grids_11.gif

Out[4]=

Grids_12.gif

Read the coordinate time range over which simulation data is available:

In[5]:=

Grids_13.gif

Out[5]=

Grids_14.gif

Find the maximum number of refinement levels in the simulation:

In[6]:=

Grids_15.gif

Out[6]=

Grids_16.gif

To determine the coordinate time interval corresponding to a single iteration,

In[7]:=

Grids_17.gif

Out[7]=

Grids_18.gif

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.

Related Tutorials

Parameters

SupportedCodesAndDataFormats

SimulationInformation

Spikey Created with Wolfram Mathematica 9.0