OGS
ChemistryLib::PhreeqcIOData::AqueousSolution Struct Reference

Detailed Description

Definition at line 74 of file PhreeqcIOData/AqueousSolution.h.

#include <AqueousSolution.h>

Collaboration diagram for ChemistryLib::PhreeqcIOData::AqueousSolution:
[legend]

Public Member Functions

 AqueousSolution (bool const fixing_pe_, double temperature_, double pressure_, MeshLib::PropertyVector< double > *pe_, double const pe0_, std::vector< Component > &&components_, ChargeBalance charge_balance_)
void print (std::ostream &os, std::size_t const chemical_system_id) const

Public Attributes

bool const fixing_pe
double const temperature
double const pressure
std::unique_ptr< GlobalVectorpH
MeshLib::PropertyVector< double > * pe
double const pe0
std::vector< Componentcomponents
ChargeBalance const charge_balance

Constructor & Destructor Documentation

◆ AqueousSolution()

ChemistryLib::PhreeqcIOData::AqueousSolution::AqueousSolution ( bool const fixing_pe_,
double temperature_,
double pressure_,
MeshLib::PropertyVector< double > * pe_,
double const pe0_,
std::vector< Component > && components_,
ChargeBalance charge_balance_ )
inline

Member Function Documentation

◆ print()

void ChemistryLib::PhreeqcIOData::AqueousSolution::print ( std::ostream & os,
std::size_t const chemical_system_id ) const

Definition at line 17 of file PhreeqcIOData/AqueousSolution.cpp.

19{
20 os << "temp " << temperature << "\n";
21
22 os << "pressure " << pressure << "\n";
23
25 switch (charge_balance)
26 {
28 os << "pH " << -std::log10((*pH)[chemical_system_id]) << " charge"
29 << "\n";
30 os << "pe " << (*pe)[chemical_system_id] << "\n";
31 break;
33 os << "pH " << -std::log10((*pH)[chemical_system_id]) << "\n";
34 os << "pe " << (*pe)[chemical_system_id] << " charge"
35 << "\n";
36 break;
38 os << "pH " << -std::log10((*pH)[chemical_system_id]) << "\n";
39 os << "pe " << (*pe)[chemical_system_id] << "\n";
40 break;
41 }
42
43 os << "units mol/kgw\n";
44
45 for (auto const& component : components)
46 {
48 os << component.name << " " << (*component.amount)[chemical_system_id];
49 component.chemical_formula.empty()
50 ? os << "\n"
51 : os << " as " << component.chemical_formula << "\n";
52 }
53
54 os << "\n\n";
55}
void setLocalAccessibleVector(PETScVector const &x)
Definition LinAlg.cpp:20

References charge_balance, components, ChemistryLib::pe, ChemistryLib::pH, pH, pressure, MathLib::LinAlg::setLocalAccessibleVector(), temperature, and ChemistryLib::Unspecified.

Member Data Documentation

◆ charge_balance

ChargeBalance const ChemistryLib::PhreeqcIOData::AqueousSolution::charge_balance

Definition at line 101 of file PhreeqcIOData/AqueousSolution.h.

Referenced by AqueousSolution(), and print().

◆ components

std::vector<Component> ChemistryLib::PhreeqcIOData::AqueousSolution::components

◆ fixing_pe

bool const ChemistryLib::PhreeqcIOData::AqueousSolution::fixing_pe

When this option is enabled, the pe value will be fixed over time by adding or removing atmospheric oxygen.

Definition at line 94 of file PhreeqcIOData/AqueousSolution.h.

Referenced by AqueousSolution().

◆ pe

MeshLib::PropertyVector<double>* ChemistryLib::PhreeqcIOData::AqueousSolution::pe

Definition at line 98 of file PhreeqcIOData/AqueousSolution.h.

Referenced by AqueousSolution().

◆ pe0

double const ChemistryLib::PhreeqcIOData::AqueousSolution::pe0

Definition at line 99 of file PhreeqcIOData/AqueousSolution.h.

Referenced by AqueousSolution().

◆ pH

std::unique_ptr<GlobalVector> ChemistryLib::PhreeqcIOData::AqueousSolution::pH

◆ pressure

double const ChemistryLib::PhreeqcIOData::AqueousSolution::pressure

Definition at line 96 of file PhreeqcIOData/AqueousSolution.h.

Referenced by AqueousSolution(), and print().

◆ temperature

double const ChemistryLib::PhreeqcIOData::AqueousSolution::temperature

Definition at line 95 of file PhreeqcIOData/AqueousSolution.h.

Referenced by AqueousSolution(), and print().


The documentation for this struct was generated from the following files: