chombo-discharge
Loading...
Searching...
No Matches
CD_PhotonImplem.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_PHOTONIMPLEM_H
14#define CD_PHOTONIMPLEM_H
15
16// Our includes
17#include <CD_Photon.H>
18#include <CD_NamespaceHeader.H>
19
21{}
22
24{}
25
27{
28 this->define(a_position, a_velocity, a_kappa, a_weight);
29}
30
31inline void
33{
34 this->position() = a_position;
35 this->velocity() = a_velocity;
36 this->kappa() = a_kappa;
37 this->weight() = a_weight;
38}
39
40inline Real&
42{
43 return this->real<0>();
44}
45
46inline const Real&
48{
49 return this->real<0>();
50}
51
52inline Real&
54{
55 return this->real<1>();
56}
57
58inline const Real&
60{
61 return this->real<1>();
62}
63
64inline RealVect&
66{
67 return this->vect<0>();
68}
69
70inline const RealVect&
72{
73 return this->vect<0>();
74}
75
76#include <CD_NamespaceFooter.H>
77
78#endif
Declaration of a photon class for particle methods.
RealVect & position()
Get the particle position.
Definition CD_GenericParticleImplem.H:45
RealVect & velocity()
Get photon velocity.
Definition CD_PhotonImplem.H:65
void define(const RealVect &a_position, const RealVect &a_velocity, const Real &a_kappa, const Real a_weight=1.0)
Define function. Sets all parameters.
Definition CD_PhotonImplem.H:32
Photon()
Default constructor. Must subsequently set all parameters.
Definition CD_PhotonImplem.H:20
Real & weight()
Get photon weight.
Definition CD_PhotonImplem.H:41
virtual ~Photon()
Destructor (does nothing)
Definition CD_PhotonImplem.H:23
Real & kappa()
Get photon absorption length.
Definition CD_PhotonImplem.H:53
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:38