AlphaFunction Derived Type

type, public, abstract :: AlphaFunction

AlphaFunction

Abstract contract for temperature corrections to cubic attraction.

Description

Implementations return component-wise and its first two derivatives with respect to reduced temperature. CubicEoS converts those derivatives to absolute-temperature derivatives.

Examples

See AlphaSoave, AlphaRKPR, and AlphaMathiasCopeman.


Inherited by

type~~alphafunction~~InheritedByGraph type~alphafunction AlphaFunction type~alphamathiascopeman AlphaMathiasCopeman type~alphamathiascopeman->type~alphafunction type~alpharkpr AlphaRKPR type~alpharkpr->type~alphafunction type~alphasoave AlphaSoave type~alphasoave->type~alphafunction type~cubiceos CubicEoS type~cubiceos->type~alphafunction alpha type~gerg2008 Gerg2008 type~gerg2008->type~cubiceos srk

Type-Bound Procedures

procedure(abs_alpha), public, deferred :: alpha

  • subroutine abs_alpha(self, Tr, a, dadt, dadt2) Prototype

    abs_alpha

    Description

    Evaluate a cubic alpha function and its reduced-temperature derivatives.

    Arguments

    Type IntentOptional Attributes Name
    class(AlphaFunction), intent(in) :: self

    Alpha-function implementation.

    real(kind=pr), intent(in) :: Tr(:)

    Reduced temperatures, one per component.

    real(kind=pr), intent(out) :: a(:)

    Alpha-function values.

    real(kind=pr), intent(out) :: dadt(:)

    First reduced-temperature derivative of alpha.

    real(kind=pr), intent(out) :: dadt2(:)

    Second reduced-temperature derivative of alpha.