pydrad parse#

Objects for easily parsing HYDRAD results

Classes#

InitialProfile(hydrad_root, time, **kwargs)

Profile(hydrad_root, time, **kwargs)

Container for HYDRAD results at a given timestep.

Strand(hydrad_root, **kwargs)

Container for parsing HYDRAD results

Functions#

read_master_time(hydrad_root[, read_from_cfg])

Get array of times that correspond to each timestep for the entire simulation.

read_amr_file(filename)

Parse the adaptive mesh refinement .amr files containing grid parameters and conserved quantities as a function of position.

read_phy_file(filename)

Parse physical variables .phy files containing thermodynamic quantities as a function of position.

read_ine_file(filename, n_s)

Parse the ionization non-equilibrium .ine files containing ionization fraction as a function of position.

read_trm_file(filename)

Parse .trm files with hydrodynamic equation terms as a function of position.

read_hstate_file(filename)

Parse the .hstate files containing the hydrogen level populations as a function of position

read_scl_file(filename)

Parse the .scl files containing the time-scales as a function of position