Equilibria
ChemEquilibria

David N. Blauch


edu.davidson.chm.equilibria
Class Solid

java.lang.Object
  |
  +--edu.davidson.chm.equilibria.Phase
        |
        +--edu.davidson.chm.equilibria.Solid

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

Fields inherited from class edu.davidson.chm.equilibria.Phase
autoChargeBalance, chemSystem, density, dielectricConstant, isProtic, label, physState, species, volume
 
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
clone, equals, finalize, 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.
Overrides:
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.
Overrides:
getAcid in class Phase

getBase

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

getIonicStrength

public double getIonicStrength()
Returns zero, because ionic strength has no meaning for this phase
Overrides:
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.)
Overrides:
getPressure in class Phase

getSolvent

public Species getSolvent()
Returns null, because this phase has no solvent
Overrides:
getSolvent in class Phase

getVolume

public double getVolume()
Returns the volume of the phase in liters
Overrides:
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.
Overrides:
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.
Overrides:
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.
Overrides:
setVolume in class Phase
Parameters:
_volume - volume in liters

Equilibria
ChemEquilibria

David N. Blauch