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

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.
 

Detailed Description

Compute invariant residuals.

Definition in file residue.f90.

Function/Subroutine Documentation

◆ constrain_m1()

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.

Parameters
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().

Here is the caller graph for this function:

◆ residue()

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.

Parameters
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().

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

◆ scale_m1()

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.

Parameters
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().

Here is the caller graph for this function: