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
8namespace ChemistryLib
9{
10namespace PhreeqcIOData
11{
12void 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}
32} // namespace PhreeqcIOData
33} // namespace ChemistryLib
ItemType
Category used to interpret a PHREEQC output column.
void print(std::ostream &os, std::size_t const chemical_system_id) const