AlphaSoave Derived Type

type, public, extends(AlphaFunction) :: AlphaSoave

AlphaSoave

Soave temperature correction for cubic EOS models.

Description

Evaluates componentwise and supplies its reduced-temperature derivatives.

Examples

alpha%k = k_values
call model%set_alpha(alpha)

Inherits

type~~alphasoave~~InheritsGraph type~alphasoave AlphaSoave type~alphafunction AlphaFunction type~alphasoave->type~alphafunction

Components

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

parameter.


Type-Bound Procedures

procedure, public :: alpha

Alpha function

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

    Soave function and it’s derivatives.

    Arguments

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

    Soave alpha parameters by component.

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

    Reduced temperature

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

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

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