https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: 80a6d1a2cf8cfd4e222c6fd1909e09da980be2c0 authored by Wenqing Wang on 05 July 2021, 15:50:14 UTC
[web/benchmark] Added the missed {{< data-link >}} in one project file.
Tip revision: 80a6d1a
KineticReactant.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 <phreeqcpp/cxxKinetics.h>

#include <string>
#include <vector>

namespace ChemistryLib
{
namespace PhreeqcKernelData
{
class KineticReactant final : private cxxKineticsComp
{
public:
    KineticReactant(std::string const& name, double const initial_amount);

    cxxKineticsComp const* castToBaseClass() const
    {
        return static_cast<cxxKineticsComp const*>(this);
    }
};

class Kinetics final : private cxxKinetics
{
public:
    explicit Kinetics(std::vector<KineticReactant> const& kinetic_reactants);

    void setChemicalSystemID(std::size_t const chemical_system_id)
    {
        Set_n_user_both(chemical_system_id);
    }

    cxxKinetics const* castToBaseClass() const
    {
        return static_cast<cxxKinetics const*>(this);
    }
};
}  // namespace PhreeqcKernelData
}  // namespace ChemistryLib
back to top