VMEC 8.52
3D Equilibrium solver with nested flux surfaces.
Loading...
Searching...
No Matches
jxbforce.f90 File Reference

Program for computing local \(\mathbf{K} \times \mathbf{B} = \nabla p\) force balance. More...

Go to the source code of this file.

Functions/Subroutines

subroutine jxbforce (bsupu, bsupv, bsubu, bsubv, bsubsh, bsubsu, bsubsv, gsqrt, bsq, itheta, izeta, brho, ier_flag)
 Program for computing local \(\mathbf{K} \times \mathbf{B} = \nabla p\) force balance.
 

Detailed Description

Program for computing local \(\mathbf{K} \times \mathbf{B} = \nabla p\) force balance.

Definition in file jxbforce.f90.

Function/Subroutine Documentation

◆ jxbforce()

subroutine jxbforce ( real(rprec), dimension(ns,nznt), intent(in) bsupu,
real(rprec), dimension(ns,nznt), intent(in) bsupv,
real(rprec), dimension(ns,nznt,0:1), intent(inout), target bsubu,
real(rprec), dimension(ns,nznt,0:1), intent(inout), target bsubv,
real(rprec), dimension(ns,nznt), intent(in) bsubsh,
real(rprec), dimension(ns,nznt,0:1) bsubsu,
real(rprec), dimension(ns,nznt,0:1) bsubsv,
real(rprec), dimension(ns,nznt), intent(in) gsqrt,
real(rprec), dimension(ns,nznt), intent(in) bsq,
real(rprec), dimension(ns,nznt), intent(out) itheta,
real(rprec), dimension(ns,nznt), intent(out) izeta,
real(rprec), dimension(ns,nznt), intent(out) brho,
integer, intent(in) ier_flag )

Program for computing local \(\mathbf{K} \times \mathbf{B} = \nabla p\) force balance.

Parameters
bsupucontravariant component of magnetic field \(B^\theta\)
bsupvcontravariant component of magnetic field \(B^\zeta\)
bsubucovariant component of magnetic field \(B_\theta\)
bsubvcovariant component of magnetic field \(B_\zeta\)
bsubshcovariant component of magnetic field \(B_s\) on half grid from bss()
bsubsutangential derivate of covariant component of magnetic field \(\partial B_s / \partial \theta\) (?)
bsubsvtangential derivate of covariant component of magnetic field \(\partial B_s / \partial \zeta\) (?)
gsqrtJacobian \(\sqrt{g}\)
bsqmodulus of magnetic field \(|\mathbf{B}|^2\)
ithetapoloidal current
izetatoroidal current
brhoradial component of magnetic field \(B_\rho\) (?)
ier_flagerror flag

Definition at line 19 of file jxbforce.f90.

References vmec_main::bdotb, vmec_main::bdotgradv, fext_fft(), fsym_fft(), fsym_invfft(), getbsubs(), realspace::guu, realspace::guv, realspace::gvv, vmec_main::iotas, vmec_main::jdotb, vmec_main::jpar2, vmec_main::jperp2, mercier(), vmec_params::mnyq, vmec_params::nnyq, vmec_main::ohs, dbgout::open_dbg_context(), vmec_main::phi, realspace::phip, vmec_main::phips, vmec_main::pres, vmec_main::r0scale, realspace::r1, realspace::ru, realspace::rv, realspace::shalf, vmec_params::signgs, vmec_params::successful_term_flag, vmec_main::vp, realspace::wint, realspace::zu, and realspace::zv.

Referenced by eqfor().

Here is the call graph for this function:
Here is the caller graph for this function: