|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.davidson.chm.equilibria.HalfReaction
public class HalfReaction
This class contains the description of a half-reaction.
Copyright (c) David N. Blauch
| Field Summary |
|---|
| Fields inherited from interface edu.davidson.chm.equilibria.PhysicalConstants |
|---|
F, k, No, perm, qe, R, RJ |
| Constructor Summary | |
|---|---|
HalfReaction()
The default constructor should not be used. |
|
HalfReaction(Species[] _species,
double[] _coef,
double _Eo,
double _nEquiv,
Phase _phase)
Constructs a HalfReaction based upon a list of species and their stoichiometric coefficients. |
|
HalfReaction(java.lang.String _label,
Species[] _species,
double[] _coef,
double _Eo,
double _nEquiv,
Phase _phase)
Constructs a HalfReaction based upon a list of species and their stoichiometric coefficients. |
|
| Method Summary | |
|---|---|
HalfReaction |
copyOf(ChemSystem _chemSystem)
Returns a copy of the HalfReaction. |
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 half-reaction. |
double |
getEquivalents()
Returns the number of equivalents (n) |
java.lang.String |
getInfo()
Returns information about this class |
java.lang.String |
getLabel()
Returns the label for the half-reaction |
Phase |
getPhase()
Returns the phase of the electrode |
double |
getPotential()
Returns the potential in volts for the half-reaction using the current activities of the reactants and products. |
double |
getReferenceTemperature()
Returns the reference temperature for the standard potential |
Species[] |
getSpecies()
Returns an array of the species involved in the reaction |
double |
getStandardPotential()
Returns the standard potential in volts for the half-reaction at the reference potential |
double |
getStandardPotential(double _temperature)
Returns the standard potential in volts for the half-reaction at the indicated temperature |
double[] |
getTemperatureDependence()
Returns an array containing the parameters a, b, and c characterizing the temperature dependence of the HalfReaction |
void |
setReferenceTemperature(double _temperature)
Sets the reference temperature (in Kelvin) |
void |
setStandardPotential(double _Eo)
Sets the standard potential at the reference temperature |
void |
setTemperatureDependence(double _a,
double _b,
double _c)
Sets the parameters used to determine the temperature-dependence of the standard potential. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HalfReaction()
public HalfReaction(java.lang.String _label,
Species[] _species,
double[] _coef,
double _Eo,
double _nEquiv,
Phase _phase)
_species - array of species involved in reaction_coef - array of stoichiometric coefficients, negative for reactants and positive for products_Eo - standard potential at 298.15 K_nEquiv - number of equivalents_phase - electrode phase
public HalfReaction(Species[] _species,
double[] _coef,
double _Eo,
double _nEquiv,
Phase _phase)
_species - array of species involved in reaction_coef - array of stoichiometric coefficients, negative for reactants and positive for products_Eo - standard potential at 298.15 K_nEquiv - number of equivalents_phase - electrode phase| Method Detail |
|---|
public HalfReaction copyOf(ChemSystem _chemSystem)
public double getCoefficient(Species _species)
public double getCoefficient(java.lang.String _label)
public double[] getCoefficients()
public java.lang.String getEquation()
public double getEquivalents()
public java.lang.String getInfo()
public java.lang.String getLabel()
public Phase getPhase()
public double getPotential()
public double getReferenceTemperature()
public Species[] getSpecies()
public double getStandardPotential()
public double getStandardPotential(double _temperature)
_temperature - absolute temperaturepublic double[] getTemperatureDependence()
public void setReferenceTemperature(double _temperature)
public void setStandardPotential(double _Eo)
public void setTemperatureDependence(double _a,
double _b,
double _c)
E = Er + t (a + t ( b + t c))
where E is the standard potential at temperature T, Er is the standard potential at the reference temperature (Tref), t = T - Tref, and a, b, and c are the parameters set by this method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||