Class ComponentWonWax

All Implemented Interfaces:
Serializable, Cloneable, ComponentEosInterface, ComponentInterface, ThermodynamicConstantsInterface

public class ComponentWonWax extends ComponentSolid

ComponentWonWax class.

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

    • serialVersionUID

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

      static org.apache.logging.log4j.Logger logger
      Logger object for class.
  • Constructor Details

    • ComponentWonWax

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

      Constructor for ComponentWonWax.

      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 ComponentSolid
      Parameters:
      phase1 - a PhaseInterface object to get fugacity coefficient of.
      Returns:
      Fugacity coefficient
    • fugcoef2

      public double fugcoef2(PhaseInterface phase1)

      Calculate, set and return fugacity coefficient.

      Overrides:
      fugcoef2 in class ComponentSolid
      Parameters:
      phase1 - a PhaseInterface object to get fugacity coefficient of.
      Returns:
      Fugacity coefficient
    • getWonActivityCoefficient

      public double getWonActivityCoefficient(PhaseInterface phase1)

      getWonActivityCoefficient.

      Parameters:
      phase1 - a PhaseInterface object
      Returns:
      a double
    • getWonVolume

      public double getWonVolume(PhaseInterface phase1)
      Calculates the liquid molar volume at 25 deg C for the Won solubility parameter model.

      Uses the density correlation: d25 = 0.8155 + 6.273e-4 * MW - 13.06 / MW (g/cm3, MW in g/mol). Returns volume in cm3/mol.

      Parameters:
      phase1 - a PhaseInterface object
      Returns:
      molar volume at 25 deg C in cm3/mol
    • getWonParam

      public double getWonParam(PhaseInterface phase1)
      Calculates the Won solubility parameter for this component.

      delta_i = sqrt((DH_vap - DH_fus - RT) / V_i) in (cal/cm3)^0.5. Uses Morgan-Kobayashi correlation for vaporization enthalpy and Pedersen correlations for fusion properties. All molecular-weight-dependent correlations use MW in g/mol.

      Parameters:
      phase1 - a PhaseInterface object
      Returns:
      solubility parameter in (cal/cm3)^0.5