We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5852672 commit c500484Copy full SHA for c500484
torax/_src/sources/source_profiles.py
@@ -121,10 +121,12 @@ def merge(
121
)
122
123
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>
126
total = self.bootstrap_current.j_bootstrap
127
total += sum(self.psi.values())
128
mu0 = constants.CONSTANTS.mu0
- 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
130
return -total * prefactor
131
132
def total_sources(
0 commit comments