AlphaMathiasCopeman Derived Type

type, public, extends(AlphaFunction) :: AlphaMathiasCopeman

AlphaMathiasCopeman

Mathias-Copeman alpha function with component-specific coefficients.

Description

For : and for the Soave form with only, . Each coefficient array has one value per component.

Examples

alpha%c1 = c1
alpha%c2 = c2
alpha%c3 = c3
call model%set_alpha(alpha)

Inherits

type~~alphamathiascopeman~~InheritsGraph type~alphamathiascopeman AlphaMathiasCopeman type~alphafunction AlphaFunction type~alphamathiascopeman->type~alphafunction

Components

Type Visibility Attributes Name Initial
real(kind=pr), public, allocatable :: c1(:)

First Mathias-Copeman coefficient by component.

real(kind=pr), public, allocatable :: c2(:)

Second Mathias-Copeman coefficient by component.

real(kind=pr), public, allocatable :: c3(:)

Third Mathias-Copeman coefficient by component.


Type-Bound Procedures

procedure, public :: alpha => alpha_mc

  • public subroutine alpha_mc(self, Tr, a, dadt, dadt2)

    Evaluate the Mathias-Copeman alpha function and its reduced-temperature derivatives.

    Read more…

    Arguments

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

    Component-specific coefficients.

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

    Reduced temperatures.

    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.