|
Equilibria |
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--edu.davidson.chm.equilibria.Species
A Species object contains the information necessary to describe a chemical species
Copyright: Copyright (c) David N. Blauch
| Field Summary | |
protected double |
analMoles
|
protected ChemSpecies |
chemSpecies
|
protected ChemSystem |
chemSystem
|
protected double |
FW
|
protected int |
index
|
protected double |
IONSIZE
|
protected boolean |
isAcid
|
protected boolean |
isBase
|
protected boolean |
isReactive
|
protected boolean |
isSolvent
|
protected double |
moles
|
protected Phase |
phase
|
protected char |
PHYSSTATE
|
protected java.lang.String[] |
RESERVED
|
| Fields inherited from interface edu.davidson.chm.equilibria.PhysicalConstants |
F,
k,
No,
perm,
qe,
R,
RJ |
| Constructor Summary | |
Species()
The default constructor should never be used. |
|
Species(ChemSpecies _chemSpecies,
Phase _phase)
Creates a species consisting of the indicated ChemSpecies in the indicated Phase. |
|
Species(ChemSpecies _chemSpecies,
Phase _phase,
double _moles)
Creates a species consisting of the indicated ChemSpecies in the indicated Phase. |
|
| Method Summary | |
double |
getActivity()
Returns the activity of the species. |
double |
getActivityCoefficient()
Returns the activity coefficient for the species. |
double |
getAnalConc()
Returns the analytical concentration (mole/L) |
double |
getAnalMass()
Returns the analytical mass in grams |
double |
getAnalMoles()
Returns the analytical number of moles |
double |
getAnalPressure()
Returns the analytical partial pressure. |
double |
getCharge()
Returns the charge on the species. |
ChemSpecies |
getChemSpecies()
Returns the ChemSpecies for this Species. |
ChemSystem |
getChemSystem()
Returns the chemical system in which the species exists |
double |
getConc()
Returns the molar concentration. |
double |
getFW()
Returns the formula weight of the species |
protected int |
getIndex()
Returns the index of this Species (used in Equilibria.class) |
java.lang.String |
getInfo()
Returns information about this class |
double |
getIonSize()
Returns the Debye-Huckel ion size parameter in angstroms |
protected boolean |
getIsAcid()
Returns the isAcid property |
protected boolean |
getIsBase()
Returns the isBase property |
protected boolean |
getIsReactive()
Returns the isReactive status |
protected boolean |
getIsSolvent()
Returns the isSolvent status |
java.lang.String |
getLabel()
Returns the phase label |
double |
getMass()
Returns the mass in grams |
double |
getMoles()
Returns the moles of the species. |
Phase |
getPhase()
Returns the phase in which the species exists |
char |
getPhysicalState()
Returns the physical state of the species. |
double |
getPressure()
Returns the partial pressure of the species in atmospheres. |
boolean |
isEquivalent(Species _sp)
Returns true if the Species is equivalent to the user-supplied Species. |
void |
setAnalConc(double _analConc)
Sets the analytical concentration (moles/L). |
void |
setAnalMass(double _analMass)
Sets the analytical mass of the species |
void |
setAnalMoles(double _analMoles)
Sets the analytical number of moles. |
void |
setAnalPressure(double _analPressure)
Sets the analytical partial pressure in atmospheres. |
void |
setFW(double _fw)
Sets the formula weight of the species by calling the setFW method of the ChemSpecies. |
protected void |
setIndex(int _index)
Sets the index of this species (used in Equilibria.class) |
void |
setIonSize(double _ionSize)
Sets the Debye-Huckel ion size parameter in angstroms by calling the setIonSize method of the ChemSpecies. |
protected void |
setIsAcid(boolean _isAcid)
Sets the isAcid property |
protected void |
setIsBase(boolean _isBase)
Sets the isBase property |
protected void |
setIsReactive(boolean _isReactive)
Sets the isReactive status |
protected void |
setIsSolvent(boolean _isSolvent)
Sets the isSolvent status |
void |
setLabel(java.lang.String _label)
Sets the label for the species by calling the setLabel method of the ChemSpecies. |
protected void |
setMoles(double _moles)
Sets the number of moles of the species. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected final double FW
protected final char PHYSSTATE
protected final double IONSIZE
protected final java.lang.String[] RESERVED
protected ChemSpecies chemSpecies
protected Phase phase
protected ChemSystem chemSystem
protected boolean isSolvent
protected boolean isReactive
protected int index
protected boolean isAcid
protected boolean isBase
protected double moles
protected double analMoles
| Constructor Detail |
public Species()
public Species(ChemSpecies _chemSpecies,
Phase _phase)
public Species(ChemSpecies _chemSpecies,
Phase _phase,
double _moles)
_moles - amount of species| Method Detail |
public double getActivityCoefficient()
public double getActivity()
public double getAnalConc()
public double getAnalMass()
public double getAnalMoles()
public double getAnalPressure()
public double getCharge()
public ChemSpecies getChemSpecies()
public ChemSystem getChemSystem()
public double getConc()
public double getFW()
public java.lang.String getInfo()
public double getIonSize()
public java.lang.String getLabel()
public double getMass()
public double getMoles()
public Phase getPhase()
public char getPhysicalState()
s = solid (this must be the same as the phase and this species is the only species in the phase)
l = liquid (either the phase is a pure liquid, or this species is the solvent in a solution)
g = gas (this must be the same as the phase)
d = solute
public double getPressure()
Phase.getPressure(),
Gas.getPressure()public boolean isEquivalent(Species _sp)
public void setAnalConc(double _analConc)
public void setAnalMass(double _analMass)
public void setAnalMoles(double _analMoles)
public void setAnalPressure(double _analPressure)
public void setFW(double _fw)
ChemSpecies.setFW(double)public void setIonSize(double _ionSize)
ChemSpecies.setIonSize(double)public void setLabel(java.lang.String _label)
ChemSpecies.setLabel(java.lang.String)protected int getIndex()
protected boolean getIsAcid()
protected boolean getIsBase()
protected boolean getIsReactive()
protected boolean getIsSolvent()
protected void setIndex(int _index)
protected void setIsAcid(boolean _isAcid)
protected void setIsBase(boolean _isBase)
protected void setIsReactive(boolean _isReactive)
protected void setIsSolvent(boolean _isSolvent)
protected void setMoles(double _moles)
|
Equilibria |
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||