Porting the flux-limiter prescription from r9793 to the latest MESA version #771
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR ports the flux-limiter prescription from Levermore & Pomraning (1981), originally available in MESA r9793, to the latest version. It addresses the following:
The code introduces the following boolean control:
use_flux_limiting_with_dPrad_dm_form
When set to .true. and use_dPrad_dm_form_of_T_gradient_eqn = .true., it applies the flux-limiter prescription to compute the radiative pressure gradient in terms of the flux-limiter flxLambda as:
flxR = 4 * pi * r^2 * abs(dT^4/dm) / kap
flxLambda = (6 + 3*flxR) / (6 + 3*flxR + flxR^2)
Then, the expected radiative pressure gradient is updated as:
d_Prad_expected = d_Prad_expected / flxLambda
Additionally, the flux-limiter and flux ratio (flxR) values are stored in the stellar properties as:
flux_limit_lambda
flux_limit_R
These values can be saved in profile files by uncommenting the corresponding entries in profile_columns.list