XGC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
GyroAverageMatrices< Device > Class Template Reference

#include <gyro_avg_mat.hpp>

Collaboration diagram for GyroAverageMatrices< Device >:
Collaboration graph
[legend]

Public Member Functions

Matrix< Device > operator[] (int i) const
 
Matrix< Device > & operator[] (int i)
 
 GyroAverageMatrices ()
 
 GyroAverageMatrices (NLReader::NamelistReader &nlr, const Grid< DeviceType > &grid, const DomainDecomposition< DeviceType > &pol_decomp, const MagneticField< DeviceType > &magnetic_field, bool is_field_following, int n_larmor_pts, int nrho_in, double rhomax_in)
 
template<class Device2 >
GyroAverageMatrices< Device2 > mirror () const
 
void init_one_gyro_avg_mat (const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, Matrix< Device > &matrix, int iphi, int irho, bool is_field_following, int n_larmor_pts)
 
void gyroaverage_field (const Grid< DeviceType > &grid, View< double ***, CLayout, HostType > &field_rho) const
 
void get_pot_mat_mult (const View< double ***, CLayout, DeviceType > &field_rho, const View< double ****, CLayout, DeviceType > &gradient_rho, const View< double ***, CLayout, DeviceType > &E_para_em, bool potential_requested, bool gradient_requested, bool E_para_em_requested) const
 
void broadcast_potentials (const View< double ***, CLayout, DeviceType > &potential_rho, const View< double ****, CLayout, DeviceType > &gradient_rho, const View< double ***, CLayout, DeviceType > &E_para_em, bool potential_requested, bool gradient_requested, bool E_para_em_requested) const
 
void get_gyroaveraged (const View< double ***, CLayout, DeviceType > &field_rho, const View< double ****, CLayout, DeviceType > &gradient_rho, const View< double ***, CLayout, DeviceType > &E_para_em, bool potential_requested, bool gradient_requested, bool E_para_em_requested) const
 
void gyroaverage_moments (const View< double **, CLayout, DeviceType > &density_rho, const View< double **, CLayout, DeviceType > &flow_rho, const View< double **, CLayout, DeviceType > &energy_rho, const View< double **, CLayout, DeviceType > &density_f0g_rho, const View< double *, CLayout, DeviceType > &density, const View< double *, CLayout, DeviceType > &flow, const View< double *, CLayout, DeviceType > &energy, const View< double *, CLayout, DeviceType > &density_f0g) const
 
int find_a_plane_rank_with_last_gyromatrix () const
 
void iterative_gyroaverage (Matrix< DeviceType > &gyromatrix, bool print_residual, View< double *, CLayout, DeviceType > &view) const
 
void smooth_with_last_gyroaverage (bool print_residual, View< double *, CLayout, DeviceType > &delta_n) const
 

Public Attributes

HostArray< Matrix< Device > > matrices
 
int nrho
 
double rhomax
 
double inv_drho
 
int nphi
 
TaskGroup task_group
 

Constructor & Destructor Documentation

template<class Device>
GyroAverageMatrices< Device >::GyroAverageMatrices ( )
inline
template<class Device >
GyroAverageMatrices< Device >::GyroAverageMatrices ( NLReader::NamelistReader nlr,
const Grid< DeviceType > &  grid,
const DomainDecomposition< DeviceType > &  pol_decomp,
const MagneticField< DeviceType > &  magnetic_field,
bool  is_field_following,
int  n_larmor_pts,
int  nrho_in,
double  rhomax_in 
)

Here is the call graph for this function:

Member Function Documentation

template<class Device>
void GyroAverageMatrices< Device >::broadcast_potentials ( const View< double ***, CLayout, DeviceType > &  potential_rho,
const View< double ****, CLayout, DeviceType > &  gradient_rho,
const View< double ***, CLayout, DeviceType > &  E_para_em,
bool  potential_requested,
bool  gradient_requested,
bool  E_para_em_requested 
) const

Here is the caller graph for this function:

template<class Device>
int GyroAverageMatrices< Device >::find_a_plane_rank_with_last_gyromatrix ( ) const

Here is the caller graph for this function:

template<class Device>
void GyroAverageMatrices< Device >::get_gyroaveraged ( const View< double ***, CLayout, DeviceType > &  field_rho,
const View< double ****, CLayout, DeviceType > &  gradient_rho,
const View< double ***, CLayout, DeviceType > &  E_para_em,
bool  potential_requested,
bool  gradient_requested,
bool  E_para_em_requested 
) const

Here is the caller graph for this function:

template<class Device>
void GyroAverageMatrices< Device >::get_pot_mat_mult ( const View< double ***, CLayout, DeviceType > &  field_rho,
const View< double ****, CLayout, DeviceType > &  gradient_rho,
const View< double ***, CLayout, DeviceType > &  E_para_em,
bool  potential_requested,
bool  gradient_requested,
bool  E_para_em_requested 
) const

Here is the caller graph for this function:

template<class Device>
void GyroAverageMatrices< Device >::gyroaverage_field ( const Grid< DeviceType > &  grid,
View< double ***, CLayout, HostType > &  field_rho 
) const

Here is the caller graph for this function:

template<class Device>
void GyroAverageMatrices< Device >::gyroaverage_moments ( const View< double **, CLayout, DeviceType > &  density_rho,
const View< double **, CLayout, DeviceType > &  flow_rho,
const View< double **, CLayout, DeviceType > &  energy_rho,
const View< double **, CLayout, DeviceType > &  density_f0g_rho,
const View< double *, CLayout, DeviceType > &  density,
const View< double *, CLayout, DeviceType > &  flow,
const View< double *, CLayout, DeviceType > &  energy,
const View< double *, CLayout, DeviceType > &  density_f0g 
) const

Here is the caller graph for this function:

template<class Device>
void GyroAverageMatrices< Device >::init_one_gyro_avg_mat ( const Grid< DeviceType > &  grid,
const MagneticField< DeviceType > &  magnetic_field,
Matrix< Device > &  matrix,
int  iphi,
int  irho,
bool  is_field_following,
int  n_larmor_pts 
)

Here is the call graph for this function:

Here is the caller graph for this function:

template<class Device>
void GyroAverageMatrices< Device >::iterative_gyroaverage ( Matrix< DeviceType > &  gyromatrix,
bool  print_residual,
View< double *, CLayout, DeviceType > &  view 
) const

Here is the caller graph for this function:

template<class Device>
template<class Device2 >
GyroAverageMatrices<Device2> GyroAverageMatrices< Device >::mirror ( ) const
inline
template<class Device>
Matrix<Device> GyroAverageMatrices< Device >::operator[] ( int  i) const
inline
template<class Device>
Matrix<Device>& GyroAverageMatrices< Device >::operator[] ( int  i)
inline
template<class Device>
void GyroAverageMatrices< Device >::smooth_with_last_gyroaverage ( bool  print_residual,
View< double *, CLayout, DeviceType > &  delta_n 
) const

Here is the caller graph for this function:

Member Data Documentation

template<class Device>
double GyroAverageMatrices< Device >::inv_drho
template<class Device>
HostArray<Matrix<Device> > GyroAverageMatrices< Device >::matrices
template<class Device>
int GyroAverageMatrices< Device >::nphi
template<class Device>
int GyroAverageMatrices< Device >::nrho
template<class Device>
double GyroAverageMatrices< Device >::rhomax
template<class Device>
TaskGroup GyroAverageMatrices< Device >::task_group

The documentation for this class was generated from the following files: