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

Solves the radial force balance \(\mathbf{B} \cdot B_s = F_s\) for \(B_s\) in real space using collocation. More...

Go to the source code of this file.

Functions/Subroutines

subroutine getbsubs (bsubsmn, frho, bsupu, bsupv, mmax, nmax, info)
 Solves the radial force balance \(\mathbf{B} \cdot B_s = F_s\) for \(B_s\) in real space using collocation.
 

Detailed Description

Solves the radial force balance \(\mathbf{B} \cdot B_s = F_s\) for \(B_s\) in real space using collocation.

Definition in file getbsubs.f90.

Function/Subroutine Documentation

◆ getbsubs()

subroutine getbsubs ( real(rprec), dimension(0:mmax, -nmax:nmax, 0:1), intent(out) bsubsmn,
real(rprec), dimension(nzeta, ntheta3), intent(in) frho,
real(rprec), dimension(nzeta, ntheta3), intent(in) bsupu,
real(rprec), dimension(nzeta, ntheta3), intent(in) bsupv,
integer, intent(in) mmax,
integer, intent(in) nmax,
integer, intent(out) info )

Solves the radial force balance \(\mathbf{B} \cdot B_s = F_s\) for \(B_s\) in real space using collocation.

Parameters
bsubsmnFourier coefficients of B_s
frhoFourier coefficients of radial Force component
bsupucontravariant component of magnetic field \(B^\theta\)
bsupvcontravariant component of magnetic field \(B^\zeta\)
mmaxmaximum poloidal mode number
nmaxmaximum toroidal mode number
infoerror flag

Definition at line 13 of file getbsubs.f90.

References vmec_persistent::cosmu, vmec_persistent::cosnv, vmec_input::lasym, vmec_input::nfp, vmec_dim::ntheta2, vmec_dim::ntheta3, vmec_input::nzeta, vmec_persistent::sinmu, vmec_persistent::sinnv, and solver().

Referenced by jxbforce().

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