|
Equilibria |
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--edu.davidson.chm.equilibria.Phase
|
+--edu.davidson.chm.equilibria.Gas
This project contains the files necessary to solve arbitrary equilibrium problems
Copyright (c) David N. Blauch
| Fields inherited from class edu.davidson.chm.equilibria.Phase |
autoChargeBalance,
chemSystem,
density,
dielectricConstant,
isProtic,
label,
physState,
species,
volume |
| Constructor Summary | |
Gas()
|
|
Gas(java.lang.String _label,
ChemSystem _chemSystem)
The minimal requirements for defining a Gas phase are a descriptive label and the chemical system that contains the phase. |
|
| Method Summary | |
Phase |
copyOf(ChemSystem _chemSystem)
Creates a copy of this phase and places it in the indicated ChemSystem. |
Species |
getAcid()
Returns null, because there is no solvent or conjugate acid in this type of phase. |
Species |
getBase()
Returns null, because there is no solvent or conjugate base in this type of phase. |
double |
getDensity()
Returns the density of the gas. |
java.lang.String |
getInfo()
Returns information about this class |
double |
getIonicStrength()
Returns zero, because ionic strength has no meaning for this phase |
double |
getPressure()
Returns the pressure of the gas. |
double |
getPressure(double _moles,
double _volume)
Returns the pressure of a gas containing the indicated number of moles and the volume of the gas. |
Species |
getSolvent()
Returns null, because this phase has no solvent |
double |
getVolume()
Returns the volume of the gas. |
void |
scale(double _factor)
Scales the amount of the phase. |
void |
setDensity(double _density)
This method performs no action, because the density of a gas is dictated by the volume of the gas and the mass of the species in the gas. |
void |
setMass(double _mass)
This method performs no action, because the mass of a gas is dictated by the masses of each species in the gas and cannot be set globally. |
void |
setVolume(double _volume)
Sets the volume for the phase. |
| Methods inherited from class edu.davidson.chm.equilibria.Phase |
addSpecies,
addSpecies,
addSpecies,
createSpecies,
createSpecies,
getAutoChargeBalance,
getChemSystem,
getDielectricConstant,
getEDHEa,
getEDHEb,
getIsProtic,
getLabel,
getMass,
getMoles,
getNbrSpecies,
getpH,
getPhysicalState,
getpOH,
getSpecies,
getSpecies,
getSpecies,
getSpeciesAt,
removeSpecies,
removeSpecies,
setAutoChargeBalance,
setDielectricConstant,
setLabel |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Gas()
public Gas(java.lang.String _label,
ChemSystem _chemSystem)
| Method Detail |
public Phase copyOf(ChemSystem _chemSystem)
public Species getAcid()
public Species getBase()
public double getDensity()
public java.lang.String getInfo()
public double getPressure()
getVolume()
public double getPressure(double _moles,
double _volume)
_moles - moles of the gas-phase species_volume - volume of the gas in litersgetVolume()public double getIonicStrength()
public void scale(double _factor)
_factor - scaling factorpublic void setDensity(double _density)
_density - density in grams per milliliterpublic double getVolume()
getPressure()public void setMass(double _mass)
_mass - mass in gramspublic Species getSolvent()
public void setVolume(double _volume)
_vol - volume in liters
|
Equilibria |
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||