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

Evaluate the Mercier stability criterion. More...

Go to the source code of this file.

Functions/Subroutines

subroutine mercier (gsqrt, bsq, bdotj, iotas, wint, r1, rt, rz, zt, zz, bsubu, vp, phips, pres, ns, nznt)
 Evaluate the Mercier stability criterion.
 

Detailed Description

Evaluate the Mercier stability criterion.

Definition in file mercier.f90.

Function/Subroutine Documentation

◆ mercier()

subroutine mercier ( real(rprec), dimension(ns,nznt), intent(in) gsqrt,
real(rprec), dimension(ns,nznt), intent(in) bsq,
real(rprec), dimension(ns,nznt), intent(inout) bdotj,
real(rprec), dimension(ns), intent(in) iotas,
real(rprec), dimension(ns*nznt), intent(in) wint,
real(rprec), dimension(ns,nznt,0:1), intent(in) r1,
real(rprec), dimension(ns,nznt,0:1), intent(in) rt,
real(rprec), dimension(ns,nznt,0:1), intent(in) rz,
real(rprec), dimension(ns,nznt,0:1), intent(in) zt,
real(rprec), dimension(ns,nznt,0:1), intent(in) zz,
real(rprec), dimension(ns*nznt), intent(in) bsubu,
real(rprec), dimension(ns), intent(in) vp,
real(rprec), dimension(ns), intent(in) phips,
real(rprec), dimension(ns), intent(in) pres,
integer, intent(in) ns,
integer, intent(in) nznt )

Evaluate the Mercier stability criterion.

Parameters
gsqrtJacobian \(\sqrt{g}\)
bsqmodulus of magnetic field \(|\mathbf{B}|\)
bdotjparallel current density \(\mathbf{B} \cdot \mathbf{j}\); mu0 * bdotk from jxbforce
iotasrotational transform profile
wintnormalization constant for flux-surface integrals
r1\(R\)
rt\(\partial R / \partial \theta\)
rz\(\partial R / \partial \zeta\)
zt\(\partial Z / \partial \theta\)
zz\(\partial Z / \partial \zeta\)
bsubucontravariant component of magnetic field \(B^\zeta\)
vpradial profile of specific volume \(\partial V / \partial s\)
phipsradial derivative of enclosed toroidal magnetic flux
prespressure profile
nsnumber of flux surfaces
nzntnumber of grid points per flux surface

Definition at line 22 of file mercier.f90.

References vmercier::dcurr, vmercier::dgeod, vmercier::dmerc, stel_kinds::dp, vmercier::dshear, vmercier::dwell, vmec_input::input_extension, vparams::nmercier0, vmec_dim::nrzt, vmec_dim::ntheta3, vmec_input::nzeta, dbgout::open_dbg_context(), and safe_open_mod::safe_open().

Referenced by jxbforce().

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