-
Notifications
You must be signed in to change notification settings - Fork 33
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
base: main
Are you sure you want to change the base?
Conversation
This will make it easier to integrate non-Qualikiz-based quasilinear transport models. PiperOrigin-RevId: 691455432
5c2a110
to
6a95a95
Compare
@lorenzozanisi could you lend a hand with checking the normalisations? |
/ (CONSTANTS.qe * geo.B0) ** 2 | ||
* (Ti.face_value() * CONSTANTS.keV2J) ** 1.5 | ||
/ lref | ||
) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
Compute gradients at rmid
Add
TGLFInputs
class andTGLFNN
model.Note: completion depends on other work in progress in #476.
Remaining tasks:
QuasilinearTransportModelInputs
QuasilinearTransportModel
physics.py