13#ifndef CD_ITOKMCSURFACEREACTIONSETIMPLEM_H
14#define CD_ITOKMCSURFACEREACTIONSETIMPLEM_H
18#include <CD_NamespaceHeader.H>
20using namespace Physics::ItoKMC;
31 if (a_surface == Surface::Dielectric) {
32 if (a_speciesType == Species::Plasma) {
35 else if (a_speciesType == Species::Photon) {
39 MayDay::Error(
"ItoKMCSurfaceReaction::add - logic bust 1");
42 else if (a_surface == Surface::Electrode) {
43 if (a_speciesType == Species::Plasma) {
46 else if (a_speciesType == Species::Photon) {
50 MayDay::Error(
"ItoKMCSurfaceReaction::add - logic bust 2");
54 MayDay::Error(
"ItoKMCSurfaceReaction::add - logic bust 3");
62 const Side::LoHiSide a_side,
65 CH_assert(a_dir >= 0 && a_dir < SpaceDim);
69 if (a_speciesType == Species::Plasma) {
72 else if (a_speciesType == Species::Photon) {
76 MayDay::Error(
"ItoKMCSurfaceReaction::addDomain - logic bust");
80inline const std::map<size_t, ItoKMCSurfaceReactions>&
86inline const std::map<size_t, ItoKMCSurfaceReactions>&
92inline const std::map<size_t, ItoKMCSurfaceReactions>&
98inline const std::map<size_t, ItoKMCSurfaceReactions>&
104inline const std::map<size_t, ItoKMCSurfaceReactions>&
107 CH_assert(a_dir >= 0 && a_dir < SpaceDim);
112inline const std::map<size_t, ItoKMCSurfaceReactions>&
115 CH_assert(a_dir >= 0 && a_dir < SpaceDim);
123 return 2 * a_dir + ((a_side == Side::Lo) ? 0 : 1);
126#include <CD_NamespaceFooter.H>
Declaration of a class that encapsulates a set of secondary emission reactions.
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