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 )
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
Nodes of different colours represent the following:
Graph Key
Module
Module
Submodule
Submodule
Subroutine
Subroutine
Function
Function
Program
Program
This Page's Entity
This Page's Entity
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
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
Nodes of different colours represent the following:
Graph Key
Module
Module
Submodule
Submodule
Subroutine
Subroutine
Function
Function
Program
Program
This Page's Entity
This Page's Entity
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
Derived Types
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
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
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
Soave function and it’s derivatives.
Arguments
Type
Intent Optional 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 (:)
Evaluate the Mathias-Copeman alpha function and its reduced-temperature derivatives.
Read more…
Arguments
Type
Intent Optional 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.
Arguments
Type
Intent Optional 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 (:)