Class ChemicalSpecies

java.lang.Object
ummisco.gama.chemmisol.ChemicalEntity
ummisco.gama.chemmisol.ChemicalSpecies

public class ChemicalSpecies extends ChemicalEntity
Represents a chemical species living in a chemical system.

A chemical species is an entity that represents an actual entity within a chemical system, associated to a concentration. The interpretation of the concentration depends on the phase of the species (mol/l for aqueous species, molar fraction for mineral species).

  • Constructor Details

    • ChemicalSpecies

      public ChemicalSpecies(String name, Phase phase)
      Initializes a ChemicalSpecies with an initial null concentration.
      Parameters:
      name - Name of the chemical species.
      phase - Phase of the chemical species.
  • Method Details

    • getConcentration

      public double getConcentration()
      Gets the current concentration of this chemical species.
      Returns:
      concentration of the chemical species
    • setConcentration

      public void setConcentration(double concentration)
      Sets the current concentration of the chemical species.
      Parameters:
      concentration - concentration of the chemical species