|
Equilibria |
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--edu.davidson.chm.equilibria.Reaction
This class contains the stoichiometric description of a chemical reaction. Each reaction includes two or more species, at least one of which is a reactant and at least one of which is a product. A stoichiometric coefficient is associated with each species. A negative stoichiometric coefficient indicates the species is a reactant; a positive stoichiometric coefficient indicates the species is a product. An equilibrium constant must be supplied for each reaction.
Copyright (c) David N. Blauch
| Constructor Summary | |
Reaction()
This constructor should never be used. |
|
Reaction(Species[] _species,
double[] _coef,
double _K)
Constructs a Reaction based upon a list of species and their stoichiometric coefficients. |
|
Reaction(java.lang.String _label,
Species[] _species,
double[] _coef,
double _K)
Constructs a Reaction based upon a list of species and their stoichiometric coefficients. |
|
| Method Summary | |
Reaction |
copyOf(ChemSystem _chemSystem)
Returns a copy of the Reaction. |
double |
getCoefficient(Species _species)
Returns the stoichiometric coefficient of the given species. |
double |
getCoefficient(java.lang.String _label)
Returns the stoichiometric coefficient of the species with the given label. |
double[] |
getCoefficients()
Returns an array of the stoichiometric coefficients for the species in the reaction |
java.lang.String |
getEquation()
Returns a string representation of the reaction. |
protected int |
getIndex()
Returns the index of this reactions (used in Equilibria.class) |
java.lang.String |
getInfo()
Returns information about this class |
boolean |
getIsAuto()
Returns the isAuto property, which indicates whether this reaction is an autodissociation reaction |
boolean |
getIsHomogeneous()
Returns the isHomogeneous property, which indicates whether all reactants and products in the reaction exist in the same phase. |
protected boolean |
getIsValid()
Returns the isValid property |
double |
getK()
Returns the thermodynamic equilibrium constant at the reference temperature |
double |
getK(double _temperature)
Returns the equilibrium constant at the indicated temperature. |
java.lang.String |
getLabel()
Returns the label of the reaction |
int |
getNbrSpecies()
Returns the number of different species in the reaction |
Phase |
getPhase()
Returns the phase in which the reaction occurs. |
double |
getpK()
Returns pK for the reaction at the reference temperature |
double |
getpK(double _temperature)
Returns pK for the reaction at _temperature |
double |
getReferenceTemperature()
Returns the reference temperature for the equilibrium constant |
Species[] |
getSpecies()
Returns an array of the species involved in the reaction |
double[] |
getTemperatureDependence()
Returns an array containing the parameters a and b characterizing the temperature dependence of the Reaction |
boolean |
isEquivalent(Reaction _rxn)
Returns true if all ChemSpecies and stoichiometric coefficients and the equilibrium constant of the user-supplied Reaction are the same as this Reaction. |
protected void |
setIndex(int _index)
Sets the index of this reaction (used in Equilibria.class) |
void |
setIsAuto(boolean _isAuto)
Sets the isAuto property to identify autodissociation reactions |
protected void |
setIsValid(boolean _isValid)
Sets the isValid property |
void |
setK(double _K)
Sets the thermodynamic equilibrium constant at the reference temperature |
void |
setLabel(java.lang.String _label)
Sets the descriptive label for the reaction |
void |
setReferenceTemperature(double _temperature)
Sets the reference temperature, which is used to calculate the equilibrium constant at temperatures other than the reference temperature. |
void |
setTemperatureDependence(double _a,
double _b)
Sets the parameters controlling the temperature-dependence of the equilibrium constant. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Reaction()
public Reaction(Species[] _species,
double[] _coef,
double _K)
_species - array of species involved in reaction_coef - array of stoichiometric coefficients, negative for reactants and positive for products_K - reaction equilibrium constant at 298.15 K
public Reaction(java.lang.String _label,
Species[] _species,
double[] _coef,
double _K)
_species - array of species involved in reaction_coef - array of stoichiometric coefficients, negative for reactants and positive for products_K - reaction equilibrium constant at 298.15 K| Method Detail |
public Reaction copyOf(ChemSystem _chemSystem)
public double getCoefficient(Species _species)
public double getCoefficient(java.lang.String _label)
public double[] getCoefficients()
public java.lang.String getEquation()
public java.lang.String getInfo()
public boolean getIsAuto()
public boolean getIsHomogeneous()
public double getK()
public double getK(double _temperature)
_temperature - temperature in Kelvinpublic int getNbrSpecies()
public Phase getPhase()
getIsHomogeneous()public double getpK()
public double getpK(double _temperature)
_temperature - absolute temperaturepublic java.lang.String getLabel()
public double getReferenceTemperature()
public Species[] getSpecies()
public void setReferenceTemperature(double _temperature)
public void setTemperatureDependence(double _a,
double _b)
ln[K(T)/K] = a(1/T - 1/Tref) + b ln[T/Tref]
Tref is the reference temperature, which is 298.15 K by default
By default, a = b = 0, which produces a temperature-independent equilibrium constant.
public double[] getTemperatureDependence()
public boolean isEquivalent(Reaction _rxn)
public void setIsAuto(boolean _isAuto)
public void setK(double _K)
public void setLabel(java.lang.String _label)
protected int getIndex()
protected boolean getIsValid()
protected void setIndex(int _index)
protected void setIsValid(boolean _isValid)
|
Equilibria |
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||