chemmisol 0.1
|
#include <species.h>
Public Member Functions | |
void | incrementConcentration (double) override |
double | concentration () const override |
double | concentration (double) const override |
double | quantity (double) const override |
std::complex< double > | quantity (std::complex< double >) const override |
double | activity (double) const override |
void | setActivity (double) override |
Public Member Functions inherited from chemmisol::ChemicalSpecies | |
const std::string & | getName () const |
std::size_t | getIndex () const |
virtual Phase | getPhase () const =0 |
double | activity () const |
double | quantity () const |
Protected Member Functions | |
FixedChemicalSpecies (const std::string &name, std::size_t index, double C, double A, double Q) | |
Protected Member Functions inherited from chemmisol::ChemicalSpecies | |
ChemicalSpecies (const std::string &name, std::size_t index) | |
ChemicalSpecies implementation for a species with fixed quantity, activity and concentration in the chemical system.
The quantity, activity and concentration of such species will never change for any reaction process. This does not mean that a reaction with a fixed reagent cannot process, but that the fixed activity is always used in the reaction quotient computation for any extent of the reaction.
Notice that only components can be fixed within a ChemicalSystem: FixedChemicalSpecies are supposed to be associated to FixedChemicalComponent.
|
inlineprotected |
FixedChemicalSpecies constructor.
Even if the quantity, activity and concentration must be manually specified in the FixedChemicalSpecies constructor, they are generally bound according to physical laws. Such rules depends on the nature of the species and are implemented in Solvent, FixedAqueousSpecies or FixedMineralSpecies subclasses.
name | Name of the fixed species |
index | Index used to retrieve the species in data structures used internally by the ChemicalSystem. The index can also be used to uniquely identify each species of a system. |
C | Fixed concentration |
A | Fixed activity |
Q | Fixed quantity |
|
inlineoverridevirtual |
This method has no effect for a fixed component: the fixed concentration is not changed.
Implements chemmisol::ChemicalSpecies.
|
inlineoverridevirtual |
Returns the fixed concentration of this chemical species.
Implements chemmisol::ChemicalSpecies.
|
inlineoverridevirtual |
Returns the fixed concentration of this chemical species, ignoring the provided quantity.
Implements chemmisol::ChemicalSpecies.
|
inlineoverridevirtual |
Returns the fixed quantity of this chemical species, ignoring the provided activity.
Implements chemmisol::ChemicalSpecies.
|
inlineoverridevirtual |
Implements chemmisol::ChemicalSpecies.
|
inlineoverridevirtual |
Returns the fixed activity of this chemical species, ignoring the provided concentration.
Implements chemmisol::ChemicalSpecies.
|
inlineoverridevirtual |
This method has no effect for a fixed component: the fixed activity is not changed.
Implements chemmisol::ChemicalSpecies.