PUREFUG_CALC Subroutine

public subroutine PUREFUG_CALC(nc, icomp, T, P, V, phi)

PUREFUG_CALC

Calculate pure-component fugacity data for a selected legacy component.

Description

Evaluates the configured EOS for component icomp at the supplied state and returns its fugacity coefficient. Fugacity of a pure component

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: nc

Number of active components.

integer, intent(in) :: icomp

One-based component index.

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

Temperature [K].

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

Pressure [bar].

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

Total volume [L].

real(kind=pr), intent(out) :: phi

Pure-component fugacity coefficient.


Calls

proc~~purefug_calc~~CallsGraph proc~purefug_calc PUREFUG_CALC proc~arvnder ArVnder proc~purefug_calc->proc~arvnder

Variables

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

Residual Helmholtz energy.

real(kind=pr), public :: ArTV

Mixed temperature/volume derivative of residual Helmholtz energy.

real(kind=pr), public :: ArTn(nc)

Mixed temperature/mole-number derivative of residual Helmholtz energy.

real(kind=pr), public :: ArV2

Second volume derivative of residual Helmholtz energy.

real(kind=pr), public :: ArVn(nc)

Mixed volume/mole-number derivative of residual Helmholtz energy.

real(kind=pr), public :: Arn(nc)

Mole-number gradient of residual Helmholtz energy.

real(kind=pr), public :: Arn2(nc,nc)

Mole-number Hessian of residual Helmholtz energy.

real(kind=pr), public :: Arv
real(kind=pr), public :: RT
real(kind=pr), public :: Z

Feed or overall composition.

real(kind=pr), public :: philog
real(kind=pr), public :: rn(nc)