Skip to content

Commit

Permalink
fix plasma for tardis restructure (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshields committed Jul 26, 2024
1 parent 22506af commit 43e592c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion stardis/plasma/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,9 +545,14 @@ def create_stellar_plasma(
# plasma_modules.remove(tardis.plasma.properties.general.SelectedAtoms)
# plasma_modules.remove(tardis.plasma.properties.plasma_input.Density)

radiation_field = tardis.plasma.radiation_field.DilutePlanckianRadiationField(
temperature=stellar_model.temperatures,
dilution_factor=np.ones_like(stellar_model.temperatures),
)

return BasePlasma(
plasma_properties=plasma_modules,
t_rad=stellar_model.temperatures.value,
dilute_planckian_radiation_field=radiation_field,
abundance=stellar_model.composition.elemental_mass_fraction,
atomic_data=atom_data,
number_density=stellar_model.composition.elemental_number_density,
Expand Down

0 comments on commit 43e592c

Please sign in to comment.