Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unchained flux limiters + fast recycling #179

Closed
wants to merge 29 commits into from
Closed

Conversation

mikekryjak
Copy link
Collaborator

The new flux limiters have proven very difficult due to significant slowdowns. I am able to somehow get reasonable runtimes in the older version of neutral_model where the flux limiters are not chained together (2655106).

This PR is a merge of the above with the latest fast-recycling. It is temporary and allows me to get some results while we work on the latest version of the neutral model (#178).

bendudson and others added 29 commits August 8, 2023 21:44
Trying to get model closer to Horsten thesis (2019).
The net effect of these changes is to:
- Increase heat conduction by 5/3
- Increase heat advection by 5/3
- Increase viscosity by 5/2
- Add viscous heating

The atomic rates used in diffusion, viscosity, and heat conduction
coefficients are still different from Horsten 2019.
Convert from viscous heating power to rate of change of pressure.
Intended to be similar to Wim Van Uytven et al "Assessment of advanced
fluid neutral models for the neutral atoms in the plasma edge and
application in ITER geometry" Nucl. Fusion 62 (2022) 086023

Significantly slows convergence; may be something wrong in implementation.
Previous commit accidentally reversed the sign of the cross-field
particle flow, resulting in very poor convergence.

Flux limits are now enabled by default.
- This is for testing and the Rnn term may be removed permanently later
- The AFN limiters don't have this.
Check if float option is < 0 rather than equal to -1.
Remove some unused and commented-out code.
- Very simple expression at the moment, need to check later whether there are any factors missing from a detailed derivation
- Unsure whether neutral energy source is energy or pressure. Previously neutral energy was T_FC * N and added to energy_source, which seems inconsistent.
The fast recycling energy wasn't being added to the actual energy source, only to the diagnostic energy source
- This allows the heat flow through the sheath to be used by other parts of the code
Field energy_flow_ylow should be shifted to non-aligned
coordinates. In axisymmetric simulations this doesn't make a difference.
Thanks Ben!
Heat flow now correctly calculated from ion sheath heat flow
which is calculated in sheath_boundary_simple.
sheath_boundary not yet supported.
Improved variable names and comments for clarity
Further improvements to code clarity and readability
@mikekryjak
Copy link
Collaborator Author

Development has been split off into other PRs.

Limiter development: mikekryjak#6
Equation fixes: #231

@mikekryjak mikekryjak closed this Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants