Add KIM collision-frequency scale#182
Open
krystophny wants to merge 1 commit into
Open
Conversation
This file contains hidden or 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
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.
Adds a positive
collision_frequency_scaleto KIM configuration. It multiplies calculated electron and ion collision frequencies before the Krook argument and Fokker-Planck susceptibility inputs are assembled. The default is 1, so existing collision formulas, profiles, units, and outputs are unchanged. The configured value is displayed and stored in HDF5 provenance.The periodized-background regression uses a scale of 3 and checks the resulting electron collision frequency against the existing Coulomb-logarithm formula.
Verification
Before:
test_periodized_background_feedfailed to compile because the configuration value did not exist.After: the focused regression passes; the full CMake build and all 30 CTest tests pass; bare
fopasses Static, Build, Tests, and Lint.An initial 64-point Krook scout at omega=1e5 overflowed above scale 1. PR 183 traced that result to interpolation of the derived
z0acrossk_parallel=0, not to the collision-frequency scale. Withz0recomputed from interpolated primitives, scales 1 through 3 remain finite. This PR supplies a controlled sensitivity parameter; it makes no benchmark-acceptance claim.Relation to Markus's Fokker-Planck periodic branch
This PR provides a controlled sensitivity parameter with a default-preserving implementation. It was used to diagnose the rejected Krook benchmark and is not an FP acceptance mechanism. Keep its provenance and regression independent of the periodic-FP decision in #191.