|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nist.microanalysis.EPQLibrary.Composition
gov.nist.microanalysis.EPQLibrary.Material
gov.nist.microanalysis.EPQLibrary.GasMixture
public class GasMixture
A GasMixture is a Material constructed from one or more Gases. The gases are assume to occupy the same volume and to obey the ideal gas law.
| Field Summary |
|---|
| Fields inherited from class gov.nist.microanalysis.EPQLibrary.Composition |
|---|
mHashCode, STOICIOMETRY, UNDETERMINED, WEIGHT_PCT |
| Constructor Summary | |
|---|---|
GasMixture(Gas[] gases,
double temp,
java.lang.String name)
Create a gas mixture from its constituent gases. |
|
| Method Summary | |
|---|---|
static GasMixture |
createAir(double pressure,
double temperature)
createAir - Creates a gas with nominally the same composition as the air we breath. |
double |
getPressure()
getPressure - returns the pressure (in pascal) |
double |
getTemperature()
getTemperature - Returns the temperature (in kelvin) |
void |
setTemperature(double newTemp)
setTemperature - Modifies the temperature of the gas and updates the pressure assuming constant volume. |
| Methods inherited from class gov.nist.microanalysis.EPQLibrary.Material |
|---|
atomsPerCubicMeter, clear, clone, compareTo, defineByMaterialFraction, defineByWeightFraction, descriptiveString, equals, getDensity, hashCode, renormalize, replicate, setDensity |
| Methods inherited from class gov.nist.microanalysis.EPQLibrary.Composition |
|---|
addElement, addElement, addElementByStoiciometry, containsElement, defineByMoleFraction, defineByWeightFraction, defineByWeightFraction, difference, elementSet, fromXML, getElementCount, getElementSet, getName, getNthElementByAtomicFraction, getNthElementByWeight, getOptimalRepresentation, massAbsorptionCoefficient, moleFraction, removeElement, replicate, setName, stoiciometryAvgAtomicNumber, sumWeightPercent, toString, toXML, weightAvgAtomicNumber, weightPercent |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GasMixture(Gas[] gases,
double temp,
java.lang.String name)
gases - A list of constituent gasestemp - The common temperature in kelvinname - The human friendly name for the gas| Method Detail |
|---|
public void setTemperature(double newTemp)
newTemp - In kelvinpublic double getTemperature()
public double getPressure()
public static GasMixture createAir(double pressure,
double temperature)
pressure - temperature -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||