antioch-0.4.0
List of all members | Public Member Functions | Private Attributes
Antioch::ParticleFlux< VectorCoeffType > Class Template Reference

Stores the incoming flux of particles. More...

#include <particle_flux.h>

Public Member Functions

 ParticleFlux ()
 
 ParticleFlux (const VectorCoeffType &x, const VectorCoeffType &flux)
 
 ~ParticleFlux ()
 
bool updated () const
 
bool x_updated () const
 
const VectorCoeffType & abscissa () const
 
const VectorCoeffType & flux () const
 
template<typename VectorStateType >
void set_abscissa (const VectorStateType &x)
 
template<typename VectorStateType >
void set_flux (const VectorStateType &flux)
 
void update_done ()
 
void add_a_reaction ()
 
void remove_a_reaction ()
 

Private Attributes

VectorCoeffType _abscissa
 
VectorCoeffType _flux
 
bool _updated
 
bool _x_updated
 
unsigned int _n_coupled
 
unsigned int _n_updated
 

Detailed Description

template<typename VectorCoeffType>
class Antioch::ParticleFlux< VectorCoeffType >

Stores the incoming flux of particles.

Definition at line 38 of file particle_flux.h.

Constructor & Destructor Documentation

template<typename VectorCoeffType >
Antioch::ParticleFlux< VectorCoeffType >::ParticleFlux ( )
inline

Definition at line 164 of file particle_flux.h.

164  :
165  _updated(false),
166  _x_updated(false),
167  _n_coupled(0),
168  _n_updated(0)
169  {
170  return;
171  }
unsigned int _n_updated
Definition: particle_flux.h:46
unsigned int _n_coupled
Definition: particle_flux.h:45
template<typename VectorCoeffType>
Antioch::ParticleFlux< VectorCoeffType >::ParticleFlux ( const VectorCoeffType &  x,
const VectorCoeffType &  flux 
)
inline

Definition at line 182 of file particle_flux.h.

182  :
183  _abscissa(x),
184  _flux(flux),
185  _updated(true),
186  _x_updated(true),
187  _n_coupled(0),
188  _n_updated(0)
189  {
190  return;
191  }
const VectorCoeffType & flux() const
Definition: particle_flux.h:93
VectorCoeffType _abscissa
Definition: particle_flux.h:41
unsigned int _n_updated
Definition: particle_flux.h:46
VectorCoeffType _flux
Definition: particle_flux.h:42
unsigned int _n_coupled
Definition: particle_flux.h:45
template<typename VectorCoeffType >
Antioch::ParticleFlux< VectorCoeffType >::~ParticleFlux ( )
inline

Definition at line 175 of file particle_flux.h.

176  {
177  return;
178  }

Member Function Documentation

template<typename VectorCoeffType >
const VectorCoeffType & Antioch::ParticleFlux< VectorCoeffType >::abscissa ( ) const
inline

Definition at line 86 of file particle_flux.h.

87  {
88  return _abscissa;
89  }
VectorCoeffType _abscissa
Definition: particle_flux.h:41
template<typename VectorCoeffType >
void Antioch::ParticleFlux< VectorCoeffType >::add_a_reaction ( )
inline

Definition at line 108 of file particle_flux.h.

109  {
110  _n_coupled++;
111  _updated = true;
112  return;
113  }
unsigned int _n_coupled
Definition: particle_flux.h:45
template<typename VectorCoeffType >
const VectorCoeffType & Antioch::ParticleFlux< VectorCoeffType >::flux ( ) const
inline

Definition at line 93 of file particle_flux.h.

94  {
95  return _flux;
96  }
VectorCoeffType _flux
Definition: particle_flux.h:42
template<typename VectorCoeffType >
void Antioch::ParticleFlux< VectorCoeffType >::remove_a_reaction ( )
inline

Definition at line 100 of file particle_flux.h.

101  {
102  _n_coupled--;
103  return;
104  }
unsigned int _n_coupled
Definition: particle_flux.h:45
template<typename VectorCoeffType >
template<typename VectorStateType >
void Antioch::ParticleFlux< VectorCoeffType >::set_abscissa ( const VectorStateType &  x)
inline

Definition at line 146 of file particle_flux.h.

147  {
148  _abscissa = x;
149  _updated = true;
150  _x_updated = true;
151  }
VectorCoeffType _abscissa
Definition: particle_flux.h:41
template<typename VectorCoeffType >
template<typename VectorStateType >
void Antioch::ParticleFlux< VectorCoeffType >::set_flux ( const VectorStateType &  flux)
inline

Definition at line 156 of file particle_flux.h.

157  {
158  _flux = flux;
159  _updated = true;
160  }
const VectorCoeffType & flux() const
Definition: particle_flux.h:93
VectorCoeffType _flux
Definition: particle_flux.h:42
template<typename VectorCoeffType >
void Antioch::ParticleFlux< VectorCoeffType >::update_done ( )
inline

Definition at line 131 of file particle_flux.h.

132  {
133  _n_updated++;
134  if(_n_updated == _n_coupled)
135  {
136  _updated = false;
137  _x_updated = false;
138  _n_updated = 0;
139  }
140  return;
141  }
unsigned int _n_updated
Definition: particle_flux.h:46
unsigned int _n_coupled
Definition: particle_flux.h:45
template<typename VectorCoeffType >
bool Antioch::ParticleFlux< VectorCoeffType >::updated ( ) const
inline

Definition at line 117 of file particle_flux.h.

118  {
119  return _updated;
120  }
template<typename VectorCoeffType >
bool Antioch::ParticleFlux< VectorCoeffType >::x_updated ( ) const
inline

Definition at line 124 of file particle_flux.h.

125  {
126  return _x_updated;
127  }

Member Data Documentation

template<typename VectorCoeffType>
VectorCoeffType Antioch::ParticleFlux< VectorCoeffType >::_abscissa
private

Definition at line 41 of file particle_flux.h.

template<typename VectorCoeffType>
VectorCoeffType Antioch::ParticleFlux< VectorCoeffType >::_flux
private

Definition at line 42 of file particle_flux.h.

template<typename VectorCoeffType>
unsigned int Antioch::ParticleFlux< VectorCoeffType >::_n_coupled
private

Definition at line 45 of file particle_flux.h.

template<typename VectorCoeffType>
unsigned int Antioch::ParticleFlux< VectorCoeffType >::_n_updated
private

Definition at line 46 of file particle_flux.h.

template<typename VectorCoeffType>
bool Antioch::ParticleFlux< VectorCoeffType >::_updated
private

Definition at line 43 of file particle_flux.h.

template<typename VectorCoeffType>
bool Antioch::ParticleFlux< VectorCoeffType >::_x_updated
private

Definition at line 44 of file particle_flux.h.


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

Generated on Thu Jul 7 2016 11:09:49 for antioch-0.4.0 by  doxygen 1.8.8