OGS
ChemistryLib::PhreeqcIOData::EquilibriumReactant Struct Reference

Detailed Description

Definition at line 29 of file EquilibriumReactant.h.

#include <EquilibriumReactant.h>

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

Public Member Functions

 EquilibriumReactant (std::string name_, 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_, double saturation_index_, std::string reaction_irreversibility_)
 
void print (std::ostream &os, std::size_t const chemical_system_id) const
 

Public Attributes

std::string const name
 
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
 
double const saturation_index
 
std::string const reaction_irreversibility
 

Static Public Attributes

static const ItemType item_type = ItemType::EquilibriumReactant
 

Constructor & Destructor Documentation

◆ EquilibriumReactant()

ChemistryLib::PhreeqcIOData::EquilibriumReactant::EquilibriumReactant ( std::string name_,
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_,
double saturation_index_,
std::string reaction_irreversibility_ )
inline

Definition at line 31 of file EquilibriumReactant.h.

39 : name(std::move(name_)),
40 molality(molality_),
41 molality_prev(molality_prev_),
42 volume_fraction(volume_fraction_),
43 volume_fraction_prev(volume_fraction_prev_),
44 mesh_prop_molality(mesh_prop_molality_),
45 saturation_index(saturation_index_),
46 reaction_irreversibility(std::move(reaction_irreversibility_))
47 {
48 }
MeshLib::PropertyVector< double > * volume_fraction_prev
MeshLib::PropertyVector< double > * molality
MeshLib::PropertyVector< double > * molality_prev
MeshLib::PropertyVector< double > * mesh_prop_molality
MeshLib::PropertyVector< double > * volume_fraction

Member Function Documentation

◆ print()

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

Definition at line 19 of file EquilibriumReactant.cpp.

21{
22 os << name << " " << saturation_index << " "
23 << (*molality)[chemical_system_id] << " " << reaction_irreversibility
24 << "\n";
25}

References name, reaction_irreversibility, and saturation_index.

Member Data Documentation

◆ item_type

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

Definition at line 60 of file EquilibriumReactant.h.

◆ mesh_prop_molality

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

Definition at line 57 of file EquilibriumReactant.h.

◆ molality

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

Definition at line 53 of file EquilibriumReactant.h.

◆ molality_prev

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

Definition at line 54 of file EquilibriumReactant.h.

◆ name

std::string const ChemistryLib::PhreeqcIOData::EquilibriumReactant::name

Definition at line 52 of file EquilibriumReactant.h.

Referenced by print().

◆ reaction_irreversibility

std::string const ChemistryLib::PhreeqcIOData::EquilibriumReactant::reaction_irreversibility

Definition at line 59 of file EquilibriumReactant.h.

Referenced by print().

◆ saturation_index

double const ChemistryLib::PhreeqcIOData::EquilibriumReactant::saturation_index

Definition at line 58 of file EquilibriumReactant.h.

Referenced by print().

◆ volume_fraction

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

Definition at line 55 of file EquilibriumReactant.h.

◆ volume_fraction_prev

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

Definition at line 56 of file EquilibriumReactant.h.


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