|
| ItoParticle () |
| Default constructor – user should subsequently set the variables or call define. More...
|
|
| ItoParticle (const Real a_weight, const RealVect &a_position, const RealVect &a_velocity=RealVect::Zero, const Real a_diffusion=0.0, const Real a_mobility=1.0, const Real a_energy=0.0) |
| Constructor. This calls the define function. More...
|
|
| ItoParticle (const ItoParticle &a_other) |
| Copy constructor. Copies all fields. More...
|
|
virtual | ~ItoParticle () |
| Destructor (deallocates runtime memory storage)
|
|
void | define (const Real a_weight, const RealVect &a_position, const RealVect &a_velocity=RealVect::Zero, const Real a_diffusion=0.0, const Real a_mobility=1.0, const Real a_energy=0.0) |
| Full define function. More...
|
|
Real & | weight () |
| Get particle weight. More...
|
|
const Real & | weight () const |
| Get particle weight. More...
|
|
Real & | diffusion () |
| Get particle diffusion coefficient. More...
|
|
const Real & | diffusion () const |
| Get particle diffusion coefficient. More...
|
|
Real & | mobility () |
| Get mobility coefficient. More...
|
|
const Real & | mobility () const |
| Get mobility coefficient. More...
|
|
Real & | energy () |
| Get average particle energy. More...
|
|
const Real & | energy () const |
| Get average particle energy. More...
|
|
RealVect & | oldPosition () |
| Get the old particle position. More...
|
|
const RealVect & | oldPosition () const |
| Get the old particle position. More...
|
|
RealVect & | velocity () |
| Get the particle velocity. More...
|
|
const RealVect & | velocity () const |
| Get the particle velocity. More...
|
|
Real | totalEnergy () const |
| Get the total energy. More...
|
|
Real | conductivity () const |
| Get the particle conductivity. More...
|
|
Real | diffusivity () const |
| Get the particle diffusivity. More...
|
|
Real & | tmpReal () |
| Return scratch scalar storage.
|
|
const Real & | tmpReal () const |
| Return scratch scalar storage.
|
|
RealVect & | tmpVect () |
| Return scratch RealVect storage.
|
|
const RealVect & | tmpVect () const |
| Return scratch RealVect storage.
|
|
Public Member Functions inherited from GenericParticle< 5, 3 > |
| GenericParticle () |
| Default constructor – initializes everything to zero.
|
|
| GenericParticle (const GenericParticle< M, N > &a_other) |
| Copy constructor. Copies all fields. More...
|
|
virtual | ~GenericParticle () |
| Destructor (deallocates runtime memory storage)
|
|
RealVect & | position () |
| Get the particle position. More...
|
|
const RealVect & | position () const |
| Get the particle position. More...
|
|
const std::array< Real, M > & | getReals () const noexcept |
| Get the M scalars. More...
|
|
std::array< Real, M > & | getReals () noexcept |
| Get the M scalars. More...
|
|
const std::array< RealVect, N > & | getVects () const noexcept |
| Get the N vectors. More...
|
|
std::array< RealVect, N > & | getVects () noexcept |
| Get the N vectors. More...
|
|
Real & | real () |
| Get one of the scalars. More...
|
|
const Real & | real () const |
| Get one of the scalars. More...
|
|
RealVect & | vect () |
| Get one of the RealVects. More...
|
|
const RealVect & | vect () const |
| Get one of the RealVects. More...
|
|
bool | operator== (const GenericParticle< M, N > &a_other) const |
| Comparison operator with other particle. More...
|
|
bool | operator!= (const GenericParticle< M, N > &a_other) const |
| Comparison operator with other particle. More...
|
|
bool | operator< (const GenericParticle< M, N > &a_other) const noexcept |
| Particle comparison operator. Returns lexicographical ordering.
|
|
virtual int | size () const |
| Returns the size, in number of bytes, of a flat representation of the data in this object.
|
|
virtual void | linearOut (void *a_buffer) const |
| Write a linear binary representation of the internal data. Assumes that sufficient memory for the buffer has already been allocated by the caller. More...
|
|
virtual void | linearIn (void *a_buffer) |
| Read a linear binary representation of the internal data. Assumes that the buffer has the correct data. More...
|
|
A particle class for use with ItoSolvers, i.e. drifting Brownian walkers.
This class is used to encapsulate the requirements for running an ItoSolver. This computational particle contains position, weight, velocity, as well as a diffusion coefficient, a mobility, energy, and previous particle position. These are stored as follows:
m_scalars[0] => weight m_scalars[1] => mobility m_scalars[2] => diffusion m_scalars[3] => energy m_scalars[4] => Temp storage. m_vectors[0] => oldPosition m_vectors[1] => velocity m_vectors[3] => Temp storage.