OGS
PhreeqcIOData/KineticReactant.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 "
KineticReactant.h
"
5
6
#include <ostream>
7
8
namespace
ChemistryLib
9
{
10
namespace
PhreeqcIOData
11
{
12
void
KineticReactant::print
(std::ostream& os,
13
std::size_t
const
chemical_system_id)
const
14
{
15
os <<
name
<<
"\n"
;
16
17
if
(!
chemical_formula
.empty())
18
{
19
os <<
"-formula "
<<
chemical_formula
<<
"\n"
;
20
}
21
22
os <<
"-m "
<< (*molality)[chemical_system_id] <<
"\n"
;
23
24
os <<
"-parms "
<< (*molality)[chemical_system_id];
25
for
(
auto
const
& parameter :
parameters
)
26
{
27
os <<
" "
<< parameter;
28
}
29
os <<
"\n"
;
30
}
31
const
ItemType
KineticReactant::item_type
;
32
}
// namespace PhreeqcIOData
33
}
// namespace ChemistryLib
KineticReactant.h
ChemistryLib::PhreeqcIOData
Definition
PhreeqcIO.cpp:35
ChemistryLib::PhreeqcIOData::ItemType
ItemType
Category used to interpret a PHREEQC output column.
Definition
ChemistryLib/PhreeqcIOData/Output.h:72
ChemistryLib
Definition
ChemicalSolverInterface.h:108
ChemistryLib::PhreeqcIOData::KineticReactant::chemical_formula
std::string const chemical_formula
Definition
PhreeqcIOData/KineticReactant.h:44
ChemistryLib::PhreeqcIOData::KineticReactant::parameters
std::vector< double > const parameters
Definition
PhreeqcIOData/KineticReactant.h:50
ChemistryLib::PhreeqcIOData::KineticReactant::name
std::string const name
Definition
PhreeqcIOData/KineticReactant.h:43
ChemistryLib::PhreeqcIOData::KineticReactant::item_type
static const ItemType item_type
Definition
PhreeqcIOData/KineticReactant.h:52
ChemistryLib::PhreeqcIOData::KineticReactant::print
void print(std::ostream &os, std::size_t const chemical_system_id) const
Definition
PhreeqcIOData/KineticReactant.cpp:12
ChemistryLib
PhreeqcIOData
KineticReactant.cpp
Generated by
1.14.0