Class ComponentSolid

All Implemented Interfaces:
Serializable, Cloneable, ComponentEosInterface, ComponentInterface, ThermodynamicConstantsInterface
Direct Known Subclasses:
ComponentWax, ComponentWaxWilson, ComponentWonWax

public class ComponentSolid extends ComponentSrk

ComponentSolid class.

Version:
$Id: $Id
Author:
esol
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serialization version UID.
      See Also:
    • dpdt

      double dpdt
    • SolidFug

      double SolidFug
    • PvapSolid

      double PvapSolid
    • PvapSoliddT

      double PvapSoliddT
    • solvol

      double solvol
    • soldens

      double soldens
    • CCequation

      boolean CCequation
    • AntoineSolidequation

      boolean AntoineSolidequation
    • pureCompFug

      double pureCompFug
    • refPhase

      PhaseInterface refPhase
      Reference phase containing only this single component, i.e., mixing rules are not relevant.
  • Constructor Details

    • ComponentSolid

      public ComponentSolid(String name, double moles, double molesInPhase, int compIndex)

      Constructor for ComponentSolid.

      Parameters:
      name - Name of component.
      moles - Total number of moles of component.
      molesInPhase - Number of moles in phase.
      compIndex - Index number of component in phase object component array.
  • Method Details

    • fugcoef

      public double fugcoef(PhaseInterface phase1)

      Calculate, set and return fugacity coefficient.

      Uses Claperyons equation to calculate the solid fugacity

      Specified by:
      fugcoef in interface ComponentInterface
      Overrides:
      fugcoef in class ComponentEos
      Parameters:
      phase1 - a PhaseInterface object to get fugacity coefficient of.
      Returns:
      Fugacity coefficient
    • fugcoef

      public double fugcoef(double temp, double pres)

      Calculate, set and return fugacity coefficient.

      Parameters:
      temp - a double
      pres - a double
      Returns:
      Fugacity coefficient
    • fugcoef2

      public double fugcoef2(PhaseInterface phase1)

      Calculate, set and return fugacity coefficient.

      Parameters:
      phase1 - a PhaseInterface object to get fugacity coefficient of.
      Returns:
      Fugacity coefficient
    • getMolarVolumeSolid

      public double getMolarVolumeSolid()

      getMolarVolumeSolid.

      Returns:
      a double
    • setSolidRefFluidPhase

      public void setSolidRefFluidPhase(PhaseInterface phase)

      setSolidRefFluidPhase.

      Parameters:
      phase - a PhaseInterface object
    • getVolumeCorrection2

      public double getVolumeCorrection2()

      getVolumeCorrection2.

      Returns:
      a double