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

[WIP] Add TGLFInputs and TGLFNN #477

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

theo-brown
Copy link
Collaborator

@theo-brown theo-brown commented Oct 30, 2024

Add TGLFInputs class and TGLFNN model.
Note: completion depends on other work in progress in #476.

Remaining tasks:

  • Inherit from QuasilinearTransportModelInputs
  • Inherit from QuasilinearTransportModel
  • Move calculation of Coulomb logarithm, nu, etc to physics.py
  • Check normalisation, reference lengths, chiGB, etc

@theo-brown
Copy link
Collaborator Author

@lorenzozanisi could you lend a hand with checking the normalisations?

/ (CONSTANTS.qe * geo.B0) ** 2
* (Ti.face_value() * CONSTANTS.keV2J) ** 1.5
/ lref
)
Copy link
Collaborator Author

@theo-brown theo-brown Nov 21, 2024

Choose a reason for hiding this comment

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

Is this definition (chiGB) correct / consistent with TGLF?

)
# Shear uses rho_face_norm
# TODO: check whether this should be midplane R
s_hat = physics.calc_s_from_psi(geo, core_profiles.psi) # = r/q dq/dr
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should this be w.r.t midplane R, or rho?

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