![]() |
Subroutines to handle parametric evolution of hydrodynamic quantities after the final timestep of the trajectory. More...
Functions/Subroutines | |
subroutine | expansion_init () |
Initialize the expansion module and open files for debugging. More... | |
subroutine | residual_expansion |
Calculates the velocity for trajectory extrapolation by linear regression on a few last points; the number of points is controlled by the parameter parameter_class::extrapolation_width. More... | |
subroutine | expansion (t, dt, ye, dens, rad_in, temp, entropy, vel_in, abar) |
Returns temperature, radius, density, and entropy after the trajectory has ended. More... | |
subroutine | expansion_finalize () |
Close debug files of the module. More... | |
Variables | |
real(r_kind) | mdot |
1/4pi*dM/dr = rho*r^2 = const More... | |
real(r_kind) | rho_0 |
Density [g/ccm] at the end of the trajectory. More... | |
real(r_kind) | rad_0 |
Radius [km] at the end of the trajectory. More... | |
real(r_kind) | t9_0 |
Temperature [GK] at the end of the trajectory. More... | |
real(r_kind) | t_0 |
Time at the end of the trajectory. More... | |
real(r_kind) | tau |
real(r_kind) | s_0 |
Entropy at the end of the trajectory (deprecated) More... | |
type(timmes_eos_state) | state |
EOS state. More... | |
real(r_kind) | vel |
velocity [km/s] More... | |
real(r_kind) | rad |
radial distance [km] More... | |
logical | expand |
flag if expansion will be present More... | |
integer | expand_count |
1 for the first timestep 2 for following steps, 0 for no expansion yet More... | |
integer, private | debug_exp |
file ID for debugging expansion More... | |
Subroutines to handle parametric evolution of hydrodynamic quantities after the final timestep of the trajectory.
Edited:
subroutine expansion_module::expansion | ( | real(r_kind), intent(in) | t, |
real(r_kind), intent(in) | dt, | ||
real(r_kind), intent(in) | ye, | ||
real(r_kind), intent(inout) | dens, | ||
real(r_kind), intent(inout) | rad_in, | ||
real(r_kind), intent(inout) | temp, | ||
real(r_kind), intent(in) | entropy, | ||
real(r_kind), intent(inout) | vel_in, | ||
real(r_kind), intent(in) | abar | ||
) |
Returns temperature, radius, density, and entropy after the trajectory has ended.
This depends on the parameter_class::expansiontype parameter. Possible values are:
Value | Expansion | Literature |
---|---|---|
1 | Adiabatic expansion | Korobkin et al. 2012 |
2 | Exponential expansion | - |
3 | Expansion with const. velocity | - |
4 | Expansion with const. velocity | Fujimoto et al. 2008 |
Edited:
Definition at line 239 of file expansion_module.f90.
subroutine expansion_module::expansion_finalize |
Close debug files of the module.
Edited:
Definition at line 360 of file expansion_module.f90.
subroutine expansion_module::expansion_init |
Initialize the expansion module and open files for debugging.
This subroutine also determines if the simulation has to use the expansion routine or not (depending on parameter_class::termination_criterion).
Edited:
Definition at line 59 of file expansion_module.f90.
subroutine expansion_module::residual_expansion |
Calculates the velocity for trajectory extrapolation by linear regression on a few last points; the number of points is controlled by the parameter parameter_class::extrapolation_width.
Edited:
Definition at line 118 of file expansion_module.f90.
|
private |
file ID for debugging expansion
Definition at line 37 of file expansion_module.f90.
logical expansion_module::expand |
flag if expansion will be present
Definition at line 34 of file expansion_module.f90.
integer expansion_module::expand_count |
1 for the first timestep 2 for following steps, 0 for no expansion yet
Definition at line 35 of file expansion_module.f90.
real(r_kind) expansion_module::mdot |
1/4pi*dM/dr = rho*r^2 = const
Definition at line 24 of file expansion_module.f90.
real(r_kind) expansion_module::rad |
radial distance [km]
Definition at line 33 of file expansion_module.f90.
real(r_kind) expansion_module::rad_0 |
Radius [km] at the end of the trajectory.
Definition at line 26 of file expansion_module.f90.
real(r_kind) expansion_module::rho_0 |
Density [g/ccm] at the end of the trajectory.
Definition at line 25 of file expansion_module.f90.
real(r_kind) expansion_module::s_0 |
Entropy at the end of the trajectory (deprecated)
Definition at line 30 of file expansion_module.f90.
type(timmes_eos_state) expansion_module::state |
EOS state.
Definition at line 31 of file expansion_module.f90.
real(r_kind) expansion_module::t9_0 |
Temperature [GK] at the end of the trajectory.
Definition at line 27 of file expansion_module.f90.
real(r_kind) expansion_module::t_0 |
Time at the end of the trajectory.
Definition at line 28 of file expansion_module.f90.
real(r_kind) expansion_module::tau |
Definition at line 29 of file expansion_module.f90.
real(r_kind) expansion_module::vel |
velocity [km/s]
Definition at line 32 of file expansion_module.f90.