chombo-discharge
Loading...
Searching...
No Matches
CD_PointParticleImplem.H
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021-2026 SINTEF Energy Research
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
13#ifndef CD_POINTPARTICLEIMPLEM_H
14#define CD_POINTPARTICLEIMPLEM_H
15
16// Our includes
17#include <CD_PointParticle.H>
18#include <CD_NamespaceHeader.H>
19
21
23{
24 this->define(a_position, a_weight);
25}
26
28
29inline void
31{
32 this->position() = a_position;
33 this->weight() = a_weight;
34}
35
36inline Real&
38{
39 return this->real<0>();
40}
41
42inline const Real&
44{
45 return this->real<0>();
46}
47
48#include <CD_NamespaceFooter.H>
49
50#endif
Declaration of a computational point particle.
RealVect & position()
Get the particle position.
Definition CD_GenericParticleImplem.H:45
void define(const RealVect &a_position, Real a_weight)
Full define function.
Definition CD_PointParticleImplem.H:30
~PointParticle() override
Dtor - does nothing.
PointParticle()
Default constructor. Sets weight and position to zero.
Real & weight()
Get weight.
Definition CD_PointParticleImplem.H:37
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:38