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

Feature/collision refactor #326

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
Open

Conversation

lazersos
Copy link
Collaborator

This pull requests moves the computation of various coulomb logarithms and Spitzer collisional time to a LIBSTELL based module so that both BEAMS3D and THRIFT can refernece a common database. The BEAMS3D regression tests all pass so there should be no chage BEASM3D performance.

@ajchcoelho will handle interfacing the new module into THRIFT.

@lazersos lazersos added the enhancement New feature or request label Dec 18, 2024
@lazersos lazersos added this to the Release v.5.00 milestone Dec 18, 2024
@lazersos lazersos self-assigned this Dec 18, 2024
@lazersos lazersos linked an issue Dec 20, 2024 that may be closed by this pull request
@kudav
Copy link
Collaborator

kudav commented Jan 2, 2025

Shouldn't we include the other coulomb logarithms and collision parameters (coll_op_nubeam) as well?

@lazersos
Copy link
Collaborator Author

lazersos commented Jan 2, 2025

Shouldn't we include the other coulomb logarithms and collision parameters (coll_op_nubeam) as well?

When a peer reviewed publication on NUBEAM exists where they properly describe the derivation of their operator and verify the behavior, then I think it's worth considering. For now it's in BEAMS3D to support the comparrision on ASDEX. The issue is that no device/diagnostic has enough fidelity to proivde a validation case to allow comparrision between different collisional models for fast ions. Additionally, this module is to support broader transport work and just happens to overlap a bit with BEAMS3D, hence the changes.

@kudav
Copy link
Collaborator

kudav commented Jan 3, 2025

#319 has some bugfixes in commits 9163fc4 a7b8c7d and 1440758. Can we put them in here so they are fixed in the new version?

@lazersos
Copy link
Collaborator Author

lazersos commented Jan 3, 2025

@kudav If you have bugfixes, they should probably go in separate pull requests from the feature pull request. Create a branch based on develop and cherrypick each bugfix as a separate branch and make separate pull requests.

@lazersos lazersos closed this Jan 3, 2025
@lazersos lazersos reopened this Jan 7, 2025
Copy link
Collaborator

@kudav kudav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a bug in fact_crit which resulted in a critical velocity about two orders of magnitude too large because sqrt(electron_mass)^-1 was used instead of sqrt(plasma_mass)^-1. I discovered this when my slowing down run with the NRL calculation took only a minute (instead of an hour), by which time all particles had slowed down.
I also confirmed that fact_crit and fact_crit_weiland were the same save for the Z_plasma factor and removed the additional calculations. This also makes the difference between the two clear.

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.

Get Collision Operators into LIBSTELL
2 participants