OGS
KineticReactant.h
Go to the documentation of this file.
1
11
#pragma once
12
13
#include <phreeqcpp/cxxKinetics.h>
14
15
#include <string>
16
#include <vector>
17
18
namespace
ChemistryLib
19
{
20
namespace
PhreeqcKernelData
21
{
22
class
KineticReactant
final :
private
cxxKineticsComp
23
{
24
public
:
25
KineticReactant
(std::string name,
double
const
initial_amount);
26
27
cxxKineticsComp
const
*
castToBaseClass
()
const
28
{
29
return
static_cast<
cxxKineticsComp const*
>
(
this
);
30
}
31
};
32
33
class
Kinetics
final :
private
cxxKinetics
34
{
35
public
:
36
explicit
Kinetics
(std::vector<KineticReactant>
const
& kinetic_reactants);
37
38
void
setChemicalSystemID
(std::size_t
const
chemical_system_id)
39
{
40
Set_n_user_both(chemical_system_id);
41
}
42
43
cxxKinetics
const
*
castToBaseClass
()
const
44
{
45
return
static_cast<
cxxKinetics const*
>
(
this
);
46
}
47
};
48
}
// namespace PhreeqcKernelData
49
}
// namespace ChemistryLib
ChemistryLib::PhreeqcKernelData::KineticReactant
Definition
KineticReactant.h:23
ChemistryLib::PhreeqcKernelData::KineticReactant::KineticReactant
KineticReactant(std::string name, double const initial_amount)
Definition
KineticReactant.cpp:19
ChemistryLib::PhreeqcKernelData::KineticReactant::castToBaseClass
cxxKineticsComp const * castToBaseClass() const
Definition
KineticReactant.h:27
ChemistryLib::PhreeqcKernelData::Kinetics
Definition
KineticReactant.h:34
ChemistryLib::PhreeqcKernelData::Kinetics::castToBaseClass
cxxKinetics const * castToBaseClass() const
Definition
KineticReactant.h:43
ChemistryLib::PhreeqcKernelData::Kinetics::Kinetics
Kinetics(std::vector< KineticReactant > const &kinetic_reactants)
Definition
KineticReactant.cpp:27
ChemistryLib::PhreeqcKernelData::Kinetics::setChemicalSystemID
void setChemicalSystemID(std::size_t const chemical_system_id)
Definition
KineticReactant.h:38
ChemistryLib
Definition
ChemicalSolverInterface.h:31
ChemistryLib
PhreeqcKernelData
KineticReactant.h
Generated by
1.12.0