ORB5  4.00
Loading...
Searching...
No Matches
diagnostics_mod Module Reference

Data Types

interface  fill_buf_pic
interface  fill_buf

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.
subroutine initialize_source_3d_diags
 Initialize source 3d diagnostics.
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(kind=r8), dimension(:), allocatable, save flux_bin_theta
real(kind=r8), dimension(:), allocatable, save flux_bin_psi
real(kind=r8), dimension(:), allocatable, save bin_sampling_psi
real(kind=r8), dimension(:,:), allocatable, save bin_sampling_v2
real(kind=r8), dimension(:), allocatable, save phasespace_psi
real(kind=r8), dimension(:, :), allocatable, save phasespace_vpar
real(kind=r8), dimension(:, :), allocatable, save phasespace_vperp
real(kind=r8), dimension(:), allocatable, save source_3d_major_radius
real(kind=r8), dimension(:, :), allocatable, save source_3d_vpar
real(kind=r8), dimension(:, :), allocatable, save source_3d_vperp
real(kind=r8), dimension(:,:), allocatable, save buf
real(kind=r8), dimension(:,:,:), allocatable, save buf_pic
integer, save ibuf =0
real(kind=r8), save phi0 = 0.0_r8
real(kind=r8), dimension(1:nbin_xi), save flux_bin_xi = 0.0_r8
real(kind=r8), dimension(:,:), allocatable, save flux_bin_v
real(kind=r8), dimension(:), allocatable, save rarr_eq
real(kind=r8), dimension(:), allocatable, save zarr_eq
real(kind=r8), dimension(:), allocatable, save sarr
real(kind=r8), dimension(:), allocatable, save phiarr
real(kind=r8), dimension(:), allocatable, save chiarr
real(kind=r8), dimension(:,:,:), allocatable, save potsp
real(kind=r8), dimension(:,:,:), allocatable, save potsc
real(kind=r8), dimension(:,:), allocatable, save srz
real(kind=r8), dimension(:,:), allocatable, save rsc
real(kind=r8), dimension(:,:), allocatable, save zsc
real(kind=r8), dimension(:,:), allocatable, save psirz
real(kind=r8), dimension(:,:), allocatable, save isrz
real(kind=r8), dimension(:,:), allocatable, save hisrz
real(kind=r8), dimension(:,:), allocatable, save hisrz_an
real(kind=r8), dimension(:,:), allocatable, save isrz_an
real(kind=r8), dimension(:,:), allocatable, save iscp
real(kind=r8), dimension(:,:), allocatable, save hiscp
real(kind=r8), dimension(:,:), allocatable, save iscp_an
real(kind=r8), dimension(:,:), allocatable, save hiscp_an
real(kind=r8), 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)
private
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)
private
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(kind=r8), dimension(:), intent(in) coord1,
character(len=*), intent(in) coord1_name )
private
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(kind=r8), dimension(:), intent(in) coord1,
character(len=*), intent(in) coord1_name,
integer, intent(in) isp )
private
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(kind=r8), dimension(:), intent(in) coord1,
character(len=*), intent(in) coord1_name,
real(kind=r8), dimension(:), intent(in) coord2,
character(len=*), intent(in) coord2_name )
private
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(kind=r8), dimension(:), intent(in) coord1,
character(len=*), intent(in) coord1_name,
real(kind=r8), dimension(:), intent(in) coord2,
character(len=*), intent(in) coord2_name,
integer, intent(in) isp,
integer, intent(in), optional fresid_file )
private
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(kind=r8), dimension(:), intent(in) coord1,
character(len=*), intent(in) coord1_name,
real(kind=r8), dimension(:), intent(in) coord2,
character(len=*), intent(in) coord2_name,
real(kind=r8), 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(kind=r8), dimension(:), intent(in) coord1,
character(len=*), intent(in) coord1_name,
real(kind=r8), dimension(:), intent(in) coord2,
character(len=*), intent(in) coord2_name,
real(kind=r8), dimension(:), intent(in) coord3,
character(len=*), intent(in) coord3_name,
integer, intent(in) isp )
private
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(kind=r8), dimension(:), intent(in) coord1,
character(len=*), intent(in) coord1_name,
real(kind=r8), dimension(:), intent(in) coord2,
character(len=*), intent(in) coord2_name,
real(kind=r8), dimension(:), intent(in) coord3,
character(len=*), intent(in) coord3_name,
integer, dimension(:,:), intent(in), optional mmin_f )
private
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(kind=r8), dimension(:), intent(in) coord1,
character(len=*), intent(in) coord1_name,
real(kind=r8), dimension(:), intent(in) coord2,
character(len=*), intent(in) coord2_name,
real(kind=r8), dimension(:), intent(in) coord3,
character(len=*), intent(in) coord3_name,
integer, intent(in) isp,
integer, dimension(:,:), intent(in), optional mmin_f )
private
Here is the caller graph for this function:

◆ diag3d_on_fluid_moments()

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

◆ diag3d_spectrum()

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

◆ diagnose()

subroutine, public diagnostics_mod::diagnose ( integer, intent(in) step,
integer, intent(in) step_tot,
real(kind=r8), 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(kind=r8), intent(in) fieldin,
integer, intent(in) isp,
integer, intent(inout) ioffset )
private

◆ fill_buf_scalar()

subroutine diagnostics_mod::fill_buf_scalar ( real(kind=r8), 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
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_apot()

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

◆ get_coords()

subroutine diagnostics_mod::get_coords ( real(kind=r8), intent(in) st,
real(kind=r8), intent(in) chit,
real(kind=r8), intent(inout) phit,
real(kind=r8), intent(out) xt,
real(kind=r8), intent(out) yt,
real(kind=r8), 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(kind=r8), intent(in) x,
real(kind=r8), intent(in) y,
real(kind=r8), intent(in) z,
real(kind=r8), intent(inout) zpot )
private
Here is the caller graph for this function:

◆ get_ebpot()

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

◆ get_epot()

subroutine diagnostics_mod::get_epot ( real(kind=r8), intent(in) x,
real(kind=r8), intent(in) y,
real(kind=r8), intent(in) z,
real(kind=r8), intent(inout) zpot )
private
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(kind=r8), intent(in) x,
real(kind=r8), intent(in) y,
real(kind=r8), intent(in) z,
real(kind=r8), intent(inout) zpot )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_nebpot()

subroutine diagnostics_mod::get_nebpot ( real(kind=r8), intent(in) x,
real(kind=r8), intent(inout) zpot )
private
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
private

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
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ put3d_dens()

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

◆ put3d_h5s()

subroutine diagnostics_mod::put3d_h5s ( real(kind=r8), intent(in) time,
integer, intent(in) diag_select,
integer, intent(in) field_select,
integer, intent(in), optional isp )
private
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(kind=r8), dimension(:,:), intent(in), allocatable rhs_f_ptr)
private
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(kind=r8), intent(in) time )
private
Here is the caller graph for this function:

Variable Documentation

◆ bin_sampling_psi

real(kind=r8), dimension(:), allocatable, save diagnostics_mod::bin_sampling_psi
private

◆ bin_sampling_v2

real(kind=r8), dimension(:,:), allocatable, save diagnostics_mod::bin_sampling_v2
private

◆ buf

real(kind=r8), dimension(:,:), allocatable, save diagnostics_mod::buf
private

◆ buf_pic

real(kind=r8), dimension(:,:,:), allocatable, save diagnostics_mod::buf_pic
private

◆ chiarr

real(kind=r8), dimension(:), allocatable, save diagnostics_mod::chiarr
private

◆ flux_bin_psi

real(kind=r8), dimension(:), allocatable, save diagnostics_mod::flux_bin_psi
private

◆ flux_bin_theta

real(kind=r8), dimension(:), allocatable, save diagnostics_mod::flux_bin_theta
private

◆ flux_bin_v

real(kind=r8), dimension(:,:), allocatable, save diagnostics_mod::flux_bin_v
private

◆ flux_bin_xi

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

◆ get_pot_disp_saved

integer, save diagnostics_mod::get_pot_disp_saved
private

◆ hiscp

real(kind=r8), dimension(:,:), allocatable, save diagnostics_mod::hiscp
private

◆ hiscp_an

real(kind=r8), dimension(:,:), allocatable, save diagnostics_mod::hiscp_an
private

◆ hisrz

real(kind=r8), dimension(:,:), allocatable, save diagnostics_mod::hisrz
private

◆ hisrz_an

real(kind=r8), 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(kind=r8), dimension(:,:), allocatable, save diagnostics_mod::iscp
private

◆ iscp_an

real(kind=r8), dimension(:,:), allocatable, save diagnostics_mod::iscp_an
private

◆ isrz

real(kind=r8), dimension(:,:), allocatable, save diagnostics_mod::isrz
private

◆ isrz_an

real(kind=r8), 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(kind=r8), dimension(:), allocatable, save diagnostics_mod::phasespace_psi
private

◆ phasespace_vpar

real(kind=r8), dimension(:, :), allocatable, save diagnostics_mod::phasespace_vpar
private

◆ phasespace_vperp

real(kind=r8), dimension(:, :), allocatable, save diagnostics_mod::phasespace_vperp
private

◆ phi0

real(kind=r8), save diagnostics_mod::phi0 = 0.0_r8
private

◆ phiarr

real(kind=r8), dimension(:), allocatable, save diagnostics_mod::phiarr
private

◆ pot_misc_isp_saved

integer, save diagnostics_mod::pot_misc_isp_saved
private

◆ potcp

real(kind=r8), dimension(:,:), allocatable, save diagnostics_mod::potcp
private

◆ potsc

real(kind=r8), dimension(:,:,:), allocatable, save diagnostics_mod::potsc
private

◆ potsp

real(kind=r8), dimension(:,:,:), allocatable, save diagnostics_mod::potsp
private

◆ psirz

real(kind=r8), dimension(:,:), allocatable, save diagnostics_mod::psirz
private

◆ rarr_eq

real(kind=r8), dimension(:), allocatable, save diagnostics_mod::rarr_eq
private

◆ rsc

real(kind=r8), dimension(:,:), allocatable, save diagnostics_mod::rsc
private

◆ sarr

real(kind=r8), dimension(:), allocatable, save diagnostics_mod::sarr
private

◆ source_3d_major_radius

real(kind=r8), dimension(:), allocatable, save diagnostics_mod::source_3d_major_radius
private

◆ source_3d_vpar

real(kind=r8), dimension(:, :), allocatable, save diagnostics_mod::source_3d_vpar
private

◆ source_3d_vperp

real(kind=r8), dimension(:, :), allocatable, save diagnostics_mod::source_3d_vperp
private

◆ srz

real(kind=r8), dimension(:,:), allocatable, save diagnostics_mod::srz
private

◆ write3dsize

integer, save diagnostics_mod::write3dsize
private

◆ zarr_eq

real(kind=r8), dimension(:), allocatable, save diagnostics_mod::zarr_eq
private

◆ zsc

real(kind=r8), dimension(:,:), allocatable, save diagnostics_mod::zsc
private