VMEC 8.52
3D Equilibrium solver with nested flux surfaces.
|
Compute invariant residuals. More...
Go to the source code of this file.
Functions/Subroutines | |
subroutine | residue (gcr, gcz, gcl, fsqrz, old_fsqz) |
Compute invariant residuals. | |
subroutine | constrain_m1 (gcr, gcz, old_fsqz) |
Compute internal gr , gz required for \(m=1\) constraint. | |
subroutine | scale_m1 (gcr, gcz) |
Compute internal gr , gz required for \(m=1\) constraint. | |
Compute invariant residuals.
Definition in file residue.f90.
subroutine constrain_m1 | ( | real(dp), dimension(ns,0:ntor), intent(inout) | gcr, |
real(dp), dimension(ns,0:ntor), intent(inout) | gcz, | ||
real(dp), intent(in) | old_fsqz ) |
Compute internal gr
, gz
required for \(m=1\) constraint.
gcr | \(R\)-component of forces |
gcz | \(Z\)-component of forces |
Definition at line 167 of file residue.f90.
References vmec_main::iter2, and vmec_main::lconm1.
Referenced by residue(), residue_con(), and residue_mhd().
subroutine residue | ( | real(rprec), dimension(ns,0:ntor,0:mpol1,ntmax), intent(inout) | gcr, |
real(rprec), dimension(ns,0:ntor,0:mpol1,ntmax), intent(inout) | gcz, | ||
real(rprec), dimension(ns,0:ntor,0:mpol1,ntmax), intent(inout) | gcl, | ||
real(rprec), intent(in) | fsqrz, | ||
real(rprec), intent(in) | old_fsqz ) |
Compute invariant residuals.
gcr | \(R\)-component of forces |
gcz | \(Z\)-component of forces |
gcl | \(\lambda\)-component of forces |
Definition at line 9 of file residue.f90.
References vmec_main::ard, vmec_main::arm, vmec_main::azd, vmec_main::azm, vmec_main::brd, vmec_main::brm, vmec_main::bzd, vmec_main::bzm, constrain_m1(), vmec_main::crd, vmec_main::faclam, vmec_main::fedge, vmec_main::fnorm, vmec_main::fnorm1, vmec_main::fnorml, vmec_main::fsql, vmec_main::fsql1, vmec_main::fsqr, vmec_main::fsqr1, vmec_main::fsqz, vmec_main::fsqz1, getfsq(), vmec_main::hs, vmec_main::iter1, vmec_main::iter2, vmec_main::lthreed, vmec_params::meven, vmec_params::modd, vmec_params::ntmax, vmec_main::num_eqsolve_retries, dbgout::open_dbg_context(), vmec_main::r0scale, vmec_params::rsc, vmec_params::rss, scale_m1(), scalfor(), vmec_params::zcc, and vmec_params::zcs.
Referenced by funct3d().
subroutine scale_m1 | ( | real(rprec), dimension(ns,0:ntor), intent(inout) | gcr, |
real(rprec), dimension(ns,0:ntor), intent(inout) | gcz ) |
Compute internal gr
, gz
required for \(m=1\) constraint.
gcr | \(R\)-component of forces |
gcz | \(Z\)-component of forces |
Definition at line 204 of file residue.f90.
References vmec_main::ard, vmec_main::azd, vmec_main::brd, vmec_main::bzd, and vmec_main::lconm1.
Referenced by residue(), residue_con(), and residue_mhd().