chombo-discharge
Loading...
Searching...
No Matches
CD_ItoKMCSurfaceReactionSet.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
12
13#ifndef CD_ITOKMCSURFACEREACTIONSET_H
14#define CD_ITOKMCSURFACEREACTIONSET_H
15
16// Std includes
17#include <array>
18#include <map>
19
20// Chombo includes
21#include <LoHiSide.H>
22
23// Our includes
25#include <CD_NamespaceHeader.H>
26
27namespace Physics {
28namespace ItoKMC {
29
34{
35public:
39 enum class Surface
40 {
43 };
44
48 enum class Species
49 {
50 Plasma,
51 Photon
52 };
53
57
61 virtual inline ~ItoKMCSurfaceReactionSet() noexcept;
62
70 inline void
71 add(const size_t a_speciesIndex,
72 const ItoKMCSurfaceReaction& a_reaction,
73 const ItoKMCSurfaceReactionSet::Surface a_surface,
74 const ItoKMCSurfaceReactionSet::Species a_speciesType) noexcept;
75
84 inline void
85 addDomain(const size_t a_speciesIndex,
86 const ItoKMCSurfaceReaction& a_reaction,
87 const int a_dir,
88 const Side::LoHiSide a_side,
89 const ItoKMCSurfaceReactionSet::Species a_speciesType) noexcept;
90
95 const std::map<size_t, ItoKMCSurfaceReactions>&
96 getDielectricPlasmaReactions() const noexcept;
97
102 const std::map<size_t, ItoKMCSurfaceReactions>&
103 getDielectricPhotonReactions() const noexcept;
104
109 const std::map<size_t, ItoKMCSurfaceReactions>&
110 getElectrodePlasmaReactions() const noexcept;
111
116 const std::map<size_t, ItoKMCSurfaceReactions>&
117 getElectrodePhotonReactions() const noexcept;
118
125 inline const std::map<size_t, ItoKMCSurfaceReactions>&
126 getDomainPlasmaReactions(const int a_dir, const Side::LoHiSide a_side) const noexcept;
127
134 inline const std::map<size_t, ItoKMCSurfaceReactions>&
135 getDomainPhotonReactions(const int a_dir, const Side::LoHiSide a_side) const noexcept;
136
137protected:
142
147
152
157
162 std::array<std::map<size_t, ItoKMCSurfaceReactions>, 2 * SpaceDim> m_domainPlasmaReactions;
163
168 std::array<std::map<size_t, ItoKMCSurfaceReactions>, 2 * SpaceDim> m_domainPhotonReactions;
169
176 inline static int
177 domainFaceIndex(const int a_dir, const Side::LoHiSide a_side) noexcept;
178};
179} // namespace ItoKMC
180} // namespace Physics
181
182#include <CD_NamespaceFooter.H>
183
185
186#endif
Implementation of CD_ItoKMCSurfaceReactionSet.H.
Declaration of the Physics::ItoKMC::ItoKMCSurfaceReactions class.
dielectric class. Simple tuple.
Definition CD_Dielectric.H:30
Electrode class for encapsulating the concept of an electrical conductor.
Definition CD_Electrode.H:27
ItoKMCSurfaceReactionSet()=default
Allowed, but you need to call the define function afterwards.
std::map< size_t, ItoKMCSurfaceReactions > m_dielectricPlasmaReactions
Dielectric reaction set where outgoing species is a plasma species.
Definition CD_ItoKMCSurfaceReactionSet.H:141
std::array< std::map< size_t, ItoKMCSurfaceReactions >, 2 *SpaceDim > m_domainPlasmaReactions
Domain reaction sets where outgoing species is a plasma species, one per domain face.
Definition CD_ItoKMCSurfaceReactionSet.H:162
Species
Local enum for specifying species type.
Definition CD_ItoKMCSurfaceReactionSet.H:49
virtual ~ItoKMCSurfaceReactionSet() noexcept
Destructor.
Definition CD_ItoKMCSurfaceReactionSetImplem.H:22
static int domainFaceIndex(const int a_dir, const Side::LoHiSide a_side) noexcept
Index of a domain face in m_domainPlasmaReactions and m_domainPhotonReactions.
Definition CD_ItoKMCSurfaceReactionSetImplem.H:121
std::map< size_t, ItoKMCSurfaceReactions > m_dielectricPhotonReactions
Dielectric reaction set where outgoing species is a photon species.
Definition CD_ItoKMCSurfaceReactionSet.H:146
void add(const size_t a_speciesIndex, const ItoKMCSurfaceReaction &a_reaction, const ItoKMCSurfaceReactionSet::Surface a_surface, const ItoKMCSurfaceReactionSet::Species a_speciesType) noexcept
Add a surface reaction to the set.
Definition CD_ItoKMCSurfaceReactionSetImplem.H:26
std::map< size_t, ItoKMCSurfaceReactions > m_electrodePlasmaReactions
Electrode reaction set where outgoing species is a plasma species.
Definition CD_ItoKMCSurfaceReactionSet.H:151
Surface
Local enum for specifying surface type.
Definition CD_ItoKMCSurfaceReactionSet.H:40
const std::map< size_t, ItoKMCSurfaceReactions > & getElectrodePhotonReactions() const noexcept
Get the electrode surface reactions where the outgoing species is a photon species.
Definition CD_ItoKMCSurfaceReactionSetImplem.H:99
const std::map< size_t, ItoKMCSurfaceReactions > & getDielectricPlasmaReactions() const noexcept
Get the dielectric surface reactions where the outgoing species is a plasma species.
Definition CD_ItoKMCSurfaceReactionSetImplem.H:81
const std::map< size_t, ItoKMCSurfaceReactions > & getDomainPhotonReactions(const int a_dir, const Side::LoHiSide a_side) const noexcept
Get the reactions on one domain face where the outgoing species is a photon species.
Definition CD_ItoKMCSurfaceReactionSetImplem.H:113
std::map< size_t, ItoKMCSurfaceReactions > m_electrodePhotonReactions
Electrode reaction set where outgoing species is a photon species.
Definition CD_ItoKMCSurfaceReactionSet.H:156
const std::map< size_t, ItoKMCSurfaceReactions > & getDielectricPhotonReactions() const noexcept
Get the dielectric surface reactions where the outgoing species is a photon species.
Definition CD_ItoKMCSurfaceReactionSetImplem.H:87
std::array< std::map< size_t, ItoKMCSurfaceReactions >, 2 *SpaceDim > m_domainPhotonReactions
Domain reaction sets where outgoing species is a photon species, one per domain face.
Definition CD_ItoKMCSurfaceReactionSet.H:168
const std::map< size_t, ItoKMCSurfaceReactions > & getElectrodePlasmaReactions() const noexcept
Get the electrode surface reactions where the outgoing species is a plasma species.
Definition CD_ItoKMCSurfaceReactionSetImplem.H:93
const std::map< size_t, ItoKMCSurfaceReactions > & getDomainPlasmaReactions(const int a_dir, const Side::LoHiSide a_side) const noexcept
Get the reactions on one domain face where the outgoing species is a plasma species.
Definition CD_ItoKMCSurfaceReactionSetImplem.H:105
void addDomain(const size_t a_speciesIndex, const ItoKMCSurfaceReaction &a_reaction, const int a_dir, const Side::LoHiSide a_side, const ItoKMCSurfaceReactionSet::Species a_speciesType) noexcept
Add a surface reaction on one face of the computational domain.
Definition CD_ItoKMCSurfaceReactionSetImplem.H:59
Reaction class for describing secondary emissions due to a single outgoing particle in ItoKMCPhysics.
Definition CD_ItoKMCSurfaceReaction.H:34
Reaction class for describing multiple pathways of secondary emissions due to a single outgoing parti...
Definition CD_ItoKMCSurfaceReactions.H:33
Namespace containing physics models for use with chombo-discharge.
Definition CD_AdvectionDiffusion.H:16
SoA payload for Monte Carlo radiative-transfer photons.
Definition CD_Photon.H:29