analyze_vars.f90 Source File


This file depends on

sourcefile~~analyze_vars.f90~~EfferentGraph sourcefile~analyze_vars.f90 analyze_vars.f90 sourcefile~globals.f90 globals.f90 sourcefile~analyze_vars.f90->sourcefile~globals.f90

Files dependent on this one

sourcefile~~analyze_vars.f90~~AfferentGraph sourcefile~analyze_vars.f90 analyze_vars.f90 sourcefile~analyze.f90 analyze.f90 sourcefile~analyze.f90->sourcefile~analyze_vars.f90 sourcefile~mhd3d_vars.f90 mhd3d_vars.f90 sourcefile~analyze.f90->sourcefile~mhd3d_vars.f90 sourcefile~hmap_axisnb.f90 hmap_axisNB.f90 sourcefile~hmap_axisnb.f90->sourcefile~analyze_vars.f90 sourcefile~hmap_frenet.f90 hmap_frenet.f90 sourcefile~hmap_frenet.f90->sourcefile~analyze_vars.f90 sourcefile~gvec_post.f90 gvec_post.f90 sourcefile~gvec_post.f90->sourcefile~analyze.f90 sourcefile~functional.f90 functional.f90 sourcefile~gvec_post.f90->sourcefile~functional.f90 sourcefile~gvec_post.f90->sourcefile~mhd3d_vars.f90 sourcefile~readstate_vars.f90 readstate_vars.f90 sourcefile~gvec_post.f90->sourcefile~readstate_vars.f90 sourcefile~mhd3d_evalfunc.f90 mhd3d_evalfunc.f90 sourcefile~gvec_post.f90->sourcefile~mhd3d_evalfunc.f90 sourcefile~restart.f90 restart.f90 sourcefile~gvec_post.f90->sourcefile~restart.f90 sourcefile~hmap.f90 hmap.f90 sourcefile~hmap.f90->sourcefile~hmap_axisnb.f90 sourcefile~hmap.f90->sourcefile~hmap_frenet.f90 sourcefile~mhd3d.f90 mhd3d.f90 sourcefile~mhd3d.f90->sourcefile~analyze.f90 sourcefile~mhd3d.f90->sourcefile~hmap.f90 sourcefile~lambda_solve.f90 lambda_solve.f90 sourcefile~mhd3d.f90->sourcefile~lambda_solve.f90 sourcefile~mhd3d.f90->sourcefile~mhd3d_vars.f90 sourcefile~mhd3d.f90->sourcefile~mhd3d_evalfunc.f90 sourcefile~mhd3d.f90->sourcefile~restart.f90 sourcefile~rungvec.f90 rungvec.f90 sourcefile~rungvec.f90->sourcefile~analyze.f90 sourcefile~rungvec.f90->sourcefile~functional.f90 sourcefile~rungvec.f90->sourcefile~mhd3d_vars.f90 sourcefile~rungvec.f90->sourcefile~restart.f90 sourcefile~state.f90 state.f90 sourcefile~state.f90->sourcefile~analyze.f90 sourcefile~state.f90->sourcefile~hmap.f90 sourcefile~state.f90->sourcefile~functional.f90 sourcefile~state.f90->sourcefile~mhd3d_vars.f90 sourcefile~state.f90->sourcefile~readstate_vars.f90 sourcefile~sfl_boozer.f90 sfl_boozer.f90 sourcefile~state.f90->sourcefile~sfl_boozer.f90 sourcefile~state.f90->sourcefile~restart.f90 sourcefile~functional.f90->sourcefile~mhd3d.f90 sourcefile~gvec.f90 gvec.f90 sourcefile~gvec.f90->sourcefile~rungvec.f90 sourcefile~lambda_solve.f90->sourcefile~hmap.f90 sourcefile~mhd3d_vars.f90->sourcefile~hmap.f90 sourcefile~readstate.f90 readstate.f90 sourcefile~readstate.f90->sourcefile~hmap.f90 sourcefile~readstate.f90->sourcefile~readstate_vars.f90 sourcefile~readstate_vars.f90->sourcefile~hmap.f90 sourcefile~run.f90 run.f90 sourcefile~run.f90->sourcefile~rungvec.f90 sourcefile~sfl_boozer.f90->sourcefile~hmap.f90 sourcefile~sfl_boozer.f90->sourcefile~lambda_solve.f90 sourcefile~transform_sfl.f90 transform_sfl.f90 sourcefile~transform_sfl.f90->sourcefile~hmap.f90 sourcefile~transform_sfl.f90->sourcefile~sfl_boozer.f90 sourcefile~gvec_to_castor3d_vars.f90 gvec_to_castor3d_vars.f90 sourcefile~gvec_to_castor3d_vars.f90->sourcefile~transform_sfl.f90 sourcefile~gvec_to_gene_vars.f90 gvec_to_gene_vars.f90 sourcefile~gvec_to_gene_vars.f90->sourcefile~transform_sfl.f90 sourcefile~gvec_to_hopr_vars.f90 gvec_to_hopr_vars.f90 sourcefile~gvec_to_hopr_vars.f90->sourcefile~transform_sfl.f90 sourcefile~gvec_to_jorek.f90 gvec_to_jorek.f90 sourcefile~gvec_to_jorek.f90->sourcefile~readstate.f90 sourcefile~gvec_to_jorek.f90->sourcefile~readstate_vars.f90 sourcefile~mhd3d_evalfunc.f90->sourcefile~mhd3d_vars.f90 sourcefile~restart.f90->sourcefile~mhd3d_vars.f90 sourcefile~restart.f90->sourcefile~readstate.f90 sourcefile~restart.f90->sourcefile~readstate_vars.f90 sourcefile~restart.f90->sourcefile~mhd3d_evalfunc.f90 sourcefile~convert_gvec_to_jorek.f90 convert_gvec_to_jorek.f90 sourcefile~convert_gvec_to_jorek.f90->sourcefile~gvec_to_jorek.f90

Source Code

!===================================================================================================================================
! Copyright (c) 2025 GVEC Contributors, Max Planck Institute for Plasma Physics
! License: MIT
!===================================================================================================================================

!===================================================================================================================================
!>
!!# Module ** Analyze Variables **
!!
!!
!!
!===================================================================================================================================
MODULE MODgvec_Analyze_Vars
! MODULES
USE MODgvec_Globals,ONLY:wp
IMPLICIT NONE
PUBLIC
!-----------------------------------------------------------------------------------------------------------------------------------
! GLOBAL VARIABLES
INTEGER              :: iAnalyze               !! counter for calls to analyze (used for output file names)
INTEGER              :: visu1D                 !! visualize 1D data (each mode). 0: off,
                                               !! 1: R,Z,lambda  pointwise from VMEC input, (default)
                                               !! 2: R,Z,lambda  interpolation
                                               !! 3: R,Z  pointwise radial derivative from VMEC input,
                                               !! 4: R,Z  radial derivative of interpolation
                                               !! 12 : case 1 & 2, 13,23,123: with radial derivatives, combine 1,2,3,4 ascending
INTEGER              :: visu2D                 !! visualize 2D data ...
INTEGER              :: visu3D                 !! visualize 3D data ...
INTEGER              :: SFLout            !! input parameter: convert final state to straight-field line coordinates. =-1: off, =1: PEST, =2: Boozer
INTEGER              :: SFLout_mn_max(2)   !! maximum mode number in theta and zeta. Defaults to 4*mn_max of X1_base, if set to (-1,-1)
INTEGER              :: SFLout_nrp,SFLout_mn_pts(2 )  !! number of points for SFLOut file in theta,zeta
LOGICAL              :: SFLout_endpoint   !! =True: include end points of periodic angles (theta=[0,2pi],zeta=[0,2pi/nfp]) in SFLOut file, default=Flase
LOGICAL              :: SFLout_relambda   !! =True: recompute lambda for any SFLout, default=True.
REAL(wp),ALLOCATABLE :: SFLout_radialpos(:)     !! radial positions for output
INTEGER              :: outfileType=0          !! =1: default, vtk paraview file. =2: structured netcdf array., 12: both
INTEGER              :: np_1d                  !! number of points for visualization in s
INTEGER              :: np_visu_bc(2)          !! number of points for visualization in theta,zeta
INTEGER              :: np_visu_planes(3)      !! number of points for visualization in s,theta,zeta
INTEGER              :: np_visu_3D(3)          !! number of points for visualization in s,theta,zeta
REAL(wp)             :: visu_BC_minmax(2:3,0:1)    !! minimum and maximum in s,theta,zeta [0,1]
REAL(wp)             :: visu_planes_minmax(1:3,0:1)!! minimum and maximum in s,theta,zeta [0,1]
REAL(wp)             :: visu_3D_minmax(1:3,0:1)    !! minimum and maximum in s,theta,zeta [0,1]

!===================================================================================================================================
END MODULE MODgvec_Analyze_Vars