-
Notifications
You must be signed in to change notification settings - Fork 18
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
WIP: Neutral model improvements #165
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
- For testing
Check if float option is < 0 rather than equal to -1. Remove some unused and commented-out code.
Flux limited particle flux is used in momentum flux before the momentum flux is limited. Particle flux limiter applied to advection of momentum and pressure.
Applies a time-averaging to the flux limit factors, with a given timescale. Doesn't appear to have much benefit in quick tests, but left in and turned off by default. May be removed if it really doesn't do anything useful.
The linear flag is set when the time integrator is in a linear solve. Components can disable nonlinear updates to (sometimes) improve convergence.
- Add a relaxation timescale to the coefficients. Damps oscillations and improves convergence. - Calculate fluxes at cell edges, and use maximum local flux to calculate flux limit factors - Near boundaries use the minimum of the flux limit factor in the last two cells. This is because fluxes in the last cell may not be calculated correctly in the flux limit calculation. - Don't update coefficients in a linear solve (this seems to be a small effect)
- Disable maximum_mfp by default - Use a timescale of 1e-6 for the flux limit factor relaxation (`flux_factor_timescale` option).
Development has been split off into other PRs. Limiter development: mikekryjak#6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Trying to get model closer to Horsten thesis (2019).
The net effect of the changes so far is to:
The atomic rates used in diffusion, viscosity, and heat conduction coefficients are still different from Horsten 2019.