XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
neutrals.hpp
Go to the documentation of this file.
1 #ifndef NEUTRALS_HPP
2 #define NEUTRALS_HPP
3 
4 #include "view_arithmetic.hpp"
5 #include "xgc_io.hpp"
6 
7 // Neutrals class
8 template<class Device>
9 class Neutrals {
10  public:
11 
12  // Neutrals variables
13  bool use_ion_loss;
14  View<double*,CLayout,Device> weight_sum_lost;
15  View<double**,CLayout,Device> weight_wall_lost;
16 
17  View<double*,CLayout,HostType> weight_sum_lost_h;
18  View<double*,CLayout,HostType> weight_wall_lost_h;
19  View<double*,CLayout,HostType> node_dens_h;
20  View<double*,CLayout,HostType> node_temp_h;
21 
22  // Constructor
23  Neutrals( int nthreads, int nbins, int nnode);
24 
25  // "Null constructor"
27 
28  void write_checkpoint_files(const XGC_IO_Stream& stream) const;
29 
30  void read_checkpoint_files(const XGC_IO_Stream& stream);
31 
32  void copy_to_host() const;
33 
34  void clear_device_views() const;
35 };
36 #endif
View< double *, CLayout, HostType > node_temp_h
Definition: neutrals.hpp:20
void copy_to_host() const
void clear_device_views() const
bool use_ion_loss
Whether to use ONLY ion loss (i.e. dont track electron contribution)
Definition: neutrals.hpp:13
Definition: neutrals.hpp:9
void read_checkpoint_files(const XGC_IO_Stream &stream)
View< double *, CLayout, HostType > weight_wall_lost_h
Array to store how much was lost at the sheath, binned by wall index.
Definition: neutrals.hpp:18
View< double **, CLayout, Device > weight_wall_lost
Array to store how much was lost at the sheath, binned by wall index.
Definition: neutrals.hpp:15
Definition: xgc_io.hpp:24
Neutrals()
Definition: neutrals.hpp:26
View< double *, CLayout, HostType > weight_sum_lost_h
Array to store how much was lost in total at the sheath.
Definition: neutrals.hpp:17
void write_checkpoint_files(const XGC_IO_Stream &stream) const
View< double *, CLayout, Device > weight_sum_lost
Array to store how much was lost in total at the sheath.
Definition: neutrals.hpp:14
View< double *, CLayout, HostType > node_dens_h
Definition: neutrals.hpp:19