PengRobinson76 Function

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

PengRobinson76.

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

There is also the optional posibility 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 Temperatures [K]

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

Critical Pressures [bar]

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

Acentric Factors

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