tardis.opacities.macro_atom.macroatom_solver module

class tardis.opacities.macro_atom.macroatom_solver.MacroAtomSolver(initialize=True, normalize=True)[source]

Bases: object

Solver class for Macro Atom related opacities

Parameters:
initialize: bool

Whether or not to initialize the transition probabilitiy coefficients and block references when solving the first time (default True)

normalize: bool

Whether or not to normalize the transition probabilities to unity. Default True

initialize: bool = True
initialize_transition_probabilities(atomic_data)[source]

initialize the transition probability coefficients and block references when solving the first time

Parameters:
atomic_datatardis.io.atom_data.AtomData

Atomic Data

normalize: bool = True
solve(legacy_plasma, atomic_data, tau_sobolev, stimulated_emission_factor)[source]

Solved the Macro Atom State

Parameters:
legacy_plasmatarids.plasma.BasePlasma

legacy base plasma

atomic_datatardis.io.atom_data.AtomData

Atomic Data

tau_sobolevpd.DataFrame

Expansion Optical Depths

stimulated_emission_factorpd.DataFrame
Returns:
tardis.opacities.macroatom_state.MacroAtomState

State of the macro atom ready to be placed into the OpacityState

solve_transition_probabilities(atomic_data, legacy_plasma, tau_sobolev, stimulated_emission_factor)[source]

Solve the basic transition probabilities for the macroatom

Parameters:
atomic_datatardis.io.atom_data.AtomData

Atomic Data

legacy_plasmatarids.plasma.BasePlasma

legacy base plasma

tau_sobolevpd.DataFrame

Expansion Optical Depths

stimulated_emission_factornp.ndarray
Returns:
pd.DataFrame

Transition Probabilities