Stellarator-Tools
vmec_input.f File Reference

Contains the module vmec_input. More...

Modules

module  vmec_input
 This file contains all the variables for a VMEC namelist input file. The module contained within does not represent an object instance. Instead all variables are contained in a global context. This is required due to limitations of FORTRAN 95 and namelist inputs.
 

Functions/Subroutines

subroutine vmec_input::read_indata_namelist (iunit, istat)
 Initalize and read in namelist variables. More...
 
subroutine vmec_input::read_mse_namelist (iunit, istat)
 

Variables

integer, parameter vmec_input::mpol_default = 6
 Default value for the number of poloidal modes.
 
integer, parameter vmec_input::ntor_default = 0
 Default value for the number of toroidal modes.
 
integer, parameter vmec_input::ns_default = 31
 Default value for the number of flux surfaces.
 
integer, parameter vmec_input::max_grids = 100
 Maximum number of grids.
 
integer, parameter vmec_input::short_name = 20
 Short name length.
 
integer, parameter vmec_input::long_name = 200
 Long name length.
 
integer, parameter vmec_input::max_profile = 20
 Maximum number of spline knots.
 
integer vmec_input::omp_num_threads
 
real(rprec) vmec_input::gamma
 Adiabatic factor for the pressure perturbation.
 
integer vmec_input::niter
 
integer, dimension(max_grids) vmec_input::niter_array
 Array of iterations for the multigrid runs.
 
integer vmec_input::pre_niter
 Number of iterations to run after the preconditoner is activated.
 
real(rprec) vmec_input::time_slice
 Time index value to label the output files.
 
integer vmec_input::nstep
 Number of iterations between screen output.
 
integer vmec_input::nvacskip
 Number of iterations between vacuum responses.
 
real(rprec) vmec_input::delt
 Time step value for minimization.
 
real(rprec) vmec_input::ftol
 
real(rprec), dimension(max_grids) vmec_input::ftol_array
 Array of force tolarances for the multigrid runs.
 
real(rprec) vmec_input::tcon0
 Weight factor for constraint force.
 
character(len=short_name) vmec_input::precon_type
 Type of preconditioner.
 
real(rprec) vmec_input::prec2d_threshold
 Force tolarance where the preconditioner is turned on.
 
logical vmec_input::lgiveup
 Stop early if convergence is poor.
 
real(rprec) vmec_input::fgiveup
 Theshold tolarance for early exit.
 
logical vmec_input::lmoreiter
 Add more iterations if force residules are not met.
 
integer vmec_input::max_main_iterations
 Number of additional iterations to use.
 
logical vmec_input::lmove_axis
 Allow movement of the magnetic axis.
 
logical vmec_input::lmac
 UNKNOWN.
 
logical vmec_input::lforbal
 Use non-variational forces to ensure force balance.
 
logical vmec_input::lasym
 Allow non-stellarator symmetric terms.
 
logical vmec_input::lrfp
 Run in RFP mode.
 
logical vmec_input::loldout
 Use text output when writting wout files.
 
logical vmec_input::ldiagno
 Get output for diagno 1.0 and 1.5.
 
logical vmec_input::lbsubs
 Capture current sheets.
 
logical vmec_input::lfull3d1out
 Write out full threed1 file if force tolarance is not met.
 
logical vmec_input::lwouttxt
 Write out text based woutfile.
 
logical vmec_input::l_v3fit
 VMEC called from inside v3fit.
 
logical vmec_input::lnyquist
 Print out full nyquest spectrum. When flase trunate the spectrum to just the mpol, ntor values.
 
integer vmec_input::nsin
 
integer, dimension(max_grids) vmec_input::ns_array
 Number of radial flux surfaces for each grid size.
 
real(rprec), dimension(max_profile) vmec_input::aphi
 Radial surface redistribution factors.
 
integer vmec_input::mpol
 Total number of poloidal modes.
 
integer vmec_input::ntor
 Largest value of the toroidal modes.
 
integer vmec_input::nfp
 Number of field periods.
 
integer vmec_input::ntheta
 Number of poloidal grid points.
 
integer vmec_input::nzeta
 Number of toroidal grid points.
 
logical vmec_input::lfreeb
 Use external fields to determine the boundary shape.
 
real(rprec), dimension(nigroup), target vmec_input::extcur
 Array of external field coil currents. More...
 
character(len=long_name) vmec_input::mgrid_file
 Path to the mgrid file.
 
real(rprec) vmec_input::curtor
 Total toroidal current.
 
integer vmec_input::ncurr
 Control to use current profile.
 
character(len=short_name) vmec_input::pcurr_type
 Current profile type.
 
real(rprec), dimension(0:max_profile) vmec_input::ac
 Parameterized current profile coefficents.
 
real(rprec), dimension(ndatafmax) vmec_input::ac_aux_s
 Radial knot position for the current profile splines.
 
real(rprec), dimension(ndatafmax) vmec_input::ac_aux_f
 Knot amplitudes for the current profile splines.
 
real(rprec) vmec_input::bloat
 Expansion factor for the current profile.
 
character(len=short_name) vmec_input::piota_type
 Rotational transform profile type.
 
real(rprec), dimension(0:max_profile) vmec_input::ai
 Parameterized rotational transform profile coefficents.
 
real(rprec), dimension(ndatafmax) vmec_input::ai_aux_s
 Radial knot position for the rotational transform profile splines.
 
real(rprec), dimension(ndatafmax) vmec_input::ai_aux_f
 Knot amplitudes for the rotational transform profile splines.
 
real(rprec) vmec_input::pres_scale
 Scaling factor for the pressure profile.
 
character(len=short_name) vmec_input::pmass_type
 Pressure profile type.
 
real(rprec), dimension(0:max_profile) vmec_input::am
 Parameterized rotational pressure coefficents.
 
real(rprec), dimension(ndatafmax) vmec_input::am_aux_s
 Radial knot position for the pressure profile splines.
 
real(rprec), dimension(ndatafmax) vmec_input::am_aux_f
 Knot amplitudes for the pressure profile splines.
 
real(rprec) vmec_input::spres_ped
 Value of s beyond which pressure profile is flat.
 
real(rprec) vmec_input::bcrit
 Hot particle energy deposition value for |B|.
 
real(rprec), dimension(0:max_profile) vmec_input::at
 TPERP/TPAR ANIMEC only.
 
real(rprec), dimension(0:max_profile) vmec_input::ah
 PHOT/PTHERMAL ANIMEC only.
 
real(rprec) vmec_input::phiedge
 Total toroidal flux.
 
real(rprec), dimension(-ntord:ntord, 0:mpol1d) vmec_input::rbc
 R boundary coefficients stellarator symmetric.
 
real(rprec), dimension(-ntord:ntord, 0:mpol1d) vmec_input::rbs
 R boundary coefficients stellarator asymmetric.
 
real(rprec), dimension(-ntord:ntord, 0:mpol1d) vmec_input::zbs
 Z boundary coefficients stellarator symmetric.
 
real(rprec), dimension(-ntord:ntord, 0:mpol1d) vmec_input::zbc
 Z boundary coefficients stellarator asymmetric.
 
integer vmec_input::mfilter_fbdy
 Filter poloidal boundary terms.
 
integer vmec_input::nfilter_fbdy
 Filter toroidal boundary terms.
 
real(rprec), dimension(0:ntord) vmec_input::raxis_cc
 R axis coefficients stellarator symmetric.
 
real(rprec), dimension(0:ntord) vmec_input::raxis_cs
 R axis coefficients stellarator asymmetric.
 
real(rprec), dimension(0:ntord) vmec_input::zaxis_cs
 Z axis coefficients stellarator symmetric.
 
real(rprec), dimension(0:ntord) vmec_input::zaxis_cc
 Z axis coefficients stellarator asymmetric.
 
real(rprec), dimension(0:ntord) vmec_input::raxis
 
real(rprec), dimension(0:ntord) vmec_input::zaxis
 
integer vmec_input::imse
 
integer vmec_input::isnodes
 
integer vmec_input::itse
 
integer vmec_input::ipnodes
 
integer vmec_input::iopt_raxis
 
integer vmec_input::imatch_phiedge
 
integer vmec_input::nflxs
 
integer, dimension(nbsetsp) vmec_input::nbfld
 
integer, dimension(nfloops) vmec_input::indxflx
 
integer, dimension(nbcoilsp, nbsetsp) vmec_input::indxbfld
 
real(rprec) vmec_input::phidiam
 
real(rprec) vmec_input::sigma_current
 
real(rprec) vmec_input::sigma_delphid
 
real(rprec) vmec_input::tensi
 
real(rprec) vmec_input::tensp
 
real(rprec) vmec_input::tensi2
 
real(rprec) vmec_input::fpolyi
 
real(rprec) vmec_input::presfac
 
real(rprec) vmec_input::mseangle_offset
 
real(rprec) vmec_input::pres_offset
 
real(rprec) vmec_input::mseangle_offsetm
 
real(rprec), dimension(nmse) vmec_input::mseprof
 
real(rprec), dimension(ntse) vmec_input::rthom
 
real(rprec), dimension(ntse) vmec_input::datathom
 
real(rprec), dimension(ntse) vmec_input::sigma_thom
 
real(rprec), dimension(nmse) vmec_input::rstark
 
real(rprec), dimension(nmse) vmec_input::datastark
 
real(rprec), dimension(nmse) vmec_input::sigma_stark
 
real(rprec), dimension(nfloops) vmec_input::dsiobt
 
real(rprec), dimension(nfloops) vmec_input::sigma_flux
 
real(rprec), dimension(nbcoilsp, nbsetsp) vmec_input::bbc
 
real(rprec), dimension(nbcoilsp, nbsetsp) vmec_input::sigma_b
 
real(rprec), dimension(ndatafmax) vmec_input::psa
 
real(rprec), dimension(ndatafmax) vmec_input::pfa
 
real(rprec), dimension(ndatafmax) vmec_input::isa
 
real(rprec), dimension(ndatafmax) vmec_input::ifa
 
logical vmec_input::lrecon
 
logical vmec_input::ledge_dump
 
logical vmec_input::lspectrum_dump
 
logical vmec_input::loptim
 
logical vmec_input::lpofr
 
character(len=120) vmec_input::arg1
 
character(len=long_name) vmec_input::input_extension
 Extension for the namelist input file name.
 

Detailed Description

Contains the module vmec_input.