https://mooseframework.inl.gov
Namespaces | Enumerations | Functions
GeochemistryUnitConverter.h File Reference

Go to the source code of this file.

Namespaces

 GeochemistryUnitConverter
 Utilities to convert to and from mole units.
 

Enumerations

enum  GeochemistryUnitConverter::GeochemistryUnit {
  GeochemistryUnitConverter::GeochemistryUnit::DIMENSIONLESS, GeochemistryUnitConverter::GeochemistryUnit::MOLES, GeochemistryUnitConverter::GeochemistryUnit::MOLAL, GeochemistryUnitConverter::GeochemistryUnit::KG,
  GeochemistryUnitConverter::GeochemistryUnit::G, GeochemistryUnitConverter::GeochemistryUnit::MG, GeochemistryUnitConverter::GeochemistryUnit::UG, GeochemistryUnitConverter::GeochemistryUnit::KG_PER_KG_SOLVENT,
  GeochemistryUnitConverter::GeochemistryUnit::G_PER_KG_SOLVENT, GeochemistryUnitConverter::GeochemistryUnit::MG_PER_KG_SOLVENT, GeochemistryUnitConverter::GeochemistryUnit::UG_PER_KG_SOLVENT, GeochemistryUnitConverter::GeochemistryUnit::CM3
}
 

Functions

Real GeochemistryUnitConverter::fromMoles (Real moles, const GeochemistryUnit unit, const std::string &species_name, const ModelGeochemicalDatabase &mgd)
 Calculates the amount of "unit"s of species_name in 1 mole, OR in 1 molal, whichever is appropriate. More...
 
Real GeochemistryUnitConverter::toMoles (Real quantity, const GeochemistryUnit unit, const std::string &species_name, const ModelGeochemicalDatabase &mgd)
 Calculates the amount of moles corresponding to "quantity" "unit"s of species name, OR calculates the molality corresponding to "quantity" "unit"s of species name, whichever is appropriate. More...
 
Real GeochemistryUnitConverter::conversionFactor (const GeochemistryUnit unit, unsigned ind, const std::string &name, const std::vector< Real > &mol_weight, const std::vector< Real > &mol_volume, const std::vector< bool > &is_mineral)
 Calculates the number of "unit" in 1 mole of substance, OR calculates the number of "unit" in 1 molal of substance, whichever is appropriate. More...