Skip to content

Commit c500484

Browse files
committed
Switch psi sources to being <j.B>
1 parent 5852672 commit c500484

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

torax/_src/sources/source_profiles.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,12 @@ def merge(
121121
)
122122

123123
def total_psi_sources(self, geo: geometry.Geometry) -> jax.Array:
124+
# All psi sources are assumed to be parallel to the magnetic field, ie
125+
# self.psi.values() is <j.B>
124126
total = self.bootstrap_current.j_bootstrap
125127
total += sum(self.psi.values())
126128
mu0 = constants.CONSTANTS.mu0
127-
prefactor = 8 * geo.vpr * jnp.pi**2 * geo.B_0 * mu0 * geo.Phi_b / geo.F**2
129+
prefactor = 8 * geo.vpr * jnp.pi**2 * mu0 * geo.Phi_b / geo.F**2
128130
return -total * prefactor
129131

130132
def total_sources(

0 commit comments

Comments
 (0)