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

#include <diag_f0_df.hpp>

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

Public Types

enum  {
  Volume =0, Density, DensityChange, EnergyChange,
  MomentumChange, N
}
 

Public Member Functions

 DiagF0DF ()
 
void init (NLReader::NamelistReader &nlr, const Simulation< DeviceType > &sml, const Grid< DeviceType > &grid, const Plasma &plasma, int f_source_period)
 
void set_ptl_baseline (const Simulation< DeviceType > &sml, const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, Plasma &plasma, const VelocityGrid &vgrid, const DomainDecomposition< DeviceType > &pol_decomp)
 
void calculate_ptl_change (const Simulation< DeviceType > &sml, const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, Plasma &plasma, const VelocityGrid &vgrid, const DomainDecomposition< DeviceType > &pol_decomp)
 
void port1 (const DomainDecomposition< DeviceType > &pol_decomp, const Grid< DeviceType > &grid, const VelocityGrid &vgrid, Plasma &plasma, const VGridDistribution< HostType > &f0_f_h, const VGridDistribution< HostType > &f0_df0g_h, std::string source_name)
 
void write (const Simulation< DeviceType > &sml, const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, Plasma &plasma)
 
- 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 Member Functions

int n_active_sources () const
 
void add_active_source (const std::string &new_source_name)
 
void clear_active_sources ()
 

Private Attributes

std::vector< std::string > source_names
 
View< double ****, CLayout,
HostType
pv_grid
 
View< double ****, CLayout,
HostType
pv_ptl
 
int tindex_period
 

Additional Inherited Members

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

Member Enumeration Documentation

anonymous enum
Enumerator
Volume 
Density 
DensityChange 
EnergyChange 
MomentumChange 
N 

Constructor & Destructor Documentation

DiagF0DF::DiagF0DF ( )
inline

Member Function Documentation

void DiagF0DF::add_active_source ( const std::string &  new_source_name)
inlineprivate

Here is the caller graph for this function:

void DiagF0DF::calculate_ptl_change ( const Simulation< DeviceType > &  sml,
const Grid< DeviceType > &  grid,
const MagneticField< DeviceType > &  magnetic_field,
Plasma plasma,
const VelocityGrid vgrid,
const DomainDecomposition< DeviceType > &  pol_decomp 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void DiagF0DF::clear_active_sources ( )
inlineprivate

Here is the caller graph for this function:

void DiagF0DF::init ( NLReader::NamelistReader nlr,
const Simulation< DeviceType > &  sml,
const Grid< DeviceType > &  grid,
const Plasma plasma,
int  f_source_period 
)
inline

< Switch for f0_df (grid-conservation) diagnostic

< Output interval for f0_df diagnostic

Here is the call graph for this function:

Here is the caller graph for this function:

int DiagF0DF::n_active_sources ( ) const
inlineprivate

Here is the caller graph for this function:

void DiagF0DF::port1 ( const DomainDecomposition< DeviceType > &  pol_decomp,
const Grid< DeviceType > &  grid,
const VelocityGrid vgrid,
Plasma plasma,
const VGridDistribution< HostType > &  f0_f_h,
const VGridDistribution< HostType > &  f0_df0g_h,
std::string  source_name 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void DiagF0DF::set_ptl_baseline ( const Simulation< DeviceType > &  sml,
const Grid< DeviceType > &  grid,
const MagneticField< DeviceType > &  magnetic_field,
Plasma plasma,
const VelocityGrid vgrid,
const DomainDecomposition< DeviceType > &  pol_decomp 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void DiagF0DF::write ( const Simulation< DeviceType > &  sml,
const Grid< DeviceType > &  grid,
const MagneticField< DeviceType > &  magnetic_field,
Plasma plasma 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

View<double****, CLayout, HostType> DiagF0DF::pv_grid
private
View<double****, CLayout, HostType> DiagF0DF::pv_ptl
private
std::vector<std::string> DiagF0DF::source_names
private
int DiagF0DF::tindex_period
private

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