OGS
KineticReactant.cpp
Go to the documentation of this file.
1
11
#include "
KineticReactant.h
"
12
13
#include <ostream>
14
15
namespace
ChemistryLib
16
{
17
namespace
PhreeqcIOData
18
{
19
void
KineticReactant::print
(std::ostream& os,
20
std::size_t
const
chemical_system_id)
const
21
{
22
os <<
name
<<
"\n"
;
23
24
if
(!
chemical_formula
.empty())
25
{
26
os <<
"-formula "
<<
chemical_formula
<<
"\n"
;
27
}
28
29
os <<
"-m "
<< (*molality)[chemical_system_id] <<
"\n"
;
30
31
os <<
"-parms "
<< (*molality)[chemical_system_id];
32
for
(
auto
const
& parameter :
parameters
)
33
{
34
os <<
" "
<< parameter;
35
}
36
os <<
"\n"
;
37
}
38
const
ItemType
KineticReactant::item_type
;
39
}
// namespace PhreeqcIOData
40
}
// namespace ChemistryLib
KineticReactant.h
ChemistryLib::PhreeqcIOData::ItemType
ItemType
Definition
Output.h:60
ChemistryLib
Definition
ChemicalSolverInterface.h:31
ChemistryLib::PhreeqcIOData::KineticReactant::chemical_formula
std::string const chemical_formula
Definition
KineticReactant.h:51
ChemistryLib::PhreeqcIOData::KineticReactant::parameters
std::vector< double > const parameters
Definition
KineticReactant.h:57
ChemistryLib::PhreeqcIOData::KineticReactant::name
std::string const name
Definition
KineticReactant.h:50
ChemistryLib::PhreeqcIOData::KineticReactant::item_type
static const ItemType item_type
Definition
KineticReactant.h:59
ChemistryLib::PhreeqcIOData::KineticReactant::print
void print(std::ostream &os, std::size_t const chemical_system_id) const
Definition
KineticReactant.cpp:19
ChemistryLib
PhreeqcIOData
KineticReactant.cpp
Generated by
1.12.0