VMEC 8.52
3D Equilibrium solver with nested flux surfaces.
|
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. | |
Program for computing local \(\mathbf{K} \times \mathbf{B} = \nabla p\) force balance.
Definition in file jxbforce.f90.
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.
bsupu | contravariant component of magnetic field \(B^\theta\) |
bsupv | contravariant component of magnetic field \(B^\zeta\) |
bsubu | covariant component of magnetic field \(B_\theta\) |
bsubv | covariant component of magnetic field \(B_\zeta\) |
bsubsh | covariant component of magnetic field \(B_s\) on half grid from bss() |
bsubsu | tangential derivate of covariant component of magnetic field \(\partial B_s / \partial \theta\) (?) |
bsubsv | tangential derivate of covariant component of magnetic field \(\partial B_s / \partial \zeta\) (?) |
gsqrt | Jacobian \(\sqrt{g}\) |
bsq | modulus of magnetic field \(|\mathbf{B}|^2\) |
itheta | poloidal current |
izeta | toroidal current |
brho | radial component of magnetic field \(B_\rho\) (?) |
ier_flag | error 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().