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

Evaluate the three-dimensional MHD energy functional. Think of this as the "forward model" that tells you the MHD forces in Fourier space given the Fourier coefficients of the flux surface geometry. More...

Go to the source code of this file.

Functions/Subroutines

subroutine funct3d (ier_flag)
 Evaluate the three-dimensional MHD energy functional. Think of this as the "forward model" that tells you the MHD forces in Fourier space given the Fourier coefficients of the flux surface geometry.
 

Detailed Description

Evaluate the three-dimensional MHD energy functional. Think of this as the "forward model" that tells you the MHD forces in Fourier space given the Fourier coefficients of the flux surface geometry.

Definition in file funct3d.f90.

Function/Subroutine Documentation

◆ funct3d()

subroutine funct3d ( integer, intent(inout) ier_flag)

Evaluate the three-dimensional MHD energy functional. Think of this as the "forward model" that tells you the MHD forces in Fourier space given the Fourier coefficients of the flux surface geometry.

Parameters
ier_flagerror flag

use system call to stand-alone NESTOR for vacuum computation

dump reference input for and output of NESTOR when using internal NESTOR

Definition at line 13 of file funct3d.f90.

References alias(), vacmod::amatsav, vforces::armn, vforces::azmn, vmec_params::bad_jacobian_flag, bcovar(), vforces::blmn, vforces::brmn, vforces::brmn_con, vmec_main::bsqsav, vacmod::bsqvac, vacmod::bsubvvac, vacmod::bvecsav, vforces::bzmn, vforces::bzmn_con, vforces::bzmn_o, vforces::clmn, convert(), vforces::crmn, vmec_main::ctor, vforces::czmn, vmec_main::dbsq, nestor_io::extcur, realspace::extra1, realspace::extra2, realspace::extra3, realspace::extra4, vmec_main::first, forces(), vmec_main::fsql, vmec_main::fsqr, vmec_main::fsqz, xstuff::gc, xstuff::gc_con, xstuff::gc_mhd, realspace::gcon, vmec_main::hs, vmec_main::iequi, nestor_io::input_extension, vmec_main::irzloff, vmec_main::iter1, vmec_main::iter2, vmec_main::ivac, jacobian(), nestor_io::lasym, nestor_io::mgrid_file, nestor_io::mnmax, nestor_io::mpol, vmec_main::neqs, nestor_io::nfp, nestor_io::ntheta, vmec_params::ntmax, nestor_io::ntor, vmec_main::num_eqsolve_retries, nestor_io::nzeta, vmec_main::ohs, dbgout::open_dbg_context(), vmec_main::pres, vmec_main::r00, realspace::r1, vmec_main::rbsq, vmec_main::rbtor, realspace::rcon, realspace::rcon0, read_nestor_outputs(), residue(), residue_con(), residue_mhd(), restart_iter(), vmec_main::rinner, vmec_main::router, realspace::ru, realspace::ru0, realspace::rv, xstuff::scalxc, vmec_params::signgs, realspace::sqrts, symforce(), symrzl(), tomnspa(), tomnspa_con(), tomnsps(), tomnsps_con(), totzspa(), totzsps(), vacuum(), vmec_main::vacuum_calls, realspace::wint, write_nestor_inputs(), nestor_io::write_nestor_outputs(), xstuff::xc, nestor_io::xm, nestor_io::xn, vmec_main::z00, realspace::z1, realspace::zcon, realspace::zcon0, realspace::zu, realspace::zu0, and realspace::zv.

Referenced by evolve(), and fileout().

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