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, beta_sobolev=None, legacy_mode=True)[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_legacy_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

solve_transition_probabilities(atomic_data, mean_intensities, tau_sobolev, beta_sobolev, stimulated_emission_factor)[source]

Solve the basic transition probabilities for the macroatom

Parameters:
atomic_datatardis.io.atom_data.AtomData

Atomic Data

mean_intensitiespd.DataFrame

Mean intensity of the radiation field for each shell

tau_sobolevpd.DataFrame

Expansion Optical Depths

beta_sobolevpd.DataFrame

Modified expansion Optical Depths

stimulated_emission_factornp.ndarray
Returns:
pd.DataFrame

Transition Probabilities