chombo-discharge
Loading...
Searching...
No Matches
CD_PointParticle.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_POINTPARTICLE_H
14#define CD_POINTPARTICLE_H
15
16// Std includes
17#include <string>
18#include <typeinfo>
19#include <cstdio>
20#include <cmath>
21
22// Our includes
23#include <CD_GenericParticle.H>
24#include <CD_NamespaceHeader.H>
25
29class PointParticle : public GenericParticle<1, 0>
30{
31public:
35 inline PointParticle();
36
43
47 inline ~PointParticle() override;
48
54
61 operator=(const PointParticle& a_other) = default;
62
68
76
82 inline void
84
89 inline Real&
90 weight();
91
96 inline const Real&
97 weight() const;
98};
99
100#include <CD_NamespaceFooter.H>
101
103
104#endif
Declaration of a generic particle class.
Implementation of CD_PointParticle.H.
A generic particle class, holding the position and a specified number of real and vector values.
Definition CD_GenericParticle.H:77
A particle class that only has a position and a weight.
Definition CD_PointParticle.H:30
PointParticle(const PointParticle &a_other)=default
Copy constructor.
PointParticle(PointParticle &&a_other)=default
Move constructor.
void define(const RealVect &a_position, Real a_weight)
Full define function.
Definition CD_PointParticleImplem.H:30
PointParticle & operator=(PointParticle &&a_other)=default
Move assignment operator.
~PointParticle() override
Dtor - does nothing.
PointParticle()
Default constructor. Sets weight and position to zero.
PointParticle & operator=(const PointParticle &a_other)=default
Copy assignment operator.
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