OGS 6.2.0-97-g4a610c866
ReactionSinusoidal.h
Go to the documentation of this file.
1 
10 #pragma once
11 
12 #include <logog/include/logog.hpp>
13 
14 #include "Reaction.h"
15 #include "BaseLib/ConfigTree.h"
16 #include "BaseLib/Error.h"
17 #include "BaseLib/StringTools.h"
18 
19 namespace Adsorption
20 {
21 
22 class ReactionSinusoidal final : public Reaction
23 {
24 public:
25  explicit ReactionSinusoidal(BaseLib::ConfigTree const& conf) :
27  _enthalpy(conf.getConfigParameter<double>("reaction_enthalpy"))
28  {
29  }
30 
31  double getEnthalpy(const double /*p_Ads*/, const double /*T_Ads*/,
32  const double /*M_Ads*/) const override
33  {
34  return _enthalpy;
35  }
36 
37  double getReactionRate(const double /*p_Ads*/, const double /*T_Ads*/, const double /*M_Ads*/,
38  const double /*loading*/) const override
39  {
40  OGS_FATAL("Method getReactionRate() should never be called directly");
41  }
42 
43 private:
44  double _enthalpy;
45 };
46 
47 } // namespace Adsorption
double getEnthalpy(const double, const double, const double) const override
Definition of string helper functions.
ReactionSinusoidal(BaseLib::ConfigTree const &conf)
double getReactionRate(const double, const double, const double, const double) const override
#define OGS_FATAL(fmt,...)
Definition: Error.h:63