XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Types | Private Attributes | List of all members
Diag1D Class Reference

#include <diag_1d.hpp>

Inheritance diagram for Diag1D:
Inheritance graph
[legend]
Collaboration diagram for Diag1D:
Collaboration graph
[legend]

Public Member Functions

 Diag1D ()
 
void write_volume ()
 
void init (NLReader::NamelistReader &nlr, const DomainDecomposition< DeviceType > &pol_decomp, const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, const Plasma &plasma, bool allocate_df_diagnostic)
 
View< double ***, CLayout,
HostType
diag_1d_f0 (const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, const DomainDecomposition< DeviceType > &pol_decomp, const VelocityGrid &vgrid, Plasma &plasma)
 
void write (const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, const DomainDecomposition< DeviceType > &pol_decomp, const VelocityGrid &vgrid, Plasma &plasma, const Charges &charges, const ElectricField< DeviceType > &electric_field, double time, int gstep)
 
void reduce_and_copy_to_host (const View< double ****, CLayout, DeviceType > &d1d_f_pv1, const View< double ****, CLayout, DeviceType > &d1d_df_pv1) const
 
void clear ()
 
- Public Member Functions inherited from Diagnostic
bool is_triggered (int step)
 
bool has_been_triggered (int step)
 
int get_period () const
 
 Diagnostic ()
 
void init (const std::string &name, int period, int first_step=-1)
 
void open_stream (const std::string &filename, const XGC_IO_Mode &mode)
 
void close_stream ()
 
void write (const XGC_IO &xgc_io)
 
void start_write_step ()
 
bool is_first_step ()
 
void end_write_step ()
 

Private Types

enum  VarNames {
  GC_Density =0, GC_ToroidalFlow, GC_PoloidalFlow, ParallelFlow,
  TorAngMom, RadialFlux, ParallelMeanEnergy, PerpTemp,
  RadialEnFlux, RadialMomFluxExB, RadialMomFlux, RadialFluxExB,
  RadialEnFluxExB, PoloidalExBFlow, VParxB, GradPsiSqr,
  RadialFlux3DB, RadialEnFlux3DB, MarkerDensity, NVARS
}
 

Private Attributes

std::vector< std::string > var_names
 
bool deltaf_diag_on
 
bool f0_diag_on
 
View< double ***, CLayout,
HostType
d1d_f_pv1_h
 
View< double ***, CLayout,
HostType
d1d_df_pv1_h
 
View< double *, CLayout, HostTypediag_1d_vol_h
 

Additional Inherited Members

- Public Attributes inherited from Diagnostic
bool is_on
 
- Protected Attributes inherited from Diagnostic
StepTrigger step_trigger
 

Member Enumeration Documentation

enum Diag1D::VarNames
private
Enumerator
GC_Density 
GC_ToroidalFlow 
GC_PoloidalFlow 
ParallelFlow 
TorAngMom 
RadialFlux 
ParallelMeanEnergy 
PerpTemp 
RadialEnFlux 
RadialMomFluxExB 
RadialMomFlux 
RadialFluxExB 
RadialEnFluxExB 
PoloidalExBFlow 
VParxB 
GradPsiSqr 
RadialFlux3DB 
RadialEnFlux3DB 
MarkerDensity 
NVARS 

Constructor & Destructor Documentation

Diag1D::Diag1D ( )
inline

Member Function Documentation

void Diag1D::clear ( )

Here is the caller graph for this function:

View< double ***, CLayout, HostType > Diag1D::diag_1d_f0 ( const Grid< DeviceType > &  grid,
const MagneticField< DeviceType > &  magnetic_field,
const DomainDecomposition< DeviceType > &  pol_decomp,
const VelocityGrid vgrid,
Plasma plasma 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Diag1D::init ( NLReader::NamelistReader nlr,
const DomainDecomposition< DeviceType > &  pol_decomp,
const Grid< DeviceType > &  grid,
const MagneticField< DeviceType > &  magnetic_field,
const Plasma plasma,
bool  allocate_df_diagnostic 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Diag1D::reduce_and_copy_to_host ( const View< double ****, CLayout, DeviceType > &  d1d_f_pv1,
const View< double ****, CLayout, DeviceType > &  d1d_df_pv1 
) const

Here is the call graph for this function:

Here is the caller graph for this function:

void Diag1D::write ( const Grid< DeviceType > &  grid,
const MagneticField< DeviceType > &  magnetic_field,
const DomainDecomposition< DeviceType > &  pol_decomp,
const VelocityGrid vgrid,
Plasma plasma,
const Charges charges,
const ElectricField< DeviceType > &  electric_field,
double  time,
int  gstep 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Diag1D::write_volume ( )

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

View<double***,CLayout,HostType> Diag1D::d1d_df_pv1_h
private
View<double***,CLayout,HostType> Diag1D::d1d_f_pv1_h
private
bool Diag1D::deltaf_diag_on
private
View<double*,CLayout,HostType> Diag1D::diag_1d_vol_h
private
bool Diag1D::f0_diag_on
private
std::vector<std::string> Diag1D::var_names
private

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