XGC1
Public Types | Public Member Functions | Public Attributes | 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< DeviceType > &f0_f, const VGridDistribution< DeviceType > &f0_df0g, std::string source_name)
 
void write (const Simulation< DeviceType > &sml, const Grid< DeviceType > &grid, const DomainDecomposition< DeviceType > &pol_decomp, 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 ()
 

Public Attributes

bool adios_stage
 
- Public Attributes inherited from Diagnostic
bool is_on
 

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, HostTypepv_grid
 
View< double ****, CLayout, HostTypepv_ptl
 
int tindex_period
 

Additional Inherited Members

- Protected Attributes inherited from Diagnostic
StepTrigger step_trigger
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Volume 
Density 
DensityChange 
EnergyChange 
MomentumChange 

Constructor & Destructor Documentation

◆ DiagF0DF()

DiagF0DF::DiagF0DF ( )
inline

Member Function Documentation

◆ add_active_source()

void DiagF0DF::add_active_source ( const std::string &  new_source_name)
inlineprivate
Here is the caller graph for this function:

◆ calculate_ptl_change()

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:

◆ clear_active_sources()

void DiagF0DF::clear_active_sources ( )
inlineprivate
Here is the caller graph for this function:

◆ init()

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

< Enable/disable Adios stage mode for xgc.fsourcediag

Here is the call graph for this function:
Here is the caller graph for this function:

◆ n_active_sources()

int DiagF0DF::n_active_sources ( ) const
inlineprivate
Here is the caller graph for this function:

◆ port1()

void DiagF0DF::port1 ( const DomainDecomposition< DeviceType > &  pol_decomp,
const Grid< DeviceType > &  grid,
const VelocityGrid vgrid,
Plasma plasma,
const VGridDistribution< DeviceType > &  f0_f,
const VGridDistribution< DeviceType > &  f0_df0g,
std::string  source_name 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_ptl_baseline()

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:

◆ write()

void DiagF0DF::write ( const Simulation< DeviceType > &  sml,
const Grid< DeviceType > &  grid,
const DomainDecomposition< DeviceType > &  pol_decomp,
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

◆ adios_stage

bool DiagF0DF::adios_stage

◆ pv_grid

View<double****, CLayout, HostType> DiagF0DF::pv_grid
private

◆ pv_ptl

View<double****, CLayout, HostType> DiagF0DF::pv_ptl
private

◆ source_names

std::vector<std::string> DiagF0DF::source_names
private

◆ tindex_period

int DiagF0DF::tindex_period
private

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