XGC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions/Subroutines
diagnosis.F90 File Reference
#include "adios_macro.h"
Include dependency graph for diagnosis.F90:

Functions/Subroutines

subroutine diagnosis (istep, irk, grid, psn, spall)
 
subroutine determine_diag_on (istep, ipc, diag_on)
 
subroutine diag_1d_port1 (grid, ptli, derivs, sp_type, vd, ith)
 
subroutine diag_1d_output (grid, psn)
 
subroutine diag_1d_f0 (grid, psn)
 
subroutine get_drift_velocity (grid, psn, node, mu, vp, isp, v_th, v_mag, v_exb, v_pardrift, pot_rho, grad_psi_sqr)
 
subroutine diag_3d (istep, grid, psn)
 
subroutine save_as_adios_format
 
subroutine diag_rmp (istep, grid, psn)
 Prints out RMP diagnosis: perturbed fields and currents and (m,n)-Fourier-components of the perturbed fields and currents in the closed field-line region. NOTE: The Fourier analysis may need better parallelization if more than one toroidal mode number is used. More...
 
subroutine diag_f0 (istep, grid, psn, flag)
 
subroutine diag_marker_den (grid, psn, spall)
 Evaluates the density of marker particles on the mesh. More...
 
subroutine diag_3d_f0_f (grid, psn)
 
subroutine diag_3d_f0_f2 (grid, psn)
 
subroutine diag_3d_additional (grid, psn, sp)
 
subroutine tracer (n, sp_type, grid, psn, spall)
 
subroutine dump_grid (grid, psn)
 
subroutine dump_f0_grid (grid)
 
subroutine dump_bfield (grid)
 
subroutine check_adios_err (err, str)
 
subroutine validity_check (spall)
 
subroutine charging_test (istep, grid, psn)
 
subroutine background_edensity0_output (grid, psn)
 
subroutine background_edensity0_read (grid, psn)
 
subroutine diag_neu_init
 
subroutine diag_neu_ionization (ptli, psi, b, sp_type)
 
subroutine diag_neu_elastic (ptli, rho2, mu2, psi, b, sp_type)
 
subroutine diag_neu_cx (ptli, rho2, mu2, psi, b, sp_type)
 
subroutine diag_neu_output (new_n0)
 
subroutine diag_heat_port (w, pot, epara, eperp, ct, old_ph, xff_old, new_ph, dphi, stype, ith)
 
subroutine diag_heat_output
 
subroutine diag_sheath (grid)
 
subroutine diag_f0_df_port1 (idx, grid, spall)
 Save change of densiy, energy and momentum due to sources (collisions, neutrals, etc.) The information is gathered on the triangular grid and averaged over the toroidal direction. Extension to 3D output with toroidal resolution is possible. More...
 
subroutine diag_f0_df (istep, grid)
 Outputs density, momentum and enery change due to sources (collision, neutrals, etc.) Currently, each source step is written out even if a source is not active. It would be possible to skip the output for inactive source routines to reduce the size of output files. More...
 
subroutine diag_particle (grid, psn, spall)
 
subroutine write_particles_adios ()
 
subroutine count_num (isp, num)
 
subroutine get_offset (num, offset, total)
 
subroutine prep_data (isp, num, phase, gid)
 

Function/Subroutine Documentation

subroutine background_edensity0_output ( type(grid_type)  grid,
type(psn_type)  psn 
)

Here is the caller graph for this function:

subroutine background_edensity0_read ( type(grid_type)  grid,
type(psn_type)  psn 
)

Here is the caller graph for this function:

subroutine charging_test ( integer  istep,
type(grid_type)  grid,
type(psn_type)  psn 
)

Here is the call graph for this function:

subroutine check_adios_err ( integer  err,
character (len=*)  str 
)
subroutine diag_particle::count_num ( integer, intent(in)  isp,
integer, intent(out)  num 
)

Here is the caller graph for this function:

subroutine determine_diag_on ( integer  istep,
integer  ipc,
logical  diag_on 
)

Here is the caller graph for this function:

subroutine diag_1d_f0 ( type(grid_type)  grid,
type(psn_type)  psn 
)

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine diag_1d_output ( type(grid_type)  grid,
type(psn_type)  psn 
)

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine diag_1d_port1 ( type(grid_type), intent(in)  grid,
type(ptl_type), intent(in)  ptli,
real (8), dimension(ptl_nphase), intent(in)  derivs,
integer, intent(in)  sp_type,
real (8), dimension(sml_n_vf_diag)  vd,
integer, intent(in)  ith 
)

Here is the call graph for this function:

subroutine diag_3d ( integer  istep,
type(grid_type)  grid,
type(psn_type)  psn 
)

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine diag_3d_additional ( type(grid_type)  grid,
type(psn_type)  psn,
type(species_type)  sp 
)

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine diag_3d_f0_f ( type(grid_type)  grid,
type(psn_type)  psn 
)

Here is the call graph for this function:

subroutine diag_3d_f0_f2 ( type(grid_type), intent(in)  grid,
type(psn_type), intent(in)  psn 
)

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine diag_f0 ( integer, intent(in)  istep,
type(grid_type)  grid,
type(psn_type)  psn,
integer, intent(in), optional  flag 
)

Here is the call graph for this function:

subroutine diag_f0_df ( integer, intent(in)  istep,
type(grid_type)  grid 
)

Outputs density, momentum and enery change due to sources (collision, neutrals, etc.) Currently, each source step is written out even if a source is not active. It would be possible to skip the output for inactive source routines to reduce the size of output files.

Parameters
[in]isteptime step index, integer
[in]gridinformation, type(grid_type)

Here is the call graph for this function:

subroutine diag_f0_df_port1 ( integer, intent(in)  idx,
type(grid_type), intent(in)  grid,
type(species_type), dimension(0:ptl_nsp_max), intent(in)  spall 
)

Save change of densiy, energy and momentum due to sources (collisions, neutrals, etc.) The information is gathered on the triangular grid and averaged over the toroidal direction. Extension to 3D output with toroidal resolution is possible.

Parameters
[in]idxmode selector: 0) Particle moments before source routines, 1) collision, 2) diffusion (XGCa only), 3) heat-torque, 4) neutral 5) radiation, 6) particle moments after source routines, integer
[in]gridgrid informationm, type(grid_type)
[in]spallparticle data, type(species_type)

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine diag_heat_output ( )

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine diag_heat_port ( real (8), intent(in)  w,
real (8), intent(in)  pot,
real (8), intent(in)  epara,
real (8), intent(in)  eperp,
real (8), dimension(ptl_nconst), intent(in)  ct,
real (8), dimension(3), intent(in)  old_ph,
real (8), dimension(2), intent(in)  xff_old,
real (8), dimension(3), intent(in)  new_ph,
real (8), intent(in)  dphi,
integer, intent(in)  stype,
integer, intent(in)  ith 
)

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine diag_marker_den ( type(grid_type), intent(in)  grid,
type(psn_type), intent(inout)  psn,
type(species_type), dimension(0:ptl_nsp_max), intent(in)  spall 
)

Evaluates the density of marker particles on the mesh.

Parameters
grid(in) type(grid_type), grid information
psn(inout) type(psn_type), memory for the marker density
spall(in) type(species_type), particle data

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine diag_neu_cx ( type(ptl_type), intent(in)  ptli,
real (8), intent(in)  rho2,
real (8), intent(in)  mu2,
real (8), intent(in)  psi,
real (8), intent(in)  b,
integer, intent(in)  sp_type 
)

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine diag_neu_elastic ( type(ptl_type), intent(in)  ptli,
real (8), intent(in)  rho2,
real (8), intent(in)  mu2,
real (8), intent(in)  psi,
real (8), intent(in)  b,
integer, intent(in)  sp_type 
)

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine diag_neu_init ( )

Here is the caller graph for this function:

subroutine diag_neu_ionization ( type(ptl_type), intent(in)  ptli,
real (8), intent(in)  psi,
real (8), intent(in)  b,
integer, intent(in)  sp_type 
)

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine diag_neu_output ( real (8)  new_n0)

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine diag_particle ( type(grid_type)  grid,
type(psn_type)  psn,
type(species_type), dimension(0:ptl_nsp_max)  spall 
)

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine diag_rmp ( integer  istep,
type(grid_type)  grid,
type(psn_type)  psn 
)

Prints out RMP diagnosis: perturbed fields and currents and (m,n)-Fourier-components of the perturbed fields and currents in the closed field-line region. NOTE: The Fourier analysis may need better parallelization if more than one toroidal mode number is used.

Parameters
istep(in) integer, current time step index
grid(in) type(grid_type), mesh data
psn(in) type(psn_type), perturbed current data

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine diag_sheath ( type(grid_type)  grid)

Here is the caller graph for this function:

subroutine diagnosis ( integer, intent(in)  istep,
integer, intent(in)  irk,
type(grid_type)  grid,
type(psn_type)  psn,
type(species_type), dimension(0:ptl_nsp_max)  spall 
)

Here is the call graph for this function:

subroutine dump_bfield ( type(grid_type)  grid)

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine dump_f0_grid ( type(grid_type)  grid)

Here is the caller graph for this function:

subroutine dump_grid ( type(grid_type)  grid,
type(psn_type)  psn 
)

Here is the caller graph for this function:

subroutine get_drift_velocity ( type(grid_type), intent(in)  grid,
type(psn_type), intent(in)  psn,
integer, intent(in)  node,
real (kind=8), intent(in)  mu,
real (kind=8), intent(in)  vp,
integer, intent(in)  isp,
real (kind=8), intent(in)  v_th,
real (kind=8), dimension(3), intent(out)  v_mag,
real (kind=8), dimension(3), intent(out)  v_exb,
real (kind=8), dimension(3), intent(out)  v_pardrift,
real (kind=8), intent(out)  pot_rho,
real (kind=8), intent(out)  grad_psi_sqr 
)

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine diag_particle::get_offset ( integer, intent(in)  num,
integer (8), intent(out)  offset,
integer (8), intent(out)  total 
)
subroutine diag_particle::prep_data ( integer, intent(in)  isp,
integer, intent(in)  num,
real (4), dimension(ict2,num), intent(out)  phase,
integer (8), dimension(num), intent(out)  gid 
)

Here is the caller graph for this function:

subroutine save_as_adios_format ( )

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine tracer ( integer, intent(in)  n,
integer, intent(in)  sp_type,
type(grid_type)  grid,
type(psn_type)  psn,
type(species_type), dimension(0:ptl_nsp_max)  spall 
)

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine validity_check ( type(species_type), dimension(0:ptl_nsp_max)  spall)

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine diag_particle::write_particles_adios ( )

Here is the call graph for this function:

Here is the caller graph for this function: