Skip to content

Improve coll_krook second derivative#455

Merged
johnomotani merged 5 commits into
masterfrom
improve-coll_krook-second-derivative
Jun 5, 2026
Merged

Improve coll_krook second derivative#455
johnomotani merged 5 commits into
masterfrom
improve-coll_krook-second-derivative

Conversation

@johnomotani

Copy link
Copy Markdown
Collaborator

Slightly hacky, but only expect to use this for the Krook-collisional fluid closure. Should help to prevent spikes at z-direction element boundaries in the ion temperature (in coll_krook simulations).

Also puts the update of moments.ion.temp in a more standard place, so that the ion temperature is always available (this could be used to simplify code in several places, but this has not been done yet).

Slightly hacky, but only expect to use this for collisional fluid
closure.
This modification avoids taking the first derivative of a first
derivative, which may improve numerical stability.
The tests now use more timesteps, so the accumulated rounding errors are
a bit bigger.
Don't understand why this change altered the results of
coll_krook_tests.jl, but the change is very small so probably nothing to
worry about.
@johnomotani johnomotani added the enhancement New feature or request label Jun 4, 2026
Missed in "Initialize and update moment.ion.temp".
@johnomotani

Copy link
Copy Markdown
Collaborator Author

@LucasMontoya4 - tests passed, should we merge this now?

@LucasMontoya4

Copy link
Copy Markdown
Collaborator

@johnomotani looks fine to me. Do you think it's alright to have my Zenodo repo for the first paper still point to the previous version of master, so that the simulations can stay as the old ones?

@johnomotani

Copy link
Copy Markdown
Collaborator Author

Do you think it's alright to have my Zenodo repo for the first paper still point to the previous version of master, so that the simulations can stay as the old ones?

Yes that's fine. The data provenance should point to whatever version (or versions, if necessary!) you used.

@johnomotani johnomotani merged commit 275ba2b into master Jun 5, 2026
20 checks passed
@johnomotani johnomotani deleted the improve-coll_krook-second-derivative branch June 5, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants