edu.davidson.chm.equilibria
Class Liquid

java.lang.Object
  extended by edu.davidson.chm.equilibria.Phase
      extended by edu.davidson.chm.equilibria.Liquid
All Implemented Interfaces:
PhysicalConstants

public class Liquid
extends Phase

This project contains the files necessary to solve arbitrary equilibrium problems

Copyright (c) David N. Blauch

Version:
1.1
Author:
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
Liquid()
           
Liquid(java.lang.String _label, ChemSystem _chemSystem, ChemSpecies _chemSpecies)
          The minimal requirements for defining a Liquid phase are a descriptive label, the chemical system containing the phase, and the chemical species the constitutes the liquid.
 
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.
 java.lang.String getInfo()
          Returns information about this class
 double getIonicStrength()
          Returns zero, because ionic strength has no meaning for this phase
 double getMass()
          Returns the mass in grams of the liquid.
 double getPressure()
          Returns the pressure of the liquid, which is the same as the system pressure.
 Species getSolvent()
          Returns null, because this phase has no solvent
 double getVolume()
          Returns the volume of the phase in liters
 void setDensity(double _density)
          Sets the density of the liquid.
 void setMass(double _mass)
          Sets the mass of the liquid.
 void setVolume(double _volume)
          Sets the volume of the liquid.
 
Methods inherited from class edu.davidson.chm.equilibria.Phase
addSpecies, addSpecies, addSpecies, createSpecies, createSpecies, getAutoChargeBalance, getChemSystem, getDensity, getDielectricConstant, getEDHEa, getEDHEb, getIsProtic, getLabel, getMoles, getNbrSpecies, getpH, getPhysicalState, getpOH, getPressure, getSpecies, getSpecies, getSpecies, getSpeciesAt, removeSpecies, removeSpecies, scale, setAutoChargeBalance, setDielectricConstant, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Liquid

public Liquid()

Liquid

public Liquid(java.lang.String _label,
              ChemSystem _chemSystem,
              ChemSpecies _chemSpecies)
The minimal requirements for defining a Liquid phase are a descriptive label, the chemical system containing the phase, and the chemical species the constitutes the liquid.

Method Detail

copyOf

public Phase copyOf(ChemSystem _chemSystem)
Creates a copy of this phase and places it in the indicated ChemSystem.

Specified by:
copyOf in class Phase

getInfo

public java.lang.String getInfo()
Returns information about this class

Overrides:
getInfo in class Phase

getAcid

public Species getAcid()
Returns null, because there is no solvent or conjugate acid in this type of phase.

Specified by:
getAcid in class Phase

getBase

public Species getBase()
Returns null, because there is no solvent or conjugate base in this type of phase.

Specified by:
getBase in class Phase

getIonicStrength

public double getIonicStrength()
Returns zero, because ionic strength has no meaning for this phase

Specified by:
getIonicStrength in class Phase

getMass

public double getMass()
Returns the mass in grams of the liquid.

Overrides:
getMass in class Phase

getPressure

public double getPressure()
Returns the pressure of the liquid, which is the same as the system pressure. (This property is NOT the vapor pressure of the liquid.)

Specified by:
getPressure in class Phase

getSolvent

public Species getSolvent()
Returns null, because this phase has no solvent

Specified by:
getSolvent in class Phase

getVolume

public double getVolume()
Returns the volume of the phase in liters

Specified by:
getVolume in class Phase

setDensity

public void setDensity(double _density)
Sets the density of the liquid. The volume of the liquid is adjusted to be consistent with the mass and the density.

Specified by:
setDensity in class Phase
Parameters:
_density - density in grams per milliliter

setMass

public void setMass(double _mass)
Sets the mass of the liquid. The volume of the liquid is adjusted to be consistent with the mass and density.

Specified by:
setMass in class Phase
Parameters:
_mass - mass in grams

setVolume

public void setVolume(double _volume)
Sets the volume of the liquid. The density is used to calculate a new mass for the liquid.

Specified by:
setVolume in class Phase
Parameters:
_volume - volume in liters