edu.davidson.chm.equilibria
Class Solid

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

public class Solid
extends Phase

This project contains the files necessary to solve arbitrary equilibrium problems

Copyright: Copyright (c) David N. Blauch

Company: Davidson College

Version:
1.1
Author:
David N. Blauch

Field Summary
 
Fields inherited from interface edu.davidson.chm.equilibria.PhysicalConstants
F, k, No, perm, qe, R, RJ
 
Constructor Summary
Solid()
           
Solid(java.lang.String _label, ChemSystem _chemSystem, ChemSpecies _chemSpecies)
          The minimal requirements for defining a Solid phase are a descriptive label, the chemical system containing the phase, and the chemical species the constitutes the solid.
Solid(java.lang.String _label, ChemSystem _chemSystem, ChemSpecies _chemSpecies, double _moles)
          The minimal requirements for defining a Solid phase are a descriptive label, the chemical system containing the phase, and the chemical species the constitutes the solid.
 
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 solid.
 double getPressure()
          Returns the pressure of the solid, 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 solid.
 void setMass(double _mass)
          Sets the mass of the solid.
 void setVolume(double _volume)
          Sets the volume of the solid.
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Solid

public Solid()

Solid

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


Solid

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

Parameters:
_moles - moles of the solid
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 solid.

Overrides:
getMass in class Phase

getPressure

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

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 solid. The volume of the solid 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 solid. The volume of the solid 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 solid. The density is used to calculate a new mass for the solid.

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