pencil.calc.example_shocktube

example of how shock tube analytic solution might be compared to the simulation results. Assume the directory sod_tests contains one or more subdirectories of shocktube test simulations with various parameters.

The first call takes the parameters of each simulation and constructs an hdf5 file containing the time and saved states of the numeric and analytic solutions.

The second call produces a set of comparison plots for each variable at each snapshot and saves the figures in the simulation directory. From the hdf5 files plots could also be made combining multiple parameter compared to the analytic solution at a given time - not shown here.

Attributes

wrkdir

sims_list

sims

indx

varfiles

figsize

png

Module Contents

pencil.calc.example_shocktube.wrkdir
pencil.calc.example_shocktube.sims_list
pencil.calc.example_shocktube.sims
pencil.calc.example_shocktube.indx = [0, 1, 2]
pencil.calc.example_shocktube.varfiles
pencil.calc.example_shocktube.figsize = [7.5, 4.635255]
pencil.calc.example_shocktube.png = '.png'