https://gitlab.opengeosys.org/ogs/ogs.git
Revision 9f84df9551259ffccabda55221a17212094b40ff authored by Lars Bilke on 17 June 2021, 13:01:27 UTC, committed by Lars Bilke on 23 June 2021, 06:20:59 UTC
1 parent 4396e2c
Raw File
Tip revision: 9f84df9551259ffccabda55221a17212094b40ff authored by Lars Bilke on 17 June 2021, 13:01:27 UTC
[coverage] genhtml fix for macOS.
Tip revision: 9f84df9
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