23 REAL(dp),
INTENT(in) :: bsubu(1:nrzt)
24 REAL(dp),
INTENT(in) :: bsubv(1:nrzt)
65 call add_real_1d(
"buco",
ns-1,
buco(2:
ns))
66 call add_real_1d(
"bvco",
ns-1,
bvco(2:
ns))
67 call add_real_1d(
"jcurv",
ns,
jcurv)
68 call add_real_1d(
"jcuru",
ns,
jcuru)
69 call add_real_1d(
"vpphi",
ns,
vpphi)
71 call add_real_1d(
"equif",
ns,
equif)
subroutine calc_fbal(bsubu, bsubv)
Compute flux-surface averaged radial force balance .
logical function open_dbg_context(context_name, repetition, id)
check if any output is desired for the current iteration check if the given context should be openend...
real(rprec), dimension(:), allocatable wint
two-dimensional array for normalizing angle integrations
integer ns
number of flux surfaces
real(rprec), dimension(:), allocatable equif
radial force balance error: grad(p) - <j x B>
real(rprec), dimension(:), allocatable vp
radial derivative of enclosed volume
real(rprec), dimension(:), allocatable bvco
enclosed poloidal current profile
real(rprec), dimension(:), allocatable buco
enclosed toroidal current profile
real(rprec), dimension(:), allocatable jcuru
poloidal current density
real(rprec), dimension(:), allocatable pres
pressure profile
real(rprec), dimension(:), allocatable chipf
radial derivative of poloidal magnetic flux (full grid)
integer num_eqsolve_retries
real(rprec), dimension(:), allocatable presgrad
pressure gradient: dp/ds
integer iter2
total number of iterations
real(rprec), dimension(:), allocatable phipf
radial derivative of toroidal magnetic flux (full grid)
real(rprec), dimension(:), allocatable vpphi
real(rprec), dimension(:), allocatable jcurv
toroidal current density
real(rprec) signgs
sign of Jacobian : must be =1 (right-handed) or =-1 (left-handed)