SoaveRedlichKwong Function

public function SoaveRedlichKwong(tc, pc, w, kij, lij) result(model)

Uses

  • proc~~soaveredlichkwong~~UsesGraph proc~soaveredlichkwong SoaveRedlichKwong module~yaeos__models_ar_cubic_alphas yaeos__models_ar_cubic_alphas proc~soaveredlichkwong->module~yaeos__models_ar_cubic_alphas module~yaeos__models_ar_cubic_quadratic_mixing yaeos__models_ar_cubic_quadratic_mixing proc~soaveredlichkwong->module~yaeos__models_ar_cubic_quadratic_mixing module~yaeos__models_ar_genericcubic yaeos__models_ar_genericcubic proc~soaveredlichkwong->module~yaeos__models_ar_genericcubic module~yaeos__models_ar_cubic_alphas->module~yaeos__models_ar_genericcubic module~yaeos__constants yaeos__constants module~yaeos__models_ar_cubic_alphas->module~yaeos__constants module~yaeos__substance yaeos__substance module~yaeos__models_ar_cubic_alphas->module~yaeos__substance module~yaeos__models_ar_cubic_quadratic_mixing->module~yaeos__models_ar_genericcubic module~yaeos__models_ar_cubic_quadratic_mixing->module~yaeos__constants module~yaeos__models_ar_cubic_mixing_base yaeos__models_ar_cubic_mixing_base module~yaeos__models_ar_cubic_quadratic_mixing->module~yaeos__models_ar_cubic_mixing_base module~yaeos__models_ar_cubic_quadratic_mixing->module~yaeos__substance module~yaeos__models_ar_genericcubic->module~yaeos__constants module~yaeos__models_ar yaeos__models_ar module~yaeos__models_ar_genericcubic->module~yaeos__models_ar module~yaeos__models_ar_genericcubic->module~yaeos__substance iso_fortran_env iso_fortran_env module~yaeos__constants->iso_fortran_env 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_ar_cubic_mixing_base->module~yaeos__constants module~yaeos__substance->module~yaeos__constants module~yaeos__models_base->module~yaeos__substance

SoaveRedlichKwong

Description

SoaveRedlichKwong.

Using the critical constants setup the parameters to use the SoaveRedlichKwong Equation of State

There is also the optional possibility to include the and matrices. Using by default Classic Van der Waals mixing rules.

After setting up the model, it is possible to redefine either the mixing rule or the alpha function using a different derived type defined outside the function.

Arguments

Type IntentOptional Attributes Name
real(kind=pr), intent(in) :: tc(:)

Critical temperature [K]

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

Critical pressure [bar]

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

Acentric factor

real(kind=pr), intent(in), optional :: kij(:,:)

matrix

real(kind=pr), intent(in), optional :: lij(:,:)

matrix

Return Value type(CubicEoS)


Called by

proc~~soaveredlichkwong~~CalledByGraph proc~soaveredlichkwong SoaveRedlichKwong proc~co2_h2o_isop co2_h2o_isop proc~co2_h2o_isop->proc~soaveredlichkwong proc~gerg_2008 gerg_2008 proc~gerg_2008->proc~soaveredlichkwong proc~ln_activity_coefficient Gerg2008%ln_activity_coefficient proc~ln_activity_coefficient->proc~gerg_2008

Variables

Type Visibility Attributes Name Initial
type(AlphaSoave), private :: alpha

Soave alpha function

type(Substances), private :: composition
integer, private :: i

Loop/index variable.

type(QMR), private :: mixrule
integer, private :: nc

Number of components.