yaeos__models_ge_NRTL Module

NRTL activity-coefficient model

Description

Non-Random-Two-Liquid model for excess Gibbs energy. The constructor is NRTL and the model extends GeModel. It uses local compositions and temperature-dependent pair interactions to represent liquid non-ideality.

Examples

model = NRTL(A, B, alpha)
call model%ln_activity_coefficient(n, T, ln_gamma)

References

Renon, H., and J. M. Prausnitz (1968). Local compositions in thermodynamic excess functions for liquid mixtures. AIChE Journal, 14, 135-144.


Uses

  • module~~yaeos__models_ge_nrtl~~UsesGraph module~yaeos__models_ge_nrtl yaeos__models_ge_NRTL module~yaeos__constants yaeos__constants module~yaeos__models_ge_nrtl->module~yaeos__constants module~yaeos__models_ge yaeos__models_ge module~yaeos__models_ge_nrtl->module~yaeos__models_ge iso_fortran_env iso_fortran_env module~yaeos__constants->iso_fortran_env module~yaeos__models_ge->module~yaeos__constants module~yaeos__models_base yaeos__models_base module~yaeos__models_ge->module~yaeos__models_base module~yaeos__substance yaeos__substance module~yaeos__models_base->module~yaeos__substance module~yaeos__substance->module~yaeos__constants

Used by

  • module~~yaeos__models_ge_nrtl~~UsedByGraph module~yaeos__models_ge_nrtl yaeos__models_ge_NRTL module~yaeos__models_ge_implementations yaeos__models_ge_implementations module~yaeos__models_ge_implementations->module~yaeos__models_ge_nrtl module~yaeos__models yaeos__models module~yaeos__models->module~yaeos__models_ge_implementations proc~psrk PSRK proc~psrk->module~yaeos__models_ge_implementations module~yaeos yaeos module~yaeos->module~yaeos__models module~yaeos__extra_fluids yaeos__extra_fluids module~yaeos__extra_fluids->module~yaeos__models proc~co2_h2o_isop co2_h2o_isop proc~co2_h2o_isop->module~yaeos__models

Interfaces

public interface NRTL

  • public function init(a, b, c)

    init

    Construct an NRTL model from its interaction matrices.

    Description

    Stores the (dimensionless), [K], and non-randomness matrices used by the NRTL temperature and local-composition terms.

    Examples

    model = NRTL(A, B, C)
    

    Arguments

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

    matrix

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

    matrix

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

    matrix

    Return Value type(NRTL)


Derived Types

type, public, extends(GeModel) ::  NRTL

Non-Random-Two-Liquid excess-Gibbs model.

Read more…

Components

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

matrix

real(kind=pr), public, allocatable :: b(:,:)

matrix [K]

real(kind=pr), public, allocatable :: c(:,:)

non-randomness matrix

type(Substances), public :: components

Pure-component properties for the model’s component order.

Constructor

public function init (a, b, c)

Construct an NRTL model from its interaction matrices.

Read more…

Type-Bound Procedures

procedure, public :: excess_Cp
procedure, public :: excess_enthalpy
procedure, public :: excess_entropy
procedure, public :: excess_gibbs
procedure, public :: ln_activity_coefficient

Functions

public function init(a, b, c)

Construct an NRTL model from its interaction matrices.

Read more…

Arguments

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

matrix

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

matrix

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

matrix

Return Value type(NRTL)


Subroutines

public subroutine excess_gibbs(self, n, T, Ge, GeT, GeT2, Gen, GeTn, Gen2)

Calculate Excess Gibbs and its derivatives.

Arguments

Type IntentOptional Attributes Name
class(NRTL), intent(in) :: self

Model

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

Moles vector

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

Temperature [K]

real(kind=pr), intent(out), optional :: Ge

Excess Gibbs free energy

real(kind=pr), intent(out), optional :: GeT

real(kind=pr), intent(out), optional :: GeT2

real(kind=pr), intent(out), optional :: Gen(size(n))

real(kind=pr), intent(out), optional :: GeTn(size(n))

Mixed temperature-mole-number derivative.

real(kind=pr), intent(out), optional :: Gen2(size(n),size(n))

Hessian with respect to mole amounts.