Closed sophieaerdker closed 9 months ago
The new module has some set-function for the parameters. For consistency also get-functions would be good.
And for the functionality it would be good if the position of the shocks could also be shifted, to allow more customized simulations.
I added the get-functions and changed the name of OneDimensionalAdvectionShock
to OneDimensionalCartesianShock
to set apart from OneDimensionalSphericalShock
.
I think the change of the shock position is not necessary for the 1D cartesian case, since it's only for testing purposes and basically all other (analytical) works have the 1D shock at x=0. You can simply set your environment around it and it's not suitable for more complex scenarios anyways.
This PR adds new shock profiles for simulating diffusive shock acceleration to the AdvectionField module. In the 2023 ICRC proceedings the advection field
OneDimensionalAdvectionShock
was used to obtain the time-dependent spectra at a 1D cartesian shock. Additional shock profiles allow for oblique shocks and 1D radial shocks.