VMEC 8.52
3D Equilibrium solver with nested flux surfaces.
Loading...
Searching...
No Matches
elongation.f90
Go to the documentation of this file.
1
3
10SUBROUTINE elongation (r1, z1, waist, height)
11 USE vmec_main
12 IMPLICIT NONE
13
14 REAL(rprec), DIMENSION(ns,nzeta,ntheta3,0:1), INTENT(in) :: r1, z1
15 REAL(rprec), INTENT(out) :: waist(2), height(2)
16 INTEGER :: nv, n1
17
18 n1 = 0
19 DO nv = 1, nzeta/2+1
20 IF (nv.ne.1 .and. nv.ne.nzeta/2+1) cycle
21 n1 = n1+1
22 waist(n1) = (r1(ns,nv,1,0) + r1(ns,nv,1,1)) - (r1(ns,nv,ntheta2,0) + r1(ns,nv,ntheta2,1))
23 height(n1) = 2*maxval(abs(z1(ns,nv,:,0) + z1(ns,nv,:,1)))
24 END DO
25
26END SUBROUTINE elongation
subroutine elongation(r1, z1, waist, height)
Compute Waist thickness and height in symmetry planes.