VMEC 8.52
3D Equilibrium solver with nested flux surfaces.
Loading...
Searching...
No Matches
functions Module Reference

Functions/Subroutines

real(rprec) function, public two_power (x, b)
 Profile function for the two_power profile. \(b(0) * (1 - x^{b(1)})^{b(2)}\).
 
real(rprec) function, public two_power_gs (x, b)
 Profile function for the two_power_gs profile. \(\texttt{two\_power}(x)*(1 + \sum\left[b(i)*\exp(-(x - b(i+1))/b(i+2))^2\right])\).
 
logical function function_test ()
 Main test function.
 

Function/Subroutine Documentation

◆ function_test()

logical function functions::function_test

Main test function.

Test two_power function for x = 0, b = {1,10,2} is 1

Test two_power function for x = 1, b = {1,10,2} is 0

Test two_power function for x = 0.5, b = {1,1,1} is 0.5

Test two_power function for x = 0.5, b = {1,1,2} is 0.25

Test two_power_gs function for x = 0.4, b = {1,1,1,0,0,1} is two_power(x,b)

Test two_power_gs function for x = 0.8, b = {1,1,0,1,0.8,0.1} is 2

Definition at line 51 of file functions.f.

References function_test(), two_power(), and two_power_gs().

Referenced by function_test().

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

◆ two_power()

real(rprec) function, public functions::two_power ( real(rprec), intent(in) x,
real(rprec), dimension(0:20), intent(in) b )

Profile function for the two_power profile. \(b(0) * (1 - x^{b(1)})^{b(2)}\).

Parameters
xevaluation location
bparameter vector

Definition at line 20 of file functions.f.

References two_power().

Referenced by function_test(), two_power(), and two_power_gs().

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

◆ two_power_gs()

real(rprec) function, public functions::two_power_gs ( real(rprec), intent(in) x,
real(rprec), dimension(0:20), intent(in) b )

Profile function for the two_power_gs profile. \(\texttt{two\_power}(x)*(1 + \sum\left[b(i)*\exp(-(x - b(i+1))/b(i+2))^2\right])\).

Parameters
xevaluation location
bparameter vector

Definition at line 34 of file functions.f.

References two_power(), and two_power_gs().

Referenced by function_test(), and two_power_gs().

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