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

feat: implement general build_geometry #40

Closed
wants to merge 5 commits into from
Closed

feat: implement general build_geometry #40

wants to merge 5 commits into from

Conversation

hassec
Copy link
Collaborator

@hassec hassec commented Apr 12, 2024

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:

  • double check and document which cocos convention build_geometry should assume as input.

Copy link

google-cla bot commented Apr 12, 2024

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).
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 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,
Copy link
Collaborator Author

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,
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 we consider dV_dpsi as a maybe more recognizable name for this quantity?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants