ORB5  v4.9.4
diagnostics_mod Module Reference

Data Types

interface  fill_buf
 
interface  fill_buf_pic
 

Functions/Subroutines

subroutine, public diagnose (step, step_tot, time)
 
subroutine fill_buf_pic_array (fieldin, isp, ioffset)
 
subroutine fill_buf_pic_scalar (fieldin, isp, ioffset)
 
subroutine fill_buf_array (fieldin, ioffset)
 
subroutine fill_buf_scalar (fieldin, ioffset)
 
subroutine, public initialize_diagnostics
 
subroutine initialize_phasespace_diags
 Initialize phase space diagnostics. More...
 
subroutine initialize_source_3d_diags
 Initialize source 3d diagnostics. More...
 
subroutine, public velocity_space_diag_init
 
subroutine write_output (step, time)
 
subroutine createg_3d (name, description, coord1, coord1_name, coord2, coord2_name, coord3, coord3_name)
 
subroutine createg_3dz (name, description, coord1, coord1_name, coord2, coord2_name, coord3, coord3_name, mmin_f)
 
subroutine createg_2d (name, description, coord1, coord1_name, coord2, coord2_name)
 
subroutine createg_1d (name, description, coord1, coord1_name)
 
subroutine createg_2dms (name, description, coord1, coord1_name, coord2, coord2_name, isp, fresid_file)
 
subroutine createg_3dms (name, description, coord1, coord1_name, coord2, coord2_name, coord3, coord3_name, isp)
 
subroutine createg_3dzms (name, description, coord1, coord1_name, coord2, coord2_name, coord3, coord3_name, isp, mmin_f)
 
subroutine createg_1dms (name, description, coord1, coord1_name, isp)
 
subroutine, public flush0d
 
subroutine get_epot (x, y, z, zpot)
 
subroutine get_misc_pot (x, y, z, zpot)
 
subroutine get_ebpot (x, z, zpot)
 
subroutine get_nebpot (x, zpot)
 
subroutine get_apot (x, y, z, zpot)
 
subroutine get_debug_field (x, y, z, zpot)
 
subroutine get_coords (st, chit, phit, xt, yt, zt)
 
subroutine get_3d_parameters ()
 
subroutine add_jacobian_3d_out (filename)
 
subroutine add_phibar_3d_out (filename)
 
subroutine diag3d_on_fluid_moments (isp)
 
subroutine diag3d_spectrum (field, spectrum_out, nmax)
 
subroutine put3d_h5s (time, diag_select, field_select, isp)
 
subroutine rhs_f_serialize (rhs_f_ptr)
 
subroutine mmin_f_serialize
 
subroutine put3d_dens (time, do_moments)
 

Variables

type(diag3d_parametersparam3d
 
integer nr
 
integer nz
 
integer nph
 
integer nc
 
integer nr_eq
 
integer nz_eq
 
character(len=256) hpath
 
integer, save line_count = 0
 
real, dimension(:), allocatable, save flux_bin_theta
 
real, dimension(:), allocatable, save flux_bin_psi
 
real, dimension(:), allocatable, save bin_sampling_psi
 
real, dimension(:,:), allocatable, save bin_sampling_v2
 
real, dimension(:), allocatable, save phasespace_psi
 
real, dimension(:, :), allocatable, save phasespace_vpar
 
real, dimension(:, :), allocatable, save phasespace_vperp
 
real, dimension(:), allocatable, save source_3d_major_radius
 
real, dimension(:, :), allocatable, save source_3d_vpar
 
real, dimension(:, :), allocatable, save source_3d_vperp
 
real, dimension(:,:), allocatable, save buf
 
real, dimension(:,:,:), allocatable, save buf_pic
 
integer, save ibuf =0
 
real, save phi0 = 0.0
 
real, dimension(1:nbin_xi), save flux_bin_xi = 0.0
 
real, dimension(:,:), allocatable, save flux_bin_v
 
real, dimension(:), allocatable, save rarr_eq
 
real, dimension(:), allocatable, save zarr_eq
 
real, dimension(:), allocatable, save sarr
 
real, dimension(:), allocatable, save phiarr
 
real, dimension(:), allocatable, save chiarr
 
real, dimension(:,:,:), allocatable, save potsp
 
real, dimension(:,:,:), allocatable, save potsc
 
real, dimension(:,:), allocatable, save srz
 
real, dimension(:,:), allocatable, save rsc
 
real, dimension(:,:), allocatable, save zsc
 
real, dimension(:,:), allocatable, save psirz
 
real, dimension(:,:), allocatable, save isrz
 
real, dimension(:,:), allocatable, save hisrz
 
real, dimension(:,:), allocatable, save hisrz_an
 
real, dimension(:,:), allocatable, save isrz_an
 
real, dimension(:,:), allocatable, save iscp
 
real, dimension(:,:), allocatable, save hiscp
 
real, dimension(:,:), allocatable, save iscp_an
 
real, dimension(:,:), allocatable, save hiscp_an
 
real, dimension(:,:), allocatable, save potcp
 
integer ierr
 
integer, parameter nhistarr =16
 
integer, save write3dsize
 
integer, save pot_misc_isp_saved
 
integer, save get_pot_disp_saved
 
logical, save nl_sympl_apar = .false.
 

Function/Subroutine Documentation

◆ add_jacobian_3d_out()

subroutine diagnostics_mod::add_jacobian_3d_out ( character(len=128), intent(in)  filename)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ add_phibar_3d_out()

subroutine diagnostics_mod::add_phibar_3d_out ( character(len=128), intent(in)  filename)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createg_1d()

subroutine diagnostics_mod::createg_1d ( character(len=*), intent(in)  name,
character(len=*), intent(in)  description,
real, dimension(:), intent(in)  coord1,
character(len=*), intent(in)  coord1_name 
)
+ Here is the caller graph for this function:

◆ createg_1dms()

subroutine diagnostics_mod::createg_1dms ( character(len=*), intent(in)  name,
character(len=*), intent(in)  description,
real, dimension(:), intent(in)  coord1,
character(len=*), intent(in)  coord1_name,
integer, intent(in)  isp 
)
+ Here is the caller graph for this function:

◆ createg_2d()

subroutine diagnostics_mod::createg_2d ( character(len=*), intent(in)  name,
character(len=*), intent(in)  description,
real, dimension(:), intent(in)  coord1,
character(len=*), intent(in)  coord1_name,
real, dimension(:), intent(in)  coord2,
character(len=*), intent(in)  coord2_name 
)
+ Here is the caller graph for this function:

◆ createg_2dms()

subroutine diagnostics_mod::createg_2dms ( character(len=*), intent(in)  name,
character(len=*), intent(in)  description,
real, dimension(:), intent(in)  coord1,
character(len=*), intent(in)  coord1_name,
real, dimension(:), intent(in)  coord2,
character(len=*), intent(in)  coord2_name,
integer, intent(in)  isp,
integer, intent(in), optional  fresid_file 
)
+ Here is the caller graph for this function:

◆ createg_3d()

subroutine diagnostics_mod::createg_3d ( character(len=*), intent(in)  name,
character(len=*), intent(in)  description,
real, dimension(:), intent(in)  coord1,
character(len=*), intent(in)  coord1_name,
real, dimension(:), intent(in)  coord2,
character(len=*), intent(in)  coord2_name,
real, dimension(:), intent(in)  coord3,
character(len=*), intent(in)  coord3_name 
)
private

◆ createg_3dms()

subroutine diagnostics_mod::createg_3dms ( character(len=*), intent(in)  name,
character(len=*), intent(in)  description,
real, dimension(:), intent(in)  coord1,
character(len=*), intent(in)  coord1_name,
real, dimension(:), intent(in)  coord2,
character(len=*), intent(in)  coord2_name,
real, dimension(:), intent(in)  coord3,
character(len=*), intent(in)  coord3_name,
integer, intent(in)  isp 
)
+ Here is the caller graph for this function:

◆ createg_3dz()

subroutine diagnostics_mod::createg_3dz ( character(len=*), intent(in)  name,
character(len=*), intent(in)  description,
real, dimension(:), intent(in)  coord1,
character(len=*), intent(in)  coord1_name,
real, dimension(:), intent(in)  coord2,
character(len=*), intent(in)  coord2_name,
real, dimension(:), intent(in)  coord3,
character(len=*), intent(in)  coord3_name,
integer, dimension(:,:), intent(in), optional  mmin_f 
)
+ Here is the caller graph for this function:

◆ createg_3dzms()

subroutine diagnostics_mod::createg_3dzms ( character(len=*), intent(in)  name,
character(len=*), intent(in)  description,
real, dimension(:), intent(in)  coord1,
character(len=*), intent(in)  coord1_name,
real, dimension(:), intent(in)  coord2,
character(len=*), intent(in)  coord2_name,
real, dimension(:), intent(in)  coord3,
character(len=*), intent(in)  coord3_name,
integer, intent(in)  isp,
integer, dimension(:,:), intent(in), optional  mmin_f 
)
+ Here is the caller graph for this function:

◆ diag3d_on_fluid_moments()

subroutine diagnostics_mod::diag3d_on_fluid_moments ( integer, intent(in)  isp)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ diag3d_spectrum()

subroutine diagnostics_mod::diag3d_spectrum ( real, dimension(:,:,:), intent(in)  field,
real, dimension(:,:), intent(out)  spectrum_out,
integer, intent(in)  nmax 
)
+ Here is the caller graph for this function:

◆ diagnose()

subroutine, public diagnostics_mod::diagnose ( integer, intent(in)  step,
integer, intent(in)  step_tot,
real, intent(in)  time 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fill_buf_array()

subroutine diagnostics_mod::fill_buf_array ( type(diag0d), intent(in)  fieldin,
integer, intent(inout)  ioffset 
)
private

◆ fill_buf_pic_array()

subroutine diagnostics_mod::fill_buf_pic_array ( type(diag0d), intent(in)  fieldin,
integer, intent(in)  isp,
integer, intent(inout)  ioffset 
)
private

◆ fill_buf_pic_scalar()

subroutine diagnostics_mod::fill_buf_pic_scalar ( real, intent(in)  fieldin,
integer, intent(in)  isp,
integer, intent(inout)  ioffset 
)
private

◆ fill_buf_scalar()

subroutine diagnostics_mod::fill_buf_scalar ( real, intent(in)  fieldin,
integer, intent(inout)  ioffset 
)
private

◆ flush0d()

subroutine, public diagnostics_mod::flush0d
+ Here is the caller graph for this function:

◆ get_3d_parameters()

subroutine diagnostics_mod::get_3d_parameters
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_apot()

subroutine diagnostics_mod::get_apot ( real, intent(in)  x,
real, intent(in)  y,
real, intent(in)  z,
real, intent(inout)  zpot 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_coords()

subroutine diagnostics_mod::get_coords ( real, intent(in)  st,
real, intent(in)  chit,
real, intent(inout)  phit,
real, intent(out)  xt,
real, intent(out)  yt,
real, intent(out)  zt 
)
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_debug_field()

subroutine diagnostics_mod::get_debug_field ( real, intent(in)  x,
real, intent(in)  y,
real, intent(in)  z,
real, intent(inout)  zpot 
)
+ Here is the caller graph for this function:

◆ get_ebpot()

subroutine diagnostics_mod::get_ebpot ( real, intent(in)  x,
real, intent(in)  z,
real, intent(inout)  zpot 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_epot()

subroutine diagnostics_mod::get_epot ( real, intent(in)  x,
real, intent(in)  y,
real, intent(in)  z,
real, intent(inout)  zpot 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_misc_pot()

subroutine diagnostics_mod::get_misc_pot ( real, intent(in)  x,
real, intent(in)  y,
real, intent(in)  z,
real, intent(inout)  zpot 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_nebpot()

subroutine diagnostics_mod::get_nebpot ( real, intent(in)  x,
real, intent(inout)  zpot 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initialize_diagnostics()

subroutine, public diagnostics_mod::initialize_diagnostics
Note
Here we already include the kapv parameter as we want to check the loading sampling with limit kapv*vth
Bug:
Not clear why this should only happen on me_world==0. Do the others not use these diagnostics? - ALS
Bug:
Todo:
The subroutine velocity_space_diag_init should probably be removed. path_vel1d, path_vel2d, path_vel3d, and path_vel3d_theta are all never assigned, despite being allocated and written. - ALS
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initialize_phasespace_diags()

subroutine diagnostics_mod::initialize_phasespace_diags

Initialize phase space diagnostics.

Note that this routine must be run after vthmax2 has been initialized

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

◆ initialize_source_3d_diags()

subroutine diagnostics_mod::initialize_source_3d_diags
private

Initialize source 3d diagnostics.

Note that this routine must be run after vthmax2 has been initialized

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

◆ mmin_f_serialize()

subroutine diagnostics_mod::mmin_f_serialize
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ put3d_dens()

subroutine diagnostics_mod::put3d_dens ( real, intent(in)  time,
logical, intent(in), optional  do_moments 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ put3d_h5s()

subroutine diagnostics_mod::put3d_h5s ( real, intent(in)  time,
integer, intent(in)  diag_select,
integer, intent(in)  field_select,
integer, intent(in), optional  isp 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rhs_f_serialize()

subroutine diagnostics_mod::rhs_f_serialize ( complex, dimension(:,:), intent(in), allocatable  rhs_f_ptr)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ velocity_space_diag_init()

subroutine, public diagnostics_mod::velocity_space_diag_init
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ write_output()

subroutine diagnostics_mod::write_output ( integer, intent(in)  step,
real, intent(in)  time 
)
private
+ Here is the caller graph for this function:

Variable Documentation

◆ bin_sampling_psi

real, dimension(:), allocatable, save diagnostics_mod::bin_sampling_psi
private

◆ bin_sampling_v2

real, dimension(:,:), allocatable, save diagnostics_mod::bin_sampling_v2
private

◆ buf

real, dimension(:,:), allocatable, save diagnostics_mod::buf
private

◆ buf_pic

real, dimension(:,:,:), allocatable, save diagnostics_mod::buf_pic
private

◆ chiarr

real, dimension(:), allocatable, save diagnostics_mod::chiarr
private

◆ flux_bin_psi

real, dimension(:), allocatable, save diagnostics_mod::flux_bin_psi
private

◆ flux_bin_theta

real, dimension(:), allocatable, save diagnostics_mod::flux_bin_theta
private

◆ flux_bin_v

real, dimension(:,:), allocatable, save diagnostics_mod::flux_bin_v
private

◆ flux_bin_xi

real, dimension(1:nbin_xi ), save diagnostics_mod::flux_bin_xi = 0.0
private

◆ get_pot_disp_saved

integer, save diagnostics_mod::get_pot_disp_saved
private

◆ hiscp

real, dimension(:,:), allocatable, save diagnostics_mod::hiscp
private

◆ hiscp_an

real, dimension(:,:), allocatable, save diagnostics_mod::hiscp_an
private

◆ hisrz

real, dimension(:,:), allocatable, save diagnostics_mod::hisrz
private

◆ hisrz_an

real, dimension(:,:), allocatable, save diagnostics_mod::hisrz_an
private

◆ hpath

character(len=256) diagnostics_mod::hpath
private

◆ ibuf

integer, save diagnostics_mod::ibuf =0
private

◆ ierr

integer diagnostics_mod::ierr
private

◆ iscp

real, dimension(:,:), allocatable, save diagnostics_mod::iscp
private

◆ iscp_an

real, dimension(:,:), allocatable, save diagnostics_mod::iscp_an
private

◆ isrz

real, dimension(:,:), allocatable, save diagnostics_mod::isrz
private

◆ isrz_an

real, dimension(:,:), allocatable, save diagnostics_mod::isrz_an
private

◆ line_count

integer, save diagnostics_mod::line_count = 0
private

◆ nc

integer diagnostics_mod::nc
private

◆ nhistarr

integer, parameter diagnostics_mod::nhistarr =16
private

◆ nl_sympl_apar

logical, save diagnostics_mod::nl_sympl_apar = .false.
private

◆ nph

integer diagnostics_mod::nph
private

◆ nr

integer diagnostics_mod::nr
private

◆ nr_eq

integer diagnostics_mod::nr_eq
private

◆ nz

integer diagnostics_mod::nz
private

◆ nz_eq

integer diagnostics_mod::nz_eq
private

◆ param3d

type(diag3d_parameters) diagnostics_mod::param3d
private

◆ phasespace_psi

real, dimension(:), allocatable, save diagnostics_mod::phasespace_psi
private

◆ phasespace_vpar

real, dimension(:, :), allocatable, save diagnostics_mod::phasespace_vpar
private

◆ phasespace_vperp

real, dimension(:, :), allocatable, save diagnostics_mod::phasespace_vperp
private

◆ phi0

real, save diagnostics_mod::phi0 = 0.0
private

◆ phiarr

real, dimension(:), allocatable, save diagnostics_mod::phiarr
private

◆ pot_misc_isp_saved

integer, save diagnostics_mod::pot_misc_isp_saved
private

◆ potcp

real, dimension(:,:), allocatable, save diagnostics_mod::potcp
private

◆ potsc

real, dimension(:,:,:), allocatable, save diagnostics_mod::potsc
private

◆ potsp

real, dimension(:,:,:), allocatable, save diagnostics_mod::potsp
private

◆ psirz

real, dimension(:,:), allocatable, save diagnostics_mod::psirz
private

◆ rarr_eq

real, dimension(:), allocatable, save diagnostics_mod::rarr_eq
private

◆ rsc

real, dimension(:,:), allocatable, save diagnostics_mod::rsc
private

◆ sarr

real, dimension(:), allocatable, save diagnostics_mod::sarr
private

◆ source_3d_major_radius

real, dimension(:), allocatable, save diagnostics_mod::source_3d_major_radius
private

◆ source_3d_vpar

real, dimension(:, :), allocatable, save diagnostics_mod::source_3d_vpar
private

◆ source_3d_vperp

real, dimension(:, :), allocatable, save diagnostics_mod::source_3d_vperp
private

◆ srz

real, dimension(:,:), allocatable, save diagnostics_mod::srz
private

◆ write3dsize

integer, save diagnostics_mod::write3dsize
private

◆ zarr_eq

real, dimension(:), allocatable, save diagnostics_mod::zarr_eq
private

◆ zsc

real, dimension(:,:), allocatable, save diagnostics_mod::zsc
private