legacy_thermo_properties Module


Uses

  • module~~legacy_thermo_properties~~UsesGraph module~legacy_thermo_properties legacy_thermo_properties module~legacy_ar_models legacy_ar_models module~legacy_thermo_properties->module~legacy_ar_models module~yaeos__constants yaeos__constants module~legacy_thermo_properties->module~yaeos__constants module~legacy_ar_models->module~yaeos__constants module~ar_interface ar_interface module~legacy_ar_models->module~ar_interface iso_fortran_env iso_fortran_env module~yaeos__constants->iso_fortran_env module~ar_interface->module~yaeos__constants module~ar_interface->iso_fortran_env

Subroutines

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

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

Read more…

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.

public subroutine TERMO(nc, mtyp, indic, t, p, rn, v, PHILOG, DLPHIP, DLPHIT, FUGN)

Evaluate legacy fugacity and pressure-derivative properties.

Read more…

Arguments

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

Number of components

integer, intent(in) :: mtyp

Type of root desired (-1 vapor, 1 liquid, 0 lower Gr)

integer, intent(in) :: indic

Desired element, this should be setted with optionals

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

Temperature [K]

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

Pressure [bar]

real(kind=pr), intent(in) :: rn(nc)

Mixture mole numbers

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

Volume [L]

real(kind=pr), intent(out) :: PHILOG(nc)

ln(phi*p) vector

real(kind=pr), intent(out), optional :: DLPHIP(nc)

ln(phi) Pressure derivative

real(kind=pr), intent(out), optional :: DLPHIT(nc)

ln(phi) Temp derivative

real(kind=pr), intent(out), optional :: FUGN(nc,nc)

ln(phi) compositional derivative

public recursive subroutine VCALC(ITYP, nc, ntemp, rn, T, P, V)

ROUTINE FOR CALCULATION OF VOLUME, GIVEN PRESSURE

Read more…

Arguments

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

TYPE OF ROOT DESIRED (-1 vapor, 1 liquid, 0 lower Gibbs energy phase)

integer, intent(in) :: nc

NO. OF COMPONENTS

integer, intent(in) :: ntemp

1 if T-derivatives are required

real(kind=pr), intent(in) :: rn(nc)

FEED MOELS

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

TEMPERATURE

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

PRESURE

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

VOLUME

public subroutine zTVTERMO(nc, indic, t, rn, v, p, dpv, PHILOG, DLPHIP, DLPHIT, FUGN)

Evaluate legacy thermodynamic properties at fixed composition, temperature, and volume.

Read more…

Arguments

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

Number of active components.

integer, intent(in) :: indic

Selects the requested outputs (see the INDIC table above).

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

Temperature [K].

real(kind=pr), intent(in) :: rn(nc)

Component mole amounts used in mixture rules.

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

Total volume [L].

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

Pressure [bar].

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

Pressure derivative with respect to volume.

real(kind=pr), intent(out) :: PHILOG(nc)

vector.

real(kind=pr), intent(out) :: DLPHIP(nc)

Pressure derivatives of logarithmic fugacity coefficients.

real(kind=pr), intent(out) :: DLPHIT(nc)

Temperature derivatives of logarithmic fugacity coefficients.

real(kind=pr), intent(out) :: FUGN(nc,nc)

Composition derivatives of at constant .