NRTL-HV excess-Gibbs model
Huron-Vidal-modified NRTL activity model for coupling to cubic EOS rules.
Description
Implements the NRTL-HV excess Gibbs energy and its derivatives. It is
primarily used with Huron-Vidal cubic mixing rules and is parameterized
by pair interaction matrices.
Examples
ge = NRTLHV ( b = b , alpha = alpha , gji0 = gji0 , gjiT = gjiT )
call ge % ln_activity_coefficient ( n , T , ln_gamma )
References
Huron, M.-J., and J. Vidal (1979). New mixing rules in simple equations
of state for representing vapour-liquid equilibria of strongly
non-ideal mixtures. Fluid Phase Equilibria , 3, 255-271.
module~~yaeos__models_ge_nrtlhv~~UsesGraph
module~yaeos__models_ge_nrtlhv
yaeos__models_ge_nrtlhv
module~yaeos__autodiff
yaeos__autodiff
module~yaeos__models_ge_nrtlhv->module~yaeos__autodiff
module~yaeos__constants
yaeos__constants
module~yaeos__models_ge_nrtlhv->module~yaeos__constants
module~yaeos__models_ge
yaeos__models_ge
module~yaeos__models_ge_nrtlhv->module~yaeos__models_ge
module~hyperdual_mod
hyperdual_mod
module~yaeos__autodiff->module~hyperdual_mod
module~yaeos__adiff_hyperdual_ar_api
yaeos__adiff_hyperdual_ar_api
module~yaeos__autodiff->module~yaeos__adiff_hyperdual_ar_api
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~hyperdual_mod->module~yaeos__constants
module~yaeos__adiff_hyperdual_ar_api->module~yaeos__constants
module~yaeos__adiff_hyperdual_ar_api->module~hyperdual_mod
module~yaeos__models_ar
yaeos__models_ar
module~yaeos__adiff_hyperdual_ar_api->module~yaeos__models_ar
module~yaeos__substance
yaeos__substance
module~yaeos__models_base->module~yaeos__substance
module~yaeos__models_ar->module~yaeos__constants
module~yaeos__models_ar->module~yaeos__models_base
module~yaeos__substance->module~yaeos__constants
Nodes of different colours represent the following:
Graph Key
Module
Module
Submodule
Submodule
Subroutine
Subroutine
Function
Function
Program
Program
This Page's Entity
This Page's Entity
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
module~~yaeos__models_ge_nrtlhv~~UsedByGraph
module~yaeos__models_ge_nrtlhv
yaeos__models_ge_nrtlhv
module~yaeos__models_cubic_mixing_rules_huron_vidal
yaeos__models_cubic_mixing_rules_huron_vidal
module~yaeos__models_cubic_mixing_rules_huron_vidal->module~yaeos__models_ge_nrtlhv
module~yaeos__models_ge_implementations
yaeos__models_ge_implementations
module~yaeos__models_ge_implementations->module~yaeos__models_ge_nrtlhv
proc~dmixhvnrtl
HV_NRTL%DmixHVNRTL
proc~dmixhvnrtl->module~yaeos__models_ge_nrtlhv
proc~init_hvnrtl
init_hvnrtl
proc~init_hvnrtl->module~yaeos__models_ge_nrtlhv
module~yaeos__models
yaeos__models
module~yaeos__models->module~yaeos__models_cubic_mixing_rules_huron_vidal
module~yaeos__models->module~yaeos__models_ge_implementations
proc~psrk
PSRK
proc~psrk->module~yaeos__models_cubic_mixing_rules_huron_vidal
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
Nodes of different colours represent the following:
Graph Key
Module
Module
Submodule
Submodule
Subroutine
Subroutine
Function
Function
Program
Program
This Page's Entity
This Page's Entity
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
Derived Types
Huron-Vidal modification of the NRTL model for excess Gibbs energy.
Read more…
Components
Type
Visibility Attributes
Name
Initial
real(kind=pr),
public,
allocatable
::
alpha (:,:)
matrix
real(kind=pr),
public,
allocatable
::
b (:)
Covolume parameter
type(Substances ),
public
::
components
Pure-component properties for the model’s component order.
real(kind=pr),
public,
allocatable
::
gji0 (:,:)
matrix
real(kind=pr),
public,
allocatable
::
gjiT (:,:)
matrix
Type-Bound Procedures
Subroutines
Calculate Excess Gibbs and its derivatives.
Arguments
Type
Intent Optional Attributes
Name
class(NRTLHV ),
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.