|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.davidson.chm.equilibria.Phase
edu.davidson.chm.equilibria.Gas
public class Gas
This project contains the files necessary to solve arbitrary equilibrium problems
Copyright (c) David N. Blauch
| Field Summary |
|---|
| Fields inherited from class edu.davidson.chm.equilibria.Phase |
|---|
autoChargeBalance, chemSystem, density, dielectricConstant, isProtic, label, physState, species, volume |
| Fields inherited from interface edu.davidson.chm.equilibria.PhysicalConstants |
|---|
F, k, No, perm, qe, R, RJ |
| 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)
copyOf in class Phasepublic Species getAcid()
getAcid in class Phasepublic Species getBase()
getBase in class Phasepublic double getDensity()
getDensity in class Phasepublic java.lang.String getInfo()
getInfo in class Phasepublic double getPressure()
getPressure in class PhasegetVolume()
public double getPressure(double _moles,
double _volume)
getPressure in class Phase_moles - moles of the gas-phase species_volume - volume of the gas in litersgetVolume()public double getIonicStrength()
getIonicStrength in class Phasepublic void scale(double _factor)
Phase
scale in class Phase_factor - scaling factorpublic void setDensity(double _density)
setDensity in class Phase_density - density in grams per milliliterpublic double getVolume()
getVolume in class PhasegetPressure()public void setMass(double _mass)
setMass in class Phase_mass - mass in gramspublic Species getSolvent()
getSolvent in class Phasepublic void setVolume(double _volume)
setVolume in class Phase_volume - volume in liters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||