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(self)[source]

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

do_output(self)[source]

is it time to output?

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

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

finished(self)[source]

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

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

the method-specific timestep code

preevolve(self)[source]

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

read_extras(self, f)[source]

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

write(self, filename)[source]

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

write_extras(self, f)[source]

write out any extra simulation-specific stuff

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