https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: 796a2c62922cd4f7295623c3d85ea308bb20a244 authored by Wenqing Wang on 15 March 2021, 15:36:12 UTC
[CodeSpell] Added a word of Ket to ignore-words-list
Tip revision: 796a2c6
Reaction.h
/**
 * \file
 * \copyright
 * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 */

#pragma once

#include <memory>

namespace BaseLib { class ConfigTree; }

namespace Adsorption
{

class Reaction
{
public:
    static std::unique_ptr<Reaction> newInstance(
        BaseLib::ConfigTree const& conf);

    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;

    // TODO get rid of
    virtual double getEquilibriumLoading(const double /*unused*/,
                                         const double /*unused*/,
                                         const double /*unused*/) const
    {
        return -1.0;
    }

    virtual ~Reaction() = default;
};

}  // namespace Adsorption
back to top