12 #ifndef CD_ItoParticle_H
13 #define CD_ItoParticle_H
23 #include <CD_NamespaceHeader.H>
69 const RealVect& a_position,
70 const RealVect& a_velocity = RealVect::Zero,
71 const Real a_diffusion = 0.0,
72 const Real a_mobility = 1.0,
73 const Real a_energy = 0.0);
96 define(
const Real a_weight,
97 const RealVect& a_position,
98 const RealVect& a_velocity = RealVect::Zero,
99 const Real a_diffusion = 0.0,
100 const Real a_mobility = 1.0,
101 const Real a_energy = 0.0);
170 inline const RealVect&
184 inline const RealVect&
229 inline const RealVect&
233 #include <CD_NamespaceFooter.H>
Declaration of a generic particle class.
Implementation of CD_ItoParticle.H.
A generic particle class, holding the position and a specified number of real and vector values.
Definition: CD_GenericParticle.H:33
A particle class for use with ItoSolvers, i.e. drifting Brownian walkers.
Definition: CD_ItoParticle.H:40
Real & energy()
Get average particle energy.
Definition: CD_ItoParticleImplem.H:107
Real conductivity() const
Get the particle conductivity.
Definition: CD_ItoParticleImplem.H:143
virtual ~ItoParticle()
Destructor (deallocates runtime memory storage)
Definition: CD_ItoParticleImplem.H:51
Real & diffusion()
Get particle diffusion coefficient.
Definition: CD_ItoParticleImplem.H:95
ItoParticle()
Default constructor – user should subsequently set the variables or call define.
Definition: CD_ItoParticleImplem.H:25
Real & mobility()
Get mobility coefficient.
Definition: CD_ItoParticleImplem.H:83
RealVect & oldPosition()
Get the old particle position.
Definition: CD_ItoParticleImplem.H:119
RealVect & tmpVect()
Return scratch RealVect storage.
Definition: CD_ItoParticleImplem.H:173
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.
Definition: CD_ItoParticleImplem.H:55
Real diffusivity() const
Get the particle diffusivity.
Definition: CD_ItoParticleImplem.H:149
static std::vector< std::string > s_vectVariables
Naming convention for vector fields.
Definition: CD_ItoParticle.H:50
Real totalEnergy() const
Get the total energy.
Definition: CD_ItoParticleImplem.H:155
Real & weight()
Get particle weight.
Definition: CD_ItoParticleImplem.H:71
static std::vector< std::string > s_realVariables
Naming convention for scalar fields.
Definition: CD_ItoParticle.H:45
RealVect & velocity()
Get the particle velocity.
Definition: CD_ItoParticleImplem.H:131
Real & tmpReal()
Return scratch scalar storage.
Definition: CD_ItoParticleImplem.H:161