Declaration of a generic particle class.
Implementation of CD_TracerParticle.H.
std::ostream & operator<<(std::ostream &ostr, const TracerParticle< M, N > &p)
Particle printing function.
Definition: CD_TracerParticleImplem.H:158
A generic particle class, holding the position and a specified number of real and vector values.
Definition: CD_GenericParticle.H:33
A tracer particle class. This is templated for holding extra storage (useful for kernels).
Definition: CD_TracerParticle.H:33
TracerParticle()
Default constructor – initializes everything to zero.
Definition: CD_TracerParticleImplem.H:20
RealVect m_velocity
Particle velocity.
Definition: CD_TracerParticle.H:109
RealVect & velocity()
Get the particle velocity.
Definition: CD_TracerParticleImplem.H:65
virtual void linearOut(void *a_buffer) const override
Write a linear binary representation of the internal data. Assumes that sufficient memory for the buf...
Definition: CD_TracerParticleImplem.H:86
virtual ~TracerParticle()
Destructor (deallocates runtime memory storage)
Definition: CD_TracerParticleImplem.H:46
Real m_weight
Particle "weight".
Definition: CD_TracerParticle.H:104
virtual void linearIn(void *a_buffer) override
Read a linear binary representation of the internal data. Assumes that the buffer has the correct dat...
Definition: CD_TracerParticleImplem.H:121
virtual int size() const override
Returns the size, in number of bytes, of a flat representation of the data in this object.
Definition: CD_TracerParticleImplem.H:79
Real & weight()
Get the particle "weight".
Definition: CD_TracerParticleImplem.H:51