OGS
ChemistryLib::PhreeqcIOData::KineticReactant Struct Reference

Detailed Description

Definition at line 25 of file KineticReactant.h.

#include <KineticReactant.h>

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

Public Member Functions

 KineticReactant (std::string name_, std::string chemical_formula_, MeshLib::PropertyVector< double > *molality_, MeshLib::PropertyVector< double > *molality_prev_, MeshLib::PropertyVector< double > *volume_fraction_, MeshLib::PropertyVector< double > *volume_fraction_prev_, MeshLib::PropertyVector< double > *mesh_prop_molality_, std::vector< double > &&parameters_, bool const fix_amount_)
 
void print (std::ostream &os, std::size_t const chemical_system_id) const
 

Public Attributes

std::string const name
 
std::string const chemical_formula
 
MeshLib::PropertyVector< double > * molality
 
MeshLib::PropertyVector< double > * molality_prev
 
MeshLib::PropertyVector< double > * volume_fraction
 
MeshLib::PropertyVector< double > * volume_fraction_prev
 
MeshLib::PropertyVector< double > * mesh_prop_molality
 
std::vector< double > const parameters
 
bool const fix_amount
 

Static Public Attributes

static const ItemType item_type = ItemType::KineticReactant
 

Constructor & Destructor Documentation

◆ KineticReactant()

ChemistryLib::PhreeqcIOData::KineticReactant::KineticReactant ( std::string name_,
std::string chemical_formula_,
MeshLib::PropertyVector< double > * molality_,
MeshLib::PropertyVector< double > * molality_prev_,
MeshLib::PropertyVector< double > * volume_fraction_,
MeshLib::PropertyVector< double > * volume_fraction_prev_,
MeshLib::PropertyVector< double > * mesh_prop_molality_,
std::vector< double > && parameters_,
bool const fix_amount_ )
inline

Definition at line 27 of file KineticReactant.h.

36 : name(std::move(name_)),
37 chemical_formula(std::move(chemical_formula_)),
38 molality(molality_),
39 molality_prev(molality_prev_),
40 volume_fraction(volume_fraction_),
41 volume_fraction_prev(volume_fraction_prev_),
42 mesh_prop_molality(mesh_prop_molality_),
43 parameters(std::move(parameters_)),
44 fix_amount(fix_amount_)
45 {
46 }
MeshLib::PropertyVector< double > * volume_fraction_prev
MeshLib::PropertyVector< double > * molality_prev
MeshLib::PropertyVector< double > * volume_fraction
MeshLib::PropertyVector< double > * mesh_prop_molality
MeshLib::PropertyVector< double > * molality

Member Function Documentation

◆ print()

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

Definition at line 19 of file KineticReactant.cpp.

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}

References chemical_formula, name, and parameters.

Member Data Documentation

◆ chemical_formula

std::string const ChemistryLib::PhreeqcIOData::KineticReactant::chemical_formula

Definition at line 51 of file KineticReactant.h.

Referenced by print().

◆ fix_amount

bool const ChemistryLib::PhreeqcIOData::KineticReactant::fix_amount

Definition at line 58 of file KineticReactant.h.

◆ item_type

const ItemType ChemistryLib::PhreeqcIOData::KineticReactant::item_type = ItemType::KineticReactant
static

Definition at line 59 of file KineticReactant.h.

◆ mesh_prop_molality

MeshLib::PropertyVector<double>* ChemistryLib::PhreeqcIOData::KineticReactant::mesh_prop_molality

Definition at line 56 of file KineticReactant.h.

◆ molality

MeshLib::PropertyVector<double>* ChemistryLib::PhreeqcIOData::KineticReactant::molality

Definition at line 52 of file KineticReactant.h.

◆ molality_prev

MeshLib::PropertyVector<double>* ChemistryLib::PhreeqcIOData::KineticReactant::molality_prev

Definition at line 53 of file KineticReactant.h.

◆ name

std::string const ChemistryLib::PhreeqcIOData::KineticReactant::name

Definition at line 50 of file KineticReactant.h.

Referenced by print().

◆ parameters

std::vector<double> const ChemistryLib::PhreeqcIOData::KineticReactant::parameters

Definition at line 57 of file KineticReactant.h.

Referenced by print().

◆ volume_fraction

MeshLib::PropertyVector<double>* ChemistryLib::PhreeqcIOData::KineticReactant::volume_fraction

Definition at line 54 of file KineticReactant.h.

◆ volume_fraction_prev

MeshLib::PropertyVector<double>* ChemistryLib::PhreeqcIOData::KineticReactant::volume_fraction_prev

Definition at line 55 of file KineticReactant.h.


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