pencil.calc.example_shocktube ============================= .. py:module:: pencil.calc.example_shocktube .. autoapi-nested-parse:: 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 ---------- .. autoapisummary:: pencil.calc.example_shocktube.wrkdir pencil.calc.example_shocktube.sims_list pencil.calc.example_shocktube.sims pencil.calc.example_shocktube.indx pencil.calc.example_shocktube.varfiles pencil.calc.example_shocktube.figsize pencil.calc.example_shocktube.png Module Contents --------------- .. py:data:: wrkdir .. py:data:: sims_list .. py:data:: sims .. py:data:: indx :value: [0, 1, 2] .. py:data:: varfiles .. py:data:: figsize :value: [7.5, 4.635255] .. py:data:: png :value: '.png'