SoaveRedlichKwong Function

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

SoaveRedlichKwong.

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

There is also the optional posibility to include the k_{ij} and l_{ij} 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)


Variables

Type Visibility Attributes Name Initial
type(AlphaSoave), private :: alpha
type(Substances), private :: composition
integer, private :: i
type(QMR), private :: mixrule
integer, private :: nc