OGS
Adsorption::Reaction Class Referenceabstract

Detailed Description

Definition at line 19 of file Reaction.h.

#include <Reaction.h>

Inheritance diagram for Adsorption::Reaction:
[legend]

Public Member Functions

virtual double getEnthalpy (const double p_Ads, const double T_Ads, const double M_Ads) const =0
 
virtual double getReactionRate (const double p_Ads, const double T_Ads, const double M_Ads, const double loading) const =0
 
virtual double getEquilibriumLoading (const double, const double, const double) const
 
virtual ~Reaction ()=default
 

Static Public Member Functions

static std::unique_ptr< ReactionnewInstance (BaseLib::ConfigTree const &conf)
 

Constructor & Destructor Documentation

◆ ~Reaction()

virtual Adsorption::Reaction::~Reaction ( )
virtualdefault

Member Function Documentation

◆ getEnthalpy()

virtual double Adsorption::Reaction::getEnthalpy ( const double p_Ads,
const double T_Ads,
const double M_Ads ) const
pure virtual

◆ getEquilibriumLoading()

virtual double Adsorption::Reaction::getEquilibriumLoading ( const double ,
const double ,
const double  ) const
inlinevirtual

Reimplemented in Adsorption::AdsorptionReaction.

Definition at line 30 of file Reaction.h.

33 {
34 return -1.0;
35 }

◆ getReactionRate()

virtual double Adsorption::Reaction::getReactionRate ( const double p_Ads,
const double T_Ads,
const double M_Ads,
const double loading ) const
pure virtual

◆ newInstance()

std::unique_ptr< Reaction > Adsorption::Reaction::newInstance ( BaseLib::ConfigTree const & conf)
static
Input File Parameter
material__adsorption__reaction__type

Definition at line 27 of file Reaction.cpp.

28{
30 auto const type = conf.getConfigParameter<std::string>("type");
31
32 if (type == "Z13XBF")
33 {
34 return std::make_unique<DensityLegacy>();
35 }
36 if (type == "Z13XBF_100MPa")
37 {
38 return std::make_unique<Density100MPa>();
39 }
40 if (type == "Z13XBF_Const")
41 {
42 return std::make_unique<DensityConst>();
43 }
44 if (type == "Z13XBF_Cook")
45 {
46 return std::make_unique<DensityCook>();
47 }
48 if (type == "Z13XBF_Dubinin")
49 {
50 return std::make_unique<DensityDubinin>();
51 }
52 if (type == "Z13XBF_Hauer")
53 {
54 return std::make_unique<DensityHauer>();
55 }
56 if (type == "Z13XBF_Mette")
57 {
58 return std::make_unique<DensityMette>();
59 }
60 if (type == "Z13XBF_Nunez")
61 {
62 return std::make_unique<DensityNunez>();
63 }
64 if (type == "Inert")
65 {
66 return std::make_unique<ReactionInert>();
67 }
68 if (type == "Sinusoidal")
69 {
70 return std::make_unique<ReactionSinusoidal>(conf);
71 }
72 if (type == "CaOH2")
73 {
74 return std::make_unique<ReactionCaOH2>(conf);
75 }
76
77 OGS_FATAL("Unknown reactive system: {:s}.", type);
78
79 return nullptr;
80}
#define OGS_FATAL(...)
Definition Error.h:26

References BaseLib::ConfigTree::getConfigParameter(), and OGS_FATAL.

Referenced by ProcessLib::TES::TESProcess::TESProcess().


The documentation for this class was generated from the following files: