OGS
Reaction.h
Go to the documentation of this file.
1
10#pragma once
11
12#include <memory>
13
14namespace BaseLib { class ConfigTree; }
15
16namespace Adsorption
17{
18
20{
21public:
22 static std::unique_ptr<Reaction> newInstance(
23 BaseLib::ConfigTree const& conf);
24
25 virtual double getEnthalpy(const double p_Ads, const double T_Ads, const double M_Ads) const = 0;
26 virtual double getReactionRate(const double p_Ads, const double T_Ads,
27 const double M_Ads, const double loading) const = 0;
28
29 // TODO get rid of
30 virtual double getEquilibriumLoading(const double /*unused*/,
31 const double /*unused*/,
32 const double /*unused*/) const
33 {
34 return -1.0;
35 }
36
37 virtual ~Reaction() = default;
38};
39
40} // namespace Adsorption
virtual double getEquilibriumLoading(const double, const double, const double) const
Definition Reaction.h:30
static std::unique_ptr< Reaction > newInstance(BaseLib::ConfigTree const &conf)
Definition Reaction.cpp:27
virtual double getReactionRate(const double p_Ads, const double T_Ads, const double M_Ads, const double loading) const =0
virtual double getEnthalpy(const double p_Ads, const double T_Ads, const double M_Ads) const =0
virtual ~Reaction()=default