flaresimulations / synthesizer

Synthesizer - a code for creating synthetic astrophysical observables
https://flaresimulations.github.io/synthesizer/
GNU General Public License v3.0
17 stars 9 forks source link

Fix parametric young stars #718

Closed christopherlovell closed 1 week ago

christopherlovell commented 2 months ago

Updates the parametric young stars implementation to create individual star particles on the grid. This is opposed to the previous implementation, which was implemented on generate_lnu and directly produced the spectra from a parametric stars object; this led to issue with emission models with age dependencies, e.g., the CF00 dust model.

In this implementation new stars are created on the grid. These can then be self consistently treated as normal star particles for all downstream tasks. The old stars are saved on the object, as well as details of the parametrisation. This means that the procedure can be reversed, or new parametrisations applied, relatively easily.

This relies on the add_parts branch, and makes some additional modifications to this to generalise addition of particle stars object array attributes.

Additional changes:

Issue Type

Checklist