https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Namespaces | Enumerations | Functions
GeochemistryUnitConverter.h File Reference

Go to the source code of this file.

Namespaces

namespace  GeochemistryUnitConverter
 Utilities to convert to and from mole units.
 

Enumerations

enum class  GeochemistryUnitConverter::GeochemistryUnit {
  GeochemistryUnitConverter::DIMENSIONLESS , GeochemistryUnitConverter::MOLES , GeochemistryUnitConverter::MOLAL , GeochemistryUnitConverter::KG ,
  GeochemistryUnitConverter::G , GeochemistryUnitConverter::MG , GeochemistryUnitConverter::UG , GeochemistryUnitConverter::KG_PER_KG_SOLVENT ,
  GeochemistryUnitConverter::G_PER_KG_SOLVENT , GeochemistryUnitConverter::MG_PER_KG_SOLVENT , GeochemistryUnitConverter::UG_PER_KG_SOLVENT , GeochemistryUnitConverter::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.
 
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.
 
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.