OGS
PhreeqcKernelData/ReactionRate.cpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2
// SPDX-License-Identifier: BSD-3-Clause
3
4
#include "
ReactionRate.h
"
5
6
namespace
ChemistryLib
7
{
8
namespace
PhreeqcKernelData
9
{
10
ReactionRate::ReactionRate
(std::string kinetic_reactant_,
11
std::vector<std::string>
const
& statements)
12
:
kinetic_reactant
(std::move(kinetic_reactant_))
13
{
14
int
line_number = 1;
15
for
(
auto
const
& statement : statements)
16
{
17
_commands
+= std::to_string(line_number) +
" "
+ statement +
"; "
;
18
++line_number;
19
}
20
}
21
}
// namespace PhreeqcKernelData
22
}
// namespace ChemistryLib
ReactionRate.h
ChemistryLib::PhreeqcKernelData::ReactionRate::_commands
std::string _commands
Definition
PhreeqcKernelData/ReactionRate.h:25
ChemistryLib::PhreeqcKernelData::ReactionRate::kinetic_reactant
std::string const kinetic_reactant
Definition
PhreeqcKernelData/ReactionRate.h:22
ChemistryLib::PhreeqcKernelData::ReactionRate::ReactionRate
ReactionRate(std::string kinetic_reactant_, std::vector< std::string > const &statements)
Definition
PhreeqcKernelData/ReactionRate.cpp:10
ChemistryLib::PhreeqcKernelData
Definition
PhreeqcKernel.cpp:18
ChemistryLib
Definition
ChemicalSolverInterface.h:108
ChemistryLib
PhreeqcKernelData
ReactionRate.cpp
Generated by
1.14.0