13#ifndef CD_ITOKMCJSON_H
14#define CD_ITOKMCJSON_H
24#include <nlohmann/json.hpp>
30#include <CD_NamespaceHeader.H>
46 using FunctionXt = std::function<Real(
const RealVect& a_position,
const Real a_time)>;
56 using FunctionEN = std::function<Real(
const Real a_E,
const Real a_N)>;
63 using FunctionX = std::function<Real(
const RealVect& a_position)>;
70 using FunctionEX = std::function<Real(
const Real E,
const RealVect& x)>;
83 Real(
const Real E,
const Real V,
const Real dx,
const Real dt,
const RealVect& x,
const Vector<Real>& phi)>;
90 using FunctionDXP = std::function<Real(
const Real dx,
const Vector<Real>& phi)>;
96 using FunctionT = std::function<Real(
const Real a_T)>;
103 using FunctionTT = std::function<Real(
const Real a_T1,
const Real a_T2)>;
136 computeAlpha(const Real a_E, const RealVect& a_pos) const noexcept override;
145 computeEta(const Real a_E, const RealVect& a_pos) const noexcept override;
151 virtual Vector<std::
string>
166 const RealVect& a_pos,
167 const Vector<Real>& a_phi,
168 const Vector<RealVect>& a_gradPhi,
170 const Real a_kappa) const noexcept override;
194 needGradient(const
int a_plasmaIndex) const noexcept override;
224 const RealVect& a_pos,
225 const RealVect& a_E) const noexcept override;
240 const RealVect& a_pos,
241 const RealVect& a_E) const noexcept override;
265 Vector<Real>& a_secondaryCDRFluxes,
268 const Vector<Real>& a_primaryCDRFluxes,
271 const RealVect& a_cellCenter,
272 const RealVect& a_cellCentroid,
273 const RealVect& a_bndryCentroid,
274 const RealVect& a_bndryNormal,
275 const Real a_bndryArea,
278 const
bool a_isDielectric,
279 const
int a_matIndex) const noexcept override;
307 const RealVect& a_cellCenter,
308 const RealVect& a_cellCentroid,
309 const RealVect& a_bndryCentroid,
310 const RealVect& a_bndryNormal,
312 const Side::LoHiSide a_side,
313 const Real a_faceArea,
315 const Real a_dt) const noexcept override;
546 trim(const std::
string& a_string) const noexcept;
584 checkKeys(const nlohmann::json& a_object,
585 const std::set<std::
string>& a_allowed,
586 const std::
string& a_context) const noexcept;
593 virtual std::set<std::
string>
594 getTableKeys(const std::
string& a_dataID) const noexcept;
650 isBracketed(const std::
string& a_str) const noexcept;
668 const std::vector<std::
string>& a_products,
669 const std::
string& a_reaction) const noexcept;
680 const std::vector<std::
string>& a_products,
681 const std::
string& a_reaction) const noexcept;
792 virtual std::vector<std::pair<
int, Side::LoHiSide>>
815 const std::function<RealVect()>& a_releasePosition,
816 const
bool a_isCathode) const noexcept;
831 const std::vector<std::pair<
int,
FunctionEN>>& a_fieldEmission,
833 const RealVect& a_position,
834 const Real a_areaFraction,
836 const Real a_dt) const noexcept;
858 std::vector<std::
string>& a_products,
859 const std::
string& a_reaction) const noexcept;
874 std::list<
size_t>& a_plasmaReactants,
875 std::list<
size_t>& a_photonReactants,
876 std::list<
size_t>& a_backgroundProducts,
877 std::list<
size_t>& a_plasmaProducts,
878 std::list<
size_t>& a_photonProducts,
879 const std::vector<std::
string>& a_reactants,
880 const std::vector<std::
string>& a_products) const noexcept;
892 const std::list<
size_t>& a_backgroundReactants,
893 const std::list<
size_t>& a_plasmaReactants) const;
900 virtual std::pair<
bool, std::
string>
908 virtual std::pair<
bool, std::
string>
927 parseTableEByN(const nlohmann::json& a_tableEntry, const std::
string& a_dataID) const;
937 virtual std::vector<std::tuple<std::
string, std::vector<std::
string>, std::vector<std::
string>>>
939 const std::vector<std::
string>& a_products,
940 const nlohmann::json& a_reactionJSON) const noexcept;
956 const RealVect a_pos,
957 const Vector<Real>& a_phi,
958 const Vector<RealVect>& a_gradPhi,
961 const Real a_kappa) const noexcept override;
970 multinomial(const
size_t N, const std::discrete_distribution<
int>& a_distribution) const noexcept;
975#include <CD_NamespaceFooter.H>
Declaration of a background species class for usage with ItoKMCJSON.
Declaration of the Physics::ItoKMC::ItoKMCPhysics abstract base class.
KMCDualStateReaction< KMCState, FPR > KMCReaction
KMC reaction type used in the Kinetic Monte Carlo advancement.
Definition CD_ItoKMCPhysics.H:55
SpeciesType
Tag for distinguishing species solved with an Ito diffusion or CDR fluid formalism.
Definition CD_ItoKMCPhysics.H:76
Declaration of a table for looking up coefficients etc.
Class for interpolation of f = f(x) data in one independent variable x.
Definition CD_LookupTable1D.H:32
Arena-backed Struct-of-Arrays particle container for a single grid patch.
Definition CD_ParticleSoA.H:655
Encapsulation of a background species for usage with ItoKMCJSON.
Definition CD_ItoKMCBackgroundSpecies.H:32
virtual Real computeEta(const Real a_E, const RealVect &a_pos) const noexcept override
Compute Townsend attachment coefficient.
Definition CD_ItoKMCJSON.cpp:3890
virtual std::pair< bool, std::string > parsePlasmaReactionPlot(const nlohmann::json &a_reactionJSON) const
Parse whether or not a reaction rate should be plotted.
Definition CD_ItoKMCJSON.cpp:3594
virtual void initializeDiffusionCoefficients()
Initialize diffusion coefficients.
Definition CD_ItoKMCJSON.cpp:1770
std::function< Real(const Real E, const Real V, const Real dx, const Real dt, const RealVect &x, const Vector< Real > &phi)> FunctionEVXTP
Function for encapsulating a function f = f(E, V, x) where E is the electric field at physical coordi...
Definition CD_ItoKMCJSON.H:82
std::vector< std::list< size_t > > m_plasmaReactionPhotonProducts
List of photon species on the right-hand side of a reaction.
Definition CD_ItoKMCJSON.H:472
FunctionEX m_alpha
Townsend ionization coefficient. Defined during parseAlpha.
Definition CD_ItoKMCJSON.H:518
virtual void secondaryEmissionEB(Vector< ParticleSoA< ItoParticle > > &a_secondaryParticles, Vector< Real > &a_secondaryCDRFluxes, Vector< ParticleSoA< Photon > > &a_secondaryPhotons, const Vector< ParticleSoA< ItoParticle > > &a_primaryParticles, const Vector< Real > &a_primaryCDRFluxes, const Vector< ParticleSoA< Photon > > &a_primaryPhotons, const RealVect &a_E, const RealVect &a_cellCenter, const RealVect &a_cellCentroid, const RealVect &a_bndryCentroid, const RealVect &a_bndryNormal, const Real a_bndryArea, const Real a_dx, const Real a_dt, const bool a_isDielectric, const int a_matIndex) const noexcept override
Resolve secondary emission at the EB.
Definition CD_ItoKMCJSON.cpp:3990
virtual void initializeAutomaticTownsend(const std::string &a_coeff)
Initialize automatic Townsend coefficient (ionizatino or attachment) from the reaction rates.
Definition CD_ItoKMCJSON.cpp:1104
std::vector< std::list< size_t > > m_plasmaReactionPlasmaProducts
List of plasma species on the right-hand side of a reaction.
Definition CD_ItoKMCJSON.H:467
virtual Vector< Real > getPlotVariables(const RealVect &a_E, const RealVect &a_pos, const Vector< Real > &a_phi, const Vector< RealVect > &a_gradPhi, const Real a_dx, const Real a_kappa) const noexcept override
Get plot variables.
Definition CD_ItoKMCJSON.cpp:4365
virtual void initializeTownsendCoefficient(const std::string &a_coeff)
Parse one of the Townsend coefficients.
Definition CD_ItoKMCJSON.cpp:912
FunctionEX m_eta
Townsend attachment coefficient. Defined during parseEta.
Definition CD_ItoKMCJSON.H:523
std::function< Real(const Real a_E, const Real a_N)> FunctionEN
Function for encapsulating operations f = f(E,N). field in Townsend units.
Definition CD_ItoKMCJSON.H:56
virtual bool isPlasmaSpecies(const std::string &a_name) const noexcept
Return true if species is a plasma species.
Definition CD_ItoKMCJSON.cpp:311
virtual std::vector< std::pair< int, Side::LoHiSide > > parseDomainBoundaries(const nlohmann::json &a_json, const std::string &a_context) const
Parse the 'boundaries' list of a domain emission entry.
Definition CD_ItoKMCJSON.cpp:2739
bool m_plotEta
Plot Townsend attachment coefficient.
Definition CD_ItoKMCJSON.H:336
virtual bool isBracketed(const std::string &a_str) const noexcept
Check if a string contains starts with '(' and ends with ')'.
Definition CD_ItoKMCJSON.cpp:356
std::array< std::vector< std::pair< int, FunctionEN > >, 2 *SpaceDim > m_domainFieldEmission
Field emission reactions on the domain faces.
Definition CD_ItoKMCJSON.H:513
virtual void initializeSurfaceEmission(const std::string &a_surface)
Initialize surface reactions.
Definition CD_ItoKMCJSON.cpp:2386
bool m_plotGas
Plot gas pressure, density, and temperature.
Definition CD_ItoKMCJSON.H:326
virtual void sampleSurfaceEmission(Vector< ParticleSoA< ItoParticle > > &a_secondaryParticles, const std::map< size_t, ItoKMCSurfaceReactions > &a_plasmaReactions, const std::map< size_t, ItoKMCSurfaceReactions > &a_photonReactions, const Vector< ParticleSoA< ItoParticle > > &a_primaryParticles, const Vector< ParticleSoA< Photon > > &a_primaryPhotons, const std::function< RealVect()> &a_releasePosition, const bool a_isCathode) const noexcept
Sample the secondaries released by primaries that hit a surface.
Definition CD_ItoKMCJSON.cpp:4123
virtual void initializeGasLaw()
Initialize gas law.
Definition CD_ItoKMCJSON.cpp:457
virtual void sanctifyPhotoReaction(const std::vector< std::string > &a_reactants, const std::vector< std::string > &a_products, const std::string &a_reaction) const noexcept
Check that a photo-reaction makes sense. I.e. that all species are properly defined and that it conse...
Definition CD_ItoKMCJSON.cpp:2926
virtual void initializePhotonSpecies()
Initialize the photon species.
Definition CD_ItoKMCJSON.cpp:1974
FunctionX m_gasPressure
Background gas pressure.
Definition CD_ItoKMCJSON.H:528
std::vector< FunctionEVXTP > m_kmcReactionRates
Function-based plasma reaction rates. Same index as the actual reactions.
Definition CD_ItoKMCJSON.H:445
virtual LookupTable1D< Real, 1 > parseTableEByN(const nlohmann::json &a_tableEntry, const std::string &a_dataID) const
Parse a table which is stored in E/N format.
Definition CD_ItoKMCJSON.cpp:3703
virtual void updateReactionRates(std::vector< std::shared_ptr< const KMCReaction > > &a_kmcReactions, const RealVect a_E, const RealVect a_pos, const Vector< Real > &a_phi, const Vector< RealVect > &a_gradPhi, const Real a_dt, const Real a_dx, const Real a_kappa) const noexcept override
Update reaction rates.
Definition CD_ItoKMCJSON.cpp:3942
virtual void initializeDensities()
Parse initial densities for CDR and Ito species.
Definition CD_ItoKMCJSON.cpp:1621
std::function< Real(const Real a_T)> FunctionT
Function for encapsulating a function f = f(T) where T is the temperature of some species.
Definition CD_ItoKMCJSON.H:96
std::pair< bool, std::string > m_autoAlpha
Flag if the user wants to compute the alpha coefficient from the reactions.
Definition CD_ItoKMCJSON.H:492
std::set< std::string > m_allSpecies
All species that have been defined.
Definition CD_ItoKMCJSON.H:378
virtual void previewFunctionEX(const nlohmann::json &a_json, const FunctionEX &a_function) const
Simple function for previewing a rate/coefficient defined as a function f = f(E,x).
Definition CD_ItoKMCJSON.cpp:1269
virtual Vector< std::string > getPlotVariableNames() const noexcept override
Get plot variable names.
Definition CD_ItoKMCJSON.cpp:4327
std::function< Real(const RealVect &a_position)> FunctionX
Function for encapsulating a function f = f(x) where x is the physical coordinates.
Definition CD_ItoKMCJSON.H:63
std::map< std::string, int > m_cdrSpeciesMap
Map for indexing from an ID to an Ito solver index.
Definition CD_ItoKMCJSON.H:415
virtual void initializePlasmaReactions()
Initialize plasma reactions.
Definition CD_ItoKMCJSON.cpp:2158
bool m_abortOnUnknownKeys
Abort (true) or warn (false) when a JSON object contains a key that the parser does not read.
Definition CD_ItoKMCJSON.H:352
virtual bool containsBracket(const std::string &a_str) const noexcept
Check if a string contains standard brackets.
Definition CD_ItoKMCJSON.cpp:333
std::vector< std::pair< int, FunctionEN > > m_dielectricFieldEmission
List of dielectric field emission reactions.
Definition CD_ItoKMCJSON.H:502
virtual std::vector< std::tuple< std::string, std::vector< std::string >, std::vector< std::string > > > parseReactionWildcards(const std::vector< std::string > &a_reactants, const std::vector< std::string > &a_products, const nlohmann::json &a_reactionJSON) const noexcept
Make a reaction set into a superset. This parses wildcards '@' in reaction string.
Definition CD_ItoKMCJSON.cpp:3806
FunctionX m_gasNumberDensity
Background gas number density.
Definition CD_ItoKMCJSON.H:538
virtual Real getNeutralDensity(const RealVect &a_pos) const noexcept override
Get the neutral density at a position in space.
Definition CD_ItoKMCJSON.cpp:3870
virtual void sanctifyPlasmaReaction(const std::vector< std::string > &a_reactants, const std::vector< std::string > &a_products, const std::string &a_reaction) const noexcept
Check that a plasma reaction makes sense. I.e. that all species are properly defined and that it cons...
Definition CD_ItoKMCJSON.cpp:2808
virtual void throwParserWarning(const std::string &a_warning) const noexcept
Throw a parser warning.
Definition CD_ItoKMCJSON.cpp:143
ItoKMCJSON()
Default constructor.
Definition CD_ItoKMCJSON.cpp:29
bool m_previewRates
Preview rates or not.
Definition CD_ItoKMCJSON.H:346
virtual void secondaryEmissionDomain(Vector< ParticleSoA< ItoParticle > > &a_secondaryParticles, Vector< ParticleSoA< Photon > > &a_secondaryPhotons, const Vector< ParticleSoA< ItoParticle > > &a_primaryParticles, const Vector< ParticleSoA< Photon > > &a_primaryPhotons, const RealVect &a_E, const RealVect &a_cellCenter, const RealVect &a_cellCentroid, const RealVect &a_bndryCentroid, const RealVect &a_bndryNormal, const int a_dir, const Side::LoHiSide a_side, const Real a_faceArea, const Real a_dx, const Real a_dt) const noexcept override
Resolve secondary emission on one face of the computational domain.
Definition CD_ItoKMCJSON.cpp:4058
virtual void sampleFieldEmission(Vector< ParticleSoA< ItoParticle > > &a_secondaryParticles, const std::vector< std::pair< int, FunctionEN > > &a_fieldEmission, const RealVect &a_E, const RealVect &a_position, const Real a_areaFraction, const Real a_dx, const Real a_dt) const noexcept
Sample field emission from a cathode surface.
Definition CD_ItoKMCJSON.cpp:4188
bool m_skipReactions
A flag for skipping reactions completely.
Definition CD_ItoKMCJSON.H:341
virtual void initializePlasmaSpecies()
Initialize the plasma species.
Definition CD_ItoKMCJSON.cpp:763
virtual void throwParserError(const std::string &a_error) const noexcept
Throw a parser error.
Definition CD_ItoKMCJSON.cpp:130
std::map< std::string, int > m_backgroundSpeciesMap
Map of string-int identifiers for background species.
Definition CD_ItoKMCJSON.H:383
virtual void initializeMobilities()
Initialize mobility functions.
Definition CD_ItoKMCJSON.cpp:1664
virtual void checkMolarFraction(const RealVect &a_position) const noexcept
Check that molar fraction is one. Throws a warning if it isn't.
Definition CD_ItoKMCJSON.cpp:362
virtual void initializeParticlePlacement()
Initialize the particle placement algorithm.
Definition CD_ItoKMCJSON.cpp:1035
virtual void getReactionSpecies(std::list< size_t > &a_backgroundReactants, std::list< size_t > &a_plasmaReactants, std::list< size_t > &a_photonReactants, std::list< size_t > &a_backgroundProducts, std::list< size_t > &a_plasmaProducts, std::list< size_t > &a_photonProducts, const std::vector< std::string > &a_reactants, const std::vector< std::string > &a_products) const noexcept
Turn reactants and products strings into indices.
Definition CD_ItoKMCJSON.cpp:3071
virtual ~ItoKMCJSON() noexcept
Destructor.
Definition CD_ItoKMCJSON.cpp:90
std::map< std::string, int > m_photonIndexMap
Map for indexing a photon species name to a global index in the solver vectors.
Definition CD_ItoKMCJSON.H:425
std::vector< size_t > multinomial(const size_t N, const std::discrete_distribution< int > &a_distribution) const noexcept
Sample a multinomial distribution with N samples.
Definition CD_ItoKMCJSON.cpp:4411
std::map< int, std::string > m_backgroundSpeciesMapInverse
Map of int-string identifiers for background species.
Definition CD_ItoKMCJSON.H:388
std::vector< FunctionEX > m_fluidRates
Function-based plasma reaction rates as if they appeared in the reaction rate equation....
Definition CD_ItoKMCJSON.H:452
nlohmann::json m_json
Nohmanns implementation of JSON files.
Definition CD_ItoKMCJSON.H:367
virtual bool isBackgroundSpecies(const std::string &a_name) const noexcept
Return true if species is a background species.
Definition CD_ItoKMCJSON.cpp:300
FunctionX m_gasTemperature
Background gas temperature.
Definition CD_ItoKMCJSON.H:533
virtual bool emitsWithoutPrimariesEB() const noexcept override
Return true if field emission is specified on electrodes or dielectrics.
Definition CD_ItoKMCJSON.cpp:4279
int m_numPlasmaSpecies
Total number of plasma species.
Definition CD_ItoKMCJSON.H:357
virtual void initializePhotoReactions()
Initialize photo-reactions.
Definition CD_ItoKMCJSON.cpp:2305
std::function< Real(const Real a_T1, const Real a_T2)> FunctionTT
Function for encapsulating a function f = f(T1, T2) where T1/T2 are temperatures of two species.
Definition CD_ItoKMCJSON.H:103
int m_numPhotonSpecies
Total number of photon species.
Definition CD_ItoKMCJSON.H:362
std::vector< bool > m_backgroundSpeciesPlot
Plot background species or not.
Definition CD_ItoKMCJSON.H:400
std::function< Real(const Real E, const RealVect &x)> FunctionEX
Function for encapsulating a function f = f(E, x) where E is the electric field at physical coordinat...
Definition CD_ItoKMCJSON.H:70
virtual void initializeBackgroundSpecies()
Initialize the background species.
Definition CD_ItoKMCJSON.cpp:535
std::vector< std::list< size_t > > m_plasmaReactionBackgroundReactants
List of background species involved in a reaction.
Definition CD_ItoKMCJSON.H:457
virtual Real parsePlasmaReactionDt(const nlohmann::json &a_reactionJSON) const
Parse whether or not a reaction should be a part of the time step calculation. Returns 1 if the react...
Definition CD_ItoKMCJSON.cpp:3679
virtual std::pair< bool, std::string > parsePlasmaReactionGradientCorrection(const nlohmann::json &a_reactionJSON) const
Parse whether or not a reaction uses a gradient correction for the rate.
Definition CD_ItoKMCJSON.cpp:3616
virtual bool needGradients() const noexcept override
Return true if the physics model requires species density gradients.
Definition CD_ItoKMCJSON.cpp:4236
virtual void checkKeys(const nlohmann::json &a_object, const std::set< std::string > &a_allowed, const std::string &a_context) const noexcept
Report every key in a JSON object that the parser does not read.
Definition CD_ItoKMCJSON.cpp:156
std::vector< std::pair< int, FunctionEN > > m_electrodeFieldEmission
List of electrode field emission reactions.
Definition CD_ItoKMCJSON.H:507
virtual Real computeAlpha(const Real a_E, const RealVect &a_pos) const noexcept override
Compute Townsend ionization coefficient.
Definition CD_ItoKMCJSON.cpp:3880
std::string m_jsonFile
Input JSON file name.
Definition CD_ItoKMCJSON.H:372
virtual bool isPhotonSpecies(const std::string &a_name) const noexcept
Return true if species is a photon species.
Definition CD_ItoKMCJSON.cpp:322
virtual void initializeTemperatures()
Initialize the plasma species temperatures.
Definition CD_ItoKMCJSON.cpp:1875
std::vector< std::pair< bool, std::string > > m_kmcReactionGradientCorrections
Whether or not a reaction uses a gradient correction for the rate (Soloviev et. al....
Definition CD_ItoKMCJSON.H:477
virtual bool containsWildcard(const std::string &a_str) const noexcept
Check if a string contains the wildcard @ and return true if it does.
Definition CD_ItoKMCJSON.cpp:289
virtual void initializeFieldEmission()
Initialize field emission reactions.
Definition CD_ItoKMCJSON.cpp:2570
std::function< Real(const RealVect &a_position, const Real a_time)> FunctionXt
Function alias for e.g. initial data.
Definition CD_ItoKMCJSON.H:46
virtual std::set< std::string > getTableKeys(const std::string &a_dataID) const noexcept
Get the keys that parseTableEByN() reads from a table entry.
Definition CD_ItoKMCJSON.cpp:254
std::vector< FunctionEX > m_diffusionCoefficients
Diffusion coefficients for the various species.
Definition CD_ItoKMCJSON.H:435
virtual bool needGradient(const int a_plasmaIndex) const noexcept override
Return true if any reaction's gradient correction names this plasma species.
Definition CD_ItoKMCJSON.cpp:4255
std::map< std::string, SpeciesType > m_plasmaSpeciesTypes
Map for identifying a species name with a solver type.
Definition CD_ItoKMCJSON.H:405
virtual bool doesFileExist(const std::string &a_filename) const noexcept
Check if a file exists.
Definition CD_ItoKMCJSON.cpp:276
virtual std::pair< FunctionEVXTP, FunctionEX > parsePlasmaReactionRate(const nlohmann::json &a_reactionJSON, const std::list< size_t > &a_backgroundReactants, const std::list< size_t > &a_plasmaReactants) const
Parse a plasma reaction rate and turn it into a function.
Definition CD_ItoKMCJSON.cpp:3136
std::map< int, std::pair< bool, int > > m_plasmaReactionSolovievCorrection
Map of reactions that will be plotted.
Definition CD_ItoKMCJSON.H:487
std::vector< std::pair< bool, std::string > > m_kmcReactionRatePlots
Map of reactions that will be plotted.
Definition CD_ItoKMCJSON.H:482
std::vector< FunctionEX > m_mobilityFunctions
Mobilities for the various species.
Definition CD_ItoKMCJSON.H:430
std::vector< FunctionEX > m_plasmaTemperatures
Plasma species temperatures.
Definition CD_ItoKMCJSON.H:440
std::vector< std::list< size_t > > m_plasmaReactionPlasmaReactants
List of plasma species on the left-hand side of a reaction.
Definition CD_ItoKMCJSON.H:462
std::vector< ItoKMCBackgroundSpecies > m_backgroundSpecies
Map of background species.
Definition CD_ItoKMCJSON.H:394
virtual void computeDiffusionCoefficients(Vector< Real > &a_diffusionCoefficients, const Real a_time, const RealVect &a_pos, const RealVect &a_E) const noexcept override
Compute the Ito solver diffusion coefficients.
Definition CD_ItoKMCJSON.cpp:3922
std::map< std::string, int > m_itoSpeciesMap
Map for indexing from an ID to an Ito solver index.
Definition CD_ItoKMCJSON.H:410
std::pair< bool, std::string > m_autoEta
Flag if the user wants to compute the alpha coefficient from the reactions.
Definition CD_ItoKMCJSON.H:497
virtual void parseJSON()
Parse the JSON file.
Definition CD_ItoKMCJSON.cpp:393
bool m_verbose
Verbose or not.
Definition CD_ItoKMCJSON.H:321
virtual int getNumberOfPlotVariables() const noexcept override
Get number of extra diagnostic plot variables.
Definition CD_ItoKMCJSON.cpp:4290
virtual std::string trim(const std::string &a_string) const noexcept
Trim a string. This removes whitespace before/after.
Definition CD_ItoKMCJSON.cpp:107
virtual void printFluidRates() const noexcept
Print the fluid-representation of the reaction rates.
Definition CD_ItoKMCJSON.cpp:1193
virtual void parseRuntimeOptions() noexcept override
Parse run-time options.
Definition CD_ItoKMCJSON.cpp:96
virtual void parseVerbose() noexcept
Parse chattiness.
Definition CD_ItoKMCJSON.cpp:380
virtual void initializeParticles()
Parse initial particles.
Definition CD_ItoKMCJSON.cpp:1348
bool m_plotAlpha
Plot Townsend ionization coefficient.
Definition CD_ItoKMCJSON.H:331
virtual void computeMobilities(Vector< Real > &a_mobilities, const Real a_time, const RealVect &a_pos, const RealVect &a_E) const noexcept override
Compute the Ito solver mobilities.
Definition CD_ItoKMCJSON.cpp:3900
std::map< std::string, int > m_plasmaIndexMap
Map for indexing a plasma species name to a global index in the solver vectors.
Definition CD_ItoKMCJSON.H:420
virtual bool emitsWithoutPrimariesDomain() const noexcept override
Return true if field emission is specified on any domain face.
Definition CD_ItoKMCJSON.cpp:4219
virtual void parseReactionString(std::vector< std::string > &a_reactants, std::vector< std::string > &a_products, const std::string &a_reaction) const noexcept
Parses a reaction string into reactangs and products.
Definition CD_ItoKMCJSON.cpp:3032
std::function< Real(const Real dx, const Vector< Real > &phi)> FunctionDXP
Function alias for f = f(dx, phi) where dx is the grid resolution and phi is the plasma species densi...
Definition CD_ItoKMCJSON.H:90
ItoKMCPhysics() noexcept
Constructor. Does nothing.
Definition CD_ItoKMCPhysicsImplem.H:32
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 ItoSolver particles, i.e. drifting Brownian walkers.
Definition CD_ItoParticle.H:31
SoA payload for Monte Carlo radiative-transfer photons.
Definition CD_Photon.H:29