yaeos__models_ar_cubic_alphas Module

Cubic alpha functions

Component alpha-function implementations used by cubic equations of state.

Description

The module provides Soave, RKPR, and Mathias-Copeman temperature corrections. Each type evaluates and its first two derivatives with respect to reduced temperature, as required by CubicEoS.

Examples

type(AlphaSoave) :: alpha
alpha%k = k_values
call model%set_alpha(alpha)

Uses

  • module~~yaeos__models_ar_cubic_alphas~~UsesGraph module~yaeos__models_ar_cubic_alphas yaeos__models_ar_cubic_alphas module~yaeos__constants yaeos__constants module~yaeos__models_ar_cubic_alphas->module~yaeos__constants module~yaeos__models_ar_genericcubic yaeos__models_ar_genericcubic module~yaeos__models_ar_cubic_alphas->module~yaeos__models_ar_genericcubic module~yaeos__substance yaeos__substance module~yaeos__models_ar_cubic_alphas->module~yaeos__substance iso_fortran_env iso_fortran_env module~yaeos__constants->iso_fortran_env module~yaeos__models_ar_genericcubic->module~yaeos__constants module~yaeos__models_ar_genericcubic->module~yaeos__substance module~yaeos__models_ar yaeos__models_ar module~yaeos__models_ar_genericcubic->module~yaeos__models_ar module~yaeos__substance->module~yaeos__constants module~yaeos__models_ar->module~yaeos__constants module~yaeos__models_base yaeos__models_base module~yaeos__models_ar->module~yaeos__models_base module~yaeos__models_base->module~yaeos__substance

Used by

  • module~~yaeos__models_ar_cubic_alphas~~UsedByGraph module~yaeos__models_ar_cubic_alphas yaeos__models_ar_cubic_alphas module~yaeos__models yaeos__models module~yaeos__models->module~yaeos__models_ar_cubic_alphas proc~pengrobinson76 PengRobinson76 proc~pengrobinson76->module~yaeos__models_ar_cubic_alphas proc~pengrobinson78 PengRobinson78 proc~pengrobinson78->module~yaeos__models_ar_cubic_alphas proc~psrk PSRK proc~psrk->module~yaeos__models_ar_cubic_alphas proc~refit_rkpr_k refit_rkpr_k proc~refit_rkpr_k->module~yaeos__models_ar_cubic_alphas proc~rkpr RKPR proc~rkpr->module~yaeos__models_ar_cubic_alphas proc~soaveredlichkwong SoaveRedlichKwong proc~soaveredlichkwong->module~yaeos__models_ar_cubic_alphas module~yaeos yaeos module~yaeos->module~yaeos__models module~yaeos__extra_fluids yaeos__extra_fluids module~yaeos__extra_fluids->module~yaeos__models proc~co2_h2o_isop co2_h2o_isop proc~co2_h2o_isop->module~yaeos__models

Derived Types

type, public, extends(AlphaFunction) ::  AlphaMathiasCopeman

Mathias-Copeman alpha function with component-specific coefficients.

Read more…

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

type, public, extends(AlphaFunction) ::  AlphaRKPR

RKPR alpha function for cubic EOS models.

Read more…

Components

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

parameter.

Type-Bound Procedures

procedure, public :: alpha => alpha_rkpr

type, public, extends(AlphaFunction) ::  AlphaSoave

Soave temperature correction for cubic EOS models.

Read more…

Components

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

parameter.

Type-Bound Procedures

procedure, public :: alpha

Alpha function


Subroutines

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(:)

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.

public subroutine alpha_rkpr(self, Tr, a, dadt, dadt2)

Arguments

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

RKPR alpha exponent 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(:)