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

Compute toroidal and poloidal magnetic flux profiles. More...

Go to the source code of this file.

Functions/Subroutines

real(rprec) function torflux_deriv (x)
 Compute the radial derivative of the enclosed toroidal magnetic flux.
 
real(rprec) function polflux_deriv (x)
 Compute the radial derivative of the enclosed poloidal magnetic flux.
 
real(rprec) function torflux (x)
 Compute the enclosed toroidal magnetic flux.
 
real(rprec) function polflux (x)
 Compute the enclosed poloidal magnetic flux.
 

Detailed Description

Compute toroidal and poloidal magnetic flux profiles.

Definition in file magnetic_fluxes.f90.

Function/Subroutine Documentation

◆ polflux()

real(rprec) function polflux ( real(rprec), intent(in) x)

Compute the enclosed poloidal magnetic flux.

Parameters
xevaluation location; radial flux variable (=TOROIDAL FLUX ONLY IF APHI=1)

Definition at line 77 of file magnetic_fluxes.f90.

References polflux(), and polflux_deriv().

Referenced by polflux().

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

◆ polflux_deriv()

real(rprec) function polflux_deriv ( real(rprec), intent(in) x)

Compute the radial derivative of the enclosed poloidal magnetic flux.

polflux_deriv == d(chi)/dx = iota(TF(x)) * torflux_deriv(x)

Parameters
xevaluation location; radial flux variable (=TOROIDAL FLUX ONLY IF APHI=1)

Definition at line 30 of file magnetic_fluxes.f90.

References piota(), polflux_deriv(), torflux(), and torflux_deriv().

Referenced by polflux(), and polflux_deriv().

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

◆ torflux()

real(rprec) function torflux ( real(rprec), intent(in) x)

Compute the enclosed toroidal magnetic flux.

Parameters
xevaluation location; radial flux variable (=TOROIDAL FLUX ONLY IF APHI=1)

Definition at line 53 of file magnetic_fluxes.f90.

References torflux(), and torflux_deriv().

Referenced by polflux_deriv(), and torflux().

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

◆ torflux_deriv()

real(rprec) function torflux_deriv ( real(rprec), intent(in) x)

Compute the radial derivative of the enclosed toroidal magnetic flux.

Parameters
xevaluation location; radial flux variable (=TOROIDAL FLUX ONLY IF APHI=1)

Definition at line 7 of file magnetic_fluxes.f90.

References vmec_input::aphi, and torflux_deriv().

Referenced by polflux_deriv(), torflux(), and torflux_deriv().

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