-
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
feat: implement general build_geometry #40
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
) -> CHEASEGeometry: | ||
"""Build geometry object based on set of profiles from an EQ solution. | ||
|
||
Expects the quantities to adhere to COCOS=??. All inputs are 1D profiles vs normalized rho toroidal (rhon). |
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 pick a COCOS variant here and then maybe even cross-check as much as possible that the inputs adhere to that.
# Set the CHEASE geometry-specific parameters. | ||
g2=g2, | ||
g3=g3, | ||
psi_chease=psi_chease, |
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.
psi_chease
doesn't seem to be used anywhere. Removing it would mean one could avoid having to pass psi
as input.
Rin: jnp.ndarray, | ||
Rout: jnp.ndarray, | ||
RBPhi: jnp.ndarray, | ||
int_Jdchi: jnp.ndarray, |
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 we consider dV_dpsi
as a maybe more recognizable name for this quantity?
…tor calcuation based on meq output
We can use to
build_geometry
to call torax with MEQ output.But I envision it can be a general entry point for various EQ codes.
TODO:
build_geometry
should assume as input.