Skip to content

Add local poloidal beta profile and beta_pol_prime derivative calculations - #2429

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_976562006
Open

Add local poloidal beta profile and beta_pol_prime derivative calculations#2429
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_976562006

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Sep 6, 2026

Copy link
Copy Markdown

Add local poloidal beta profile and beta_pol_prime derivative calculations

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.

…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 copybara-service Bot changed the title Add local poloidal beta profile and normalized derivative calculations Add local poloidal beta profile and beta_pol_prime derivative calculations Sep 6, 2026
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.

1 participant