13#ifndef CD_TRACERPARTICLE_H
14#define CD_TRACERPARTICLE_H
24#include <CD_NamespaceHeader.H>
32template <
size_t M,
size_t N>
85 size()
const override;
184template <
size_t M,
size_t N>
188#include <CD_NamespaceFooter.H>
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:278
A generic particle class, holding the position and a specified number of real and vector values.
Definition CD_GenericParticle.H:77
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:38
TracerParticleSolver()
Default constructor.
Definition CD_TracerParticleSolverImplem.H:26
A tracer particle class. This is templated for holding extra storage (useful for kernels).
Definition CD_TracerParticle.H:34
TracerParticle()
Default constructor – initializes everything to zero.
Definition CD_TracerParticleImplem.H:21
virtual void linearIn(const void *const a_buffer) override
Read a linear binary representation of the internal data. Assumes that the buffer has the correct dat...
Definition CD_TracerParticleImplem.H:129
virtual void H5linearOut(void *const a_buffer) const
Linearize the Real components onto a buffer workable by HDF5.
Definition CD_TracerParticleImplem.H:180
RealVect & vect()
Get one of the RealVects.
Definition CD_TracerParticleImplem.H:263
RealVect m_velocity
Particle velocity.
Definition CD_TracerParticle.H:175
RealVect & velocity()
Get the particle velocity.
Definition CD_TracerParticleImplem.H:66
virtual int H5size() const
Function that is used when writing particles to HDF5.
Definition CD_TracerParticleImplem.H:165
virtual ~TracerParticle()
Destructor (deallocates runtime memory storage)
Definition CD_TracerParticleImplem.H:47
virtual void linearOut(void *const a_buffer) const override
Write a linear binary representation of the internal data. Assumes that sufficient memory for the buf...
Definition CD_TracerParticleImplem.H:93
Real m_weight
Particle "weight".
Definition CD_TracerParticle.H:170
virtual void H5linearIn(const void *const a_buffer)
Delinearize the buffer onto the real components in the particle class.
Definition CD_TracerParticleImplem.H:213
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:80
Real & real()
Get one of the scalars.
Definition CD_TracerParticleImplem.H:247
Real & weight()
Get the particle "weight".
Definition CD_TracerParticleImplem.H:52