pyro package#
pyro is a python hydrodynamics code designed for teaching and prototyping new methods.
Subpackages#
- pyro.advection package
- pyro.advection_fv4 package
- pyro.advection_nonuniform package
- pyro.advection_rk package
- pyro.advection_weno package
- pyro.burgers package
- pyro.burgers_viscous package
- pyro.compressible package
- Subpackages
- pyro.compressible.problems package
- Submodules
- pyro.compressible.problems.acoustic_pulse module
- pyro.compressible.problems.advect module
- pyro.compressible.problems.bubble module
- pyro.compressible.problems.gresho module
- pyro.compressible.problems.hse module
- pyro.compressible.problems.kh module
- pyro.compressible.problems.logo module
- pyro.compressible.problems.quad module
- pyro.compressible.problems.ramp module
- pyro.compressible.problems.rt module
- pyro.compressible.problems.rt2 module
- pyro.compressible.problems.sedov module
- pyro.compressible.problems.sod module
- pyro.compressible.problems.test module
- pyro.compressible.problems package
- Submodules
- pyro.compressible.BC module
- pyro.compressible.derives module
- pyro.compressible.eos module
- pyro.compressible.interface module
- pyro.compressible.riemann module
- pyro.compressible.simulation module
- pyro.compressible.unsplit_fluxes module
- Subpackages
- pyro.compressible_fv4 package
- Subpackages
- pyro.compressible_fv4.problems package
- Submodules
- pyro.compressible_fv4.problems.acoustic_pulse module
- pyro.compressible_fv4.problems.advect module
- pyro.compressible_fv4.problems.bubble module
- pyro.compressible_fv4.problems.gresho module
- pyro.compressible_fv4.problems.hse module
- pyro.compressible_fv4.problems.kh module
- pyro.compressible_fv4.problems.logo module
- pyro.compressible_fv4.problems.quad module
- pyro.compressible_fv4.problems.ramp module
- pyro.compressible_fv4.problems.rt module
- pyro.compressible_fv4.problems.rt2 module
- pyro.compressible_fv4.problems.sedov module
- pyro.compressible_fv4.problems.sod module
- pyro.compressible_fv4.problems.test module
- pyro.compressible_fv4.problems package
- Submodules
- pyro.compressible_fv4.fluxes module
- pyro.compressible_fv4.simulation module
- Subpackages
- pyro.compressible_react package
- pyro.compressible_rk package
- Subpackages
- pyro.compressible_rk.problems package
- Submodules
- pyro.compressible_rk.problems.acoustic_pulse module
- pyro.compressible_rk.problems.advect module
- pyro.compressible_rk.problems.bubble module
- pyro.compressible_rk.problems.gresho module
- pyro.compressible_rk.problems.hse module
- pyro.compressible_rk.problems.kh module
- pyro.compressible_rk.problems.logo module
- pyro.compressible_rk.problems.quad module
- pyro.compressible_rk.problems.ramp module
- pyro.compressible_rk.problems.rt module
- pyro.compressible_rk.problems.rt2 module
- pyro.compressible_rk.problems.sedov module
- pyro.compressible_rk.problems.sod module
- pyro.compressible_rk.problems.test module
- pyro.compressible_rk.problems package
- Submodules
- pyro.compressible_rk.fluxes module
- pyro.compressible_rk.simulation module
- Subpackages
- pyro.compressible_sdc package
- Subpackages
- pyro.compressible_sdc.problems package
- Submodules
- pyro.compressible_sdc.problems.acoustic_pulse module
- pyro.compressible_sdc.problems.advect module
- pyro.compressible_sdc.problems.bubble module
- pyro.compressible_sdc.problems.gresho module
- pyro.compressible_sdc.problems.hse module
- pyro.compressible_sdc.problems.kh module
- pyro.compressible_sdc.problems.logo module
- pyro.compressible_sdc.problems.quad module
- pyro.compressible_sdc.problems.ramp module
- pyro.compressible_sdc.problems.rt module
- pyro.compressible_sdc.problems.rt2 module
- pyro.compressible_sdc.problems.sedov module
- pyro.compressible_sdc.problems.sod module
- pyro.compressible_sdc.problems.test module
- pyro.compressible_sdc.problems package
- Submodules
- pyro.compressible_sdc.simulation module
- Subpackages
- pyro.diffusion package
- pyro.incompressible package
- pyro.incompressible_viscous package
- pyro.lm_atm package
- pyro.mesh package
- Submodules
- pyro.mesh.array_indexer module
- pyro.mesh.boundary module
- pyro.mesh.fv module
- pyro.mesh.integration module
- pyro.mesh.patch module
Cartesian2d
CellCenterData2d
CellCenterData2d.add_derived()
CellCenterData2d.add_ivars()
CellCenterData2d.create()
CellCenterData2d.fill_BC()
CellCenterData2d.fill_BC_all()
CellCenterData2d.get_aux()
CellCenterData2d.get_var()
CellCenterData2d.get_var_by_index()
CellCenterData2d.get_vars()
CellCenterData2d.max()
CellCenterData2d.min()
CellCenterData2d.pretty_print()
CellCenterData2d.prolong()
CellCenterData2d.register_var()
CellCenterData2d.restrict()
CellCenterData2d.set_aux()
CellCenterData2d.write()
CellCenterData2d.write_data()
CellCenterData2d.zero()
FaceCenterData2d
Grid2d
SphericalPolar
cell_center_data_clone()
do_demo()
- pyro.mesh.reconstruction module
- pyro.multigrid package
- Subpackages
- pyro.multigrid.examples package
- Submodules
- pyro.multigrid.examples.mg_test_general_alphabeta_only module
- pyro.multigrid.examples.mg_test_general_beta_only module
- pyro.multigrid.examples.mg_test_general_constant module
- pyro.multigrid.examples.mg_test_general_dirichlet module
- pyro.multigrid.examples.mg_test_general_inhomogeneous module
- pyro.multigrid.examples.mg_test_simple module
- pyro.multigrid.examples.mg_test_vc_constant module
- pyro.multigrid.examples.mg_test_vc_dirichlet module
- pyro.multigrid.examples.mg_test_vc_periodic module
- pyro.multigrid.examples.mg_vis module
- pyro.multigrid.examples.project_periodic module
- pyro.multigrid.examples.prolong_restrict_demo module
- pyro.multigrid.examples package
- Submodules
- pyro.multigrid.MG module
- pyro.multigrid.edge_coeffs module
- pyro.multigrid.general_MG module
- pyro.multigrid.variable_coeff_MG module
- Subpackages
- pyro.particles package
- pyro.swe package
- pyro.util package
Submodules#
pyro.plot module#
pyro.pyro_sim module#
- class pyro.pyro_sim.Pyro(solver_name, *, from_commandline=False)[source]#
Bases:
object
The main driver to run pyro.
- add_problem(name, problem_func, *, problem_params=None)[source]#
Add a problem setup for this solver.
- Parameters:
- namestr
The descriptive name of the problem
- problem_funcfunction
The function to initialize the state data
- problem_paramsdict
A dictionary of runtime parameters needed for the problem setup
- get_var(v)[source]#
Alias for the data’s get_var routine, returns the simulation data given the variable name v.
pyro.simulation_null module#
- class pyro.simulation_null.NullSimulation(solver_name, problem_name, problem_func, rp, *, problem_finalize_func=None, problem_source_func=None, timers=None, data_class=<class 'pyro.mesh.patch.CellCenterData2d'>)[source]#
Bases:
object
- compute_timestep()[source]#
a generic wrapper for computing the timestep that respects the driver parameters on timestepping
- finalize()[source]#
Do any final clean-ups for the simulation and call the problem’s finalize() method.
pyro.test module#
- pyro.test.avoid_interleaved_output(nproc)[source]#
Collect all the printed output and print it all at once to avoid interleaving.