You can clone pyro from github: https://github.com/python-hydro/pyro2
The following python packages are required:
numpymatplotlibnumbah5pypytest(for unit tests)
The easiest way to install python is via PyPI using pip:
.. prompt:: bash pip install pyro-hydro
Alternately, you can install from source.
From the pyro2/ directory, we do:
.. prompt:: bash pip install .
This will put the main driver, pyro_sim.py, in your path, and
allow you to run pyro from anywhere.
If you intend on directly developing the solvers, you can instead do:
.. prompt:: bash pip install -e .
This will allow you to modify the python source without having to reinstall each time something changes.
Run the advection solver to quickly test if things are setup correctly:
.. prompt:: bash pyro_sim.py advection smooth inputs.smooth
You should see a plot window pop up with a smooth pulse advecting diagonally through the periodic domain.