private subroutine enthalpy_residual_vt(eos, n, V, T, Hr, HrV, HrT, Hrn)
Calculate residual enthalpy given volume and temperature.
Examples
eos = PengRobinson76 ( Tc , Pc , w )
n = [ 1.0_pr , 1.0_pr ]
T = 30 0.0_pr
V = 1.0_pr
call eos % enthalpy_residual_vt (&
n , V , T , Hr = Hr , HrV = HrV , HrT = HrT , Hrn = Hrn &
)
Type Bound
ArModel
Arguments
Type
Intent Optional Attributes
Name
class(ArModel ),
intent(in)
::
eos
Model
real(kind=pr),
intent(in)
::
n (:)
Moles number vector
real(kind=pr),
intent(in)
::
V
Volume [L]
real(kind=pr),
intent(in)
::
T
Temperature [K]
real(kind=pr),
intent(out),
optional
::
Hr
Residual enthalpy [bar L]
real(kind=pr),
intent(out),
optional
::
HrV
real(kind=pr),
intent(out),
optional
::
HrT
real(kind=pr),
intent(out),
optional
::
Hrn (size(n))
proc~~enthalpy_residual_vt~~CallsGraph
proc~enthalpy_residual_vt
ArModel%enthalpy_residual_vt
residual_helmholtz
residual_helmholtz
proc~enthalpy_residual_vt->residual_helmholtz
Nodes of different colours represent the following:
Graph Key
Subroutine
Subroutine
Function
Function
Interface
Interface
Type Bound Procedure
Type Bound Procedure
Unknown Procedure Type
Unknown Procedure Type
Program
Program
This Page's Entity
This Page's Entity
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
proc~~enthalpy_residual_vt~~CalledByGraph
proc~enthalpy_residual_vt
ArModel%enthalpy_residual_vt
proc~ar_consistency
ar_consistency
proc~ar_consistency->proc~enthalpy_residual_vt
proc~enthalpy_residual_pt
ArModel%enthalpy_residual_pt
proc~enthalpy_residual_pt->proc~enthalpy_residual_vt
Nodes of different colours represent the following:
Graph Key
Subroutine
Subroutine
Function
Function
Interface
Interface
Type Bound Procedure
Type Bound Procedure
Unknown Procedure Type
Unknown Procedure Type
Program
Program
This Page's Entity
This Page's Entity
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Variables
Type
Visibility Attributes
Name
Initial
real(kind=pr),
private
::
Ar
real(kind=pr),
private
::
ArT
real(kind=pr),
private
::
ArT2
real(kind=pr),
private
::
ArTV
real(kind=pr),
private
::
ArTn (size(n))
real(kind=pr),
private
::
ArV
real(kind=pr),
private
::
ArV2
real(kind=pr),
private
::
ArVn (size(n))
real(kind=pr),
private
::
Arn (size(n))