13#ifndef CD_ITOKMCSURFACEREACTIONSIMPLEM_H
14#define CD_ITOKMCSURFACEREACTIONSIMPLEM_H
21#include <CD_NamespaceHeader.H>
23using namespace Physics::ItoKMC;
40 if (m_reactant != a_surfaceReaction.getReactant()) {
41 MayDay::Warning(
"ItoKMCSurfaceReaction::addReaction - reactant indices do not match!");
47 m_reactant = a_surfaceReaction.getReactant();
50 m_products.emplace_back(a_surfaceReaction.getProducts());
51 m_efficiencies.emplace_back(a_surfaceReaction.getEfficiency());
53 m_distribution = std::discrete_distribution<int>(std::begin(m_efficiencies), std::end(m_efficiencies));
74inline const std::vector<ItoKMCSurfaceReactions::Products>&
80inline const std::vector<Real>&
86inline std::discrete_distribution<int>&
92#include <CD_NamespaceFooter.H>
Declaration of the Physics::ItoKMC::ItoKMCSurfaceReactions class.
Reaction class for describing secondary emissions due to a single outgoing particle in ItoKMCPhysics.
Definition CD_ItoKMCSurfaceReaction.H:34
size_t m_reactant
Reactant index.
Definition CD_ItoKMCSurfaceReactions.H:100
void add(const ItoKMCSurfaceReaction &a_surfaceReaction) noexcept
Add a reaction to this collection.
Definition CD_ItoKMCSurfaceReactionsImplem.H:36
const size_t & getReactant() const noexcept
Get the reactant species index.
Definition CD_ItoKMCSurfaceReactionsImplem.H:69
virtual ~ItoKMCSurfaceReactions() noexcept
Destructor.
Definition CD_ItoKMCSurfaceReactionsImplem.H:30
std::discrete_distribution< int > & getDistribution() const noexcept
Get the discrete distribution used to randomly select a reaction pathway.
Definition CD_ItoKMCSurfaceReactionsImplem.H:87
const std::vector< Real > & getEfficiencies() const noexcept
Get the efficiency (probability) for each competing reaction pathway.
Definition CD_ItoKMCSurfaceReactionsImplem.H:81
std::vector< Products > m_products
Plasma product indices.
Definition CD_ItoKMCSurfaceReactions.H:105
bool m_isDefined
Is defined or not.
Definition CD_ItoKMCSurfaceReactions.H:95
std::discrete_distribution< int > m_distribution
Discrete distribution – useful when drawing a reaction.
Definition CD_ItoKMCSurfaceReactions.H:115
const std::vector< Products > & getProducts() const noexcept
Get the plasma product index lists for each competing reaction pathway.
Definition CD_ItoKMCSurfaceReactionsImplem.H:75
ItoKMCSurfaceReactions() noexcept
Allowed, but you need to call the define function afterwards.
Definition CD_ItoKMCSurfaceReactionsImplem.H:25
std::vector< Real > m_efficiencies
Reaction efficiencies.
Definition CD_ItoKMCSurfaceReactions.H:110
void reset() noexcept
Reset method for clearing class.
Definition CD_ItoKMCSurfaceReactionsImplem.H:59