simulation_null module

class simulation_null.NullSimulation(solver_name, problem_name, rp, timers=None, data_class=<class 'mesh.patch.CellCenterData2d'>)[source]

Bases: object

compute_timestep()[source]

a generic wrapper for computing the timestep that respects the driver parameters on timestepping

do_output()[source]

is it time to output?

dovis()[source]
evolve()[source]
finalize()[source]

Do any final clean-ups for the simulation and call the problem’s finalize() method.

finished()[source]

is the simulation finished based on time or the number of steps

initialize()[source]
method_compute_timestep()[source]

the method-specific timestep code

preevolve()[source]

Do any necessary evolution before the main evolve loop. This is not needed for advection

read_extras(f)[source]

read in any simulation-specific data from an h5py file object f

write(filename)[source]

Output the state of the simulation to an HDF5 file for plotting

write_extras(f)[source]

write out any extra simulation-specific stuff

simulation_null.bc_setup(rp)[source]
simulation_null.grid_setup(rp, ng=1)[source]