pyro module

class pyro.Pyro(solver_name)[source]

Bases: object

The main driver to run pyro.

get_var(v)[source]

Alias for cc_data’s get_var routine, returns the cell-centered data given the variable name v.

initialize_problem(problem_name, inputs_file=None, inputs_dict=None, other_commands=None)[source]

Initialize the specific problem

Parameters
problem_namestr

Name of the problem

inputs_filestr

Filename containing problem’s runtime parameters

inputs_dictdict

Dictionary containing extra runtime parameters

other_commandsstr

Other command line parameter options

run_sim()[source]

Evolve entire simulation

single_step()[source]

Do a single step

class pyro.PyroBenchmark(solver_name, comp_bench=False, reset_bench_on_fail=False, make_bench=False)[source]

Bases: pyro.Pyro

A subclass of Pyro for benchmarking. Inherits everything from pyro, but adds benchmarking routines.

compare_to_benchmark(rtol)[source]

Are we comparing to a benchmark?

run_sim(rtol)[source]

Evolve entire simulation and compare to benchmark at the end.

store_as_benchmark()[source]

Are we storing a benchmark?

pyro.parse_args()[source]

Parse the runtime parameters