XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Public Attributes | List of all members
mom_module Module Reference

Moment generating function from f0_f data. More...

Public Member Functions

subroutine init_mom_module (grid)
 
subroutine calc_moments (grid)
 Calculate moments on the full grid, and distribute copies to all compute nodes Used by neutral_totalf routine. More...
 
subroutine f0_moments (inode1, inode2, den, upara, uperp, temp, Kperp, Kpara, temp_para)
 Calculate moments given node range. More...
 
subroutine gather_moments
 Gathers all moments on local nodes, and distributes copies to all compute nodes Intended to be called by calc_moments. More...
 

Public Attributes

real(kind=8), dimension(:,:,:),
allocatable 
den_local
 density, More...
 
real(kind=8), dimension(:,:,:),
allocatable 
upara_local
 parallel bulk velocity, More...
 
real(kind=8), dimension(:,:,:),
allocatable 
uperp_local
 perpendicular bulk velocity, More...
 
real(kind=8), dimension(:,:),
allocatable 
temp_local
 temperature, More...
 
real(kind=8), dimension(:,:,:),
allocatable 
kperp_local
 perpendicular kinetic energy, More...
 
real(kind=8), dimension(:,:,:),
allocatable 
kpara_local
 parllel kinetic energy, More...
 
real(kind=8), dimension(:,:),
allocatable 
temp_para_local
 parallel temperature, More...
 
real(kind=8), dimension(:,:),
allocatable 
den_all
 density, More...
 
real(kind=8), dimension(:,:),
allocatable 
upara_all
 parallel bulk velocity, More...
 
real(kind=8), dimension(:,:),
allocatable 
temp_all
 temperature, More...
 
real(kind=8), dimension(:,:),
allocatable 
temp_perp_all
 perpendicular kinetic energy, More...
 
real(kind=8), dimension(:,:),
allocatable 
temp_para_all
 parllel kinetic energy, More...
 

Detailed Description

Moment generating function from f0_f data.

Member Function/Subroutine Documentation

subroutine mom_module::calc_moments ( type(grid_type)  grid)

Calculate moments on the full grid, and distribute copies to all compute nodes Used by neutral_totalf routine.

Parameters
grid(in) type(grid_type), XGC grid information

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine mom_module::f0_moments ( integer, intent(in)  inode1,
integer, intent(in)  inode2,
real (kind=8), dimension(ptl_isp:ptl_nsp,inode1:inode2,sml_nthreads), intent(out)  den,
real (kind=8), dimension(ptl_isp:ptl_nsp,inode1:inode2,sml_nthreads), intent(out)  upara,
real (kind=8), dimension(ptl_isp:ptl_nsp,inode1:inode2,sml_nthreads), intent(out)  uperp,
real (kind=8), dimension(ptl_isp:ptl_nsp,inode1:inode2), intent(out)  temp,
real (kind=8), dimension(ptl_isp:ptl_nsp,inode1:inode2,sml_nthreads), intent(out)  Kperp,
real (kind=8), dimension(ptl_isp:ptl_nsp,inode1:inode2,sml_nthreads), intent(out)  Kpara,
real (kind=8), dimension(ptl_isp:ptl_nsp,inode1:inode2), intent(out)  temp_para 
)

Calculate moments given node range.

Parameters
inode1[in]integer, Beginning node index
inode2[in]integer, Ending node index
den[out]real(8) [ptl_isp:ptl_nsp,inode1:inode2], Density \( \int f d\mathbf{v} \)
upara[out]real(8) [ptl_isp:ptl_nsp,inode1:inode2], Parallel bulk velocity, \( \int v_\parallel f d\mathbf{v} \)
temp[out]real(8) [ptl_isp:ptl_nsp,inode1:inode2], Temperature, \( 2/3 \int 1/2 (\mathbf{v} - u_\parallel)^2 f d\mathbf{v} \)
Kperp[out]real(8) [ptl_isp:ptl_nsp,inode1:inode2], Perpendicular kinetic energy, \( \int 1/2 v_\perp^2 f d\mathbf{v} \)
Kpara[out]real(8) [ptl_isp:ptl_nsp,inode1:inode2], Parallel kinetic energy, \( \int v_\parallel^2 d\mathbf{v} \)
temp_para[out]real(8) [ptl_isp:ptl_nsp,inode1:inode2], Parallel temperature, \( \int (v_\parallel-u_\parallel)^2 d\mathbf{v} \)

Here is the call graph for this function:

subroutine mom_module::gather_moments ( )

Gathers all moments on local nodes, and distributes copies to all compute nodes Intended to be called by calc_moments.

Here is the caller graph for this function:

subroutine mom_module::init_mom_module ( type(grid_type)  grid)

Here is the caller graph for this function:

Member Data Documentation

real (kind=8), dimension(:,:), allocatable mom_module::den_all

density,

real (kind=8), dimension(:,:,:), allocatable mom_module::den_local

density,

real (kind=8), dimension(:,:,:), allocatable mom_module::kpara_local

parllel kinetic energy,

real (kind=8), dimension(:,:,:), allocatable mom_module::kperp_local

perpendicular kinetic energy,

real (kind=8), dimension(:,:), allocatable mom_module::temp_all

temperature,

real (kind=8), dimension(:,:), allocatable mom_module::temp_local

temperature,

real (kind=8), dimension(:,:), allocatable mom_module::temp_para_all

parllel kinetic energy,

real (kind=8), dimension(:,:), allocatable mom_module::temp_para_local

parallel temperature,

real (kind=8), dimension(:,:), allocatable mom_module::temp_perp_all

perpendicular kinetic energy,

real (kind=8), dimension(:,:), allocatable mom_module::upara_all

parallel bulk velocity,

real (kind=8), dimension(:,:,:), allocatable mom_module::upara_local

parallel bulk velocity,

real (kind=8), dimension(:,:,:), allocatable mom_module::uperp_local

perpendicular bulk velocity,


The documentation for this module was generated from the following file: