Add local poloidal beta profile and beta_pol_prime derivative calculations - #2429
Open
copybara-service[bot] wants to merge 1 commit into
Open
Add local poloidal beta profile and beta_pol_prime derivative calculations#2429copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
…tions Implement `calculate_beta_pol_profile` in `formulas.py` to calculate the local poloidal beta profile on the cell grid, defined as: beta_pol_local = P_total / (<Bp^2> / (2 * mu0)). Also implement `calc_beta_pol_prime` on the face grid to compute the derivative magnitude with respect to normalized poloidal flux: beta_pol_prime = -d(beta_pol_local) / d(psi_norm). Register BETA_POL_PROFILE and BETA_POL_PRIME as output keys in post-processing. Part of a chain of PRs related to setting Internal Boundary Conditions consistent with a user-set beta_pol_prime. PiperOrigin-RevId: 976562006
copybara-service
Bot
force-pushed
the
test_976562006
branch
from
September 6, 2026 11:36
5b6cda3 to
4b63586
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add local poloidal beta profile and beta_pol_prime derivative calculations
Implement
calculate_beta_pol_profileinformulas.pyto calculate the localpoloidal beta profile on the cell grid, defined as:
beta_pol_local = P_total / (<Bp^2> / (2 * mu0)).
Also implement
calc_beta_pol_primeon the face grid to compute thederivative magnitude with respect to normalized poloidal flux:
beta_pol_prime = -d(beta_pol_local) / d(psi_norm).
Register BETA_POL_PROFILE and BETA_POL_PRIME as output keys in post-processing.
Part of a chain of PRs related to setting Internal Boundary Conditions
consistent with a user-set beta_pol_prime.