XGC1
|
#include <gyro_avg_mat.hpp>
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 |
|
inline |
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 | ||
) |
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 |
int GyroAverageMatrices< Device >::find_a_plane_rank_with_last_gyromatrix | ( | ) | const |
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 |
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 |
void GyroAverageMatrices< Device >::gyroaverage_field | ( | const Grid< DeviceType > & | grid, |
View< double ***, CLayout, HostType > & | field_rho | ||
) | const |
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 |
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 | ||
) |
void GyroAverageMatrices< Device >::iterative_gyroaverage | ( | Matrix< DeviceType > & | gyromatrix, |
bool | print_residual, | ||
View< double *, CLayout, DeviceType > & | view | ||
) | const |
|
inline |
|
inline |
|
inline |
void GyroAverageMatrices< Device >::smooth_with_last_gyroaverage | ( | bool | print_residual, |
View< double *, CLayout, DeviceType > & | delta_n | ||
) | const |
double GyroAverageMatrices< Device >::inv_drho |
HostArray<Matrix<Device> > GyroAverageMatrices< Device >::matrices |
int GyroAverageMatrices< Device >::nphi |
int GyroAverageMatrices< Device >::nrho |
double GyroAverageMatrices< Device >::rhomax |
TaskGroup GyroAverageMatrices< Device >::task_group |