12 #ifndef CD_ItoParticleImplem_H
13 #define CD_ItoParticleImplem_H
23 #include <CD_NamespaceHeader.H>
27 this->
define(1.0, RealVect::Zero, RealVect::Zero, 0.0, 0.0, 0.0);
31 const RealVect& a_position,
32 const RealVect& a_velocity,
33 const Real a_diffusion,
34 const Real a_mobility,
37 this->
define(a_weight, a_position, a_velocity, a_diffusion, a_mobility, a_energy);
56 const RealVect& a_position,
57 const RealVect& a_velocity,
58 const Real a_diffusion,
59 const Real a_mobility,
73 return this->real<0>();
79 return this->real<0>();
85 return this->real<1>();
91 return this->real<1>();
97 return this->real<2>();
103 return this->real<2>();
109 return this->real<3>();
115 return this->real<3>();
121 return this->vect<0>();
124 inline const RealVect&
127 return this->vect<0>();
133 return this->vect<1>();
136 inline const RealVect&
139 return this->vect<1>();
163 return this->real<4>();
169 return this->real<4>();
175 return this->vect<2>();
178 inline const RealVect&
181 return this->vect<2>();
184 #include <CD_NamespaceFooter.H>
Implementation of CD_ItoParticle.H.
Declaration of a particle class for Ito diffusion.
RealVect & position()
Get the particle position.
Definition: CD_GenericParticleImplem.H:47
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
Real totalEnergy() const
Get the total energy.
Definition: CD_ItoParticleImplem.H:155
Real & weight()
Get particle weight.
Definition: CD_ItoParticleImplem.H:71
RealVect & velocity()
Get the particle velocity.
Definition: CD_ItoParticleImplem.H:131
Real & tmpReal()
Return scratch scalar storage.
Definition: CD_ItoParticleImplem.H:161