https://mooseframework.inl.gov
Loading...
Searching...
No Matches
GeochemistryIonicStrength.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
13
18{
19public:
34 GeochemistryIonicStrength(Real max_ionic_strength,
35 Real max_stoichiometric_ionic_strength,
36 bool use_only_basis_molality,
37 bool use_only_Cl_molality);
38
46
56 const std::vector<Real> & basis_species_molality,
57 const std::vector<Real> & eqm_species_molality,
58 const std::vector<Real> & kin_species_molality) const;
59
69 const std::vector<Real> & basis_species_molality,
70 const std::vector<Real> & eqm_species_molality,
71 const std::vector<Real> & kin_species_molality) const;
72
74 void setMaxIonicStrength(Real max_ionic_strength);
75
77 Real getMaxIonicStrength() const;
78
80 void setMaxStoichiometricIonicStrength(Real max_stoichiometric_ionic_strength);
81
84
86 void setUseOnlyBasisMolality(bool use_only_basis_molality);
87
89 Real getUseOnlyBasisMolality() const;
90
92 void setUseOnlyClMolality(bool use_only_Cl_molality);
93
95 Real getUseOnlyClMolality() const;
96
97private:
100
103
106
109};
const ModelGeochemicalDatabase mgd
Calculators to compute ionic strength and stoichiometric ionic strength.
Real _max_ionic_strength
maximum ionic strength
Real stoichiometricIonicStrength(const ModelGeochemicalDatabase &mgd, const std::vector< Real > &basis_species_molality, const std::vector< Real > &eqm_species_molality, const std::vector< Real > &kin_species_molality) const
Compute stoichiometric ionic strength.
bool operator==(const GeochemistryIonicStrength &rhs) const
void setUseOnlyBasisMolality(bool use_only_basis_molality)
Set the value of use_only_basis_molality.
Real getMaxIonicStrength() const
Return the value of maximum ionic strength.
Real getMaxStoichiometricIonicStrength() const
Return the value of maximum stoichiometric ionic strength.
bool _use_only_basis_molality
use only basis molality in the ionic strength calculations
Real ionicStrength(const ModelGeochemicalDatabase &mgd, const std::vector< Real > &basis_species_molality, const std::vector< Real > &eqm_species_molality, const std::vector< Real > &kin_species_molality) const
Compute ionic strength.
Real getUseOnlyClMolality() const
Return the value of use_only_Cl_molality.
void setUseOnlyClMolality(bool use_only_Cl_molality)
Set the value of use_only_Cl_molality.
void setMaxStoichiometricIonicStrength(Real max_stoichiometric_ionic_strength)
Set the maximum stoichiometric ionic strength.
Real getUseOnlyBasisMolality() const
Return the value of use_only_basis_molality.
void setMaxIonicStrength(Real max_ionic_strength)
Set the maximum ionic strength.
bool _use_only_Cl_molality
set the stoichiometric ionic strength to the Cl- molality
Real _max_stoichiometric_ionic_strength
maximum stoichiometric ionic strength
Data structure to hold all relevant information from the database file.