Component molar shifts .
Uses with the inherited Helmholtz transformation. No restriction is imposed on the signs of the parameters.
J. Shi and H. A. Li, Fluid Phase Equilibria (2016), doi:10.1016/j.fluid.2016.09.017.
Construct a translated copy of the base model.
Arrays a and b must match the base model’s component order and size.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ArModel), | intent(in) | :: | base |
Base model to copy. |
||
| real(kind=pr), | intent(in) | :: | a(:) |
Component intercepts [L/mol]. |
||
| real(kind=pr), | intent(in) | :: | b(:) |
Component temperature slopes [L/(mol K)]. |
Initialized translated model.
Volume translation with a linear temperature-dependent shift per component.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | public, | allocatable | :: | a(:) |
Intercepts in component order [L/mol]. |
||
| real(kind=pr), | public, | allocatable | :: | b(:) |
Temperature slopes in component order [L/(mol K)]. |
||
| class(ArModel), | public, | allocatable | :: | base |
Owned copy of the untranslated model, available to translation laws. |
||
| type(Substances), | public | :: | components |
Pure-component properties for the model’s component order. |
|||
| character(len=:), | public, | allocatable | :: | name |
Name of the model |
| private function linear_volume_translation (base, a, b) | Construct a translated copy of the base model.
Arrays |
| procedure, public :: Cp_residual_pt | |
| procedure, public :: Cp_residual_vt | |
| procedure, public :: Cv_residual_pt | |
| procedure, public :: Cv_residual_vt | |
| procedure, public :: Psat_pure | |
| procedure, public :: enthalpy_excess | |
| procedure, public :: enthalpy_residual_pt | |
| procedure, public :: enthalpy_residual_vt | |
| procedure, public :: entropy_excess | |
| procedure, public :: entropy_residual_pt | |
| procedure, public :: entropy_residual_vt | |
| procedure, public :: get_v0 => translated_v0 | |
| procedure, public :: gibbs_excess | |
| procedure, public :: gibbs_residual_pt | |
| procedure, public :: gibbs_residual_vt | |
| procedure, public :: helmholtz_excess | |
| procedure, public :: helmholtz_residual_pt | |
| procedure, public :: init | |
| procedure, public :: internal_energy_excess | |
| procedure, public :: internal_energy_residual_pt | |
| procedure, public :: internal_energy_residual_vt | |
| procedure, public :: ln_activity_coefficient | |
| procedure, public :: lnfug_vt | |
| procedure, public :: lnphi_pt | |
| procedure, public :: lnphi_vt | |
| procedure, public :: pressure | |
| procedure, public :: residual_helmholtz => translated_helmholtz | |
| procedure, public :: translation => linear_translation | |
| procedure, public :: volume => translated_volume | |
| procedure, public :: volume_excess |
Construct a translated copy of the base model.
Arrays a and b must match the base model’s component order and size.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ArModel), | intent(in) | :: | base |
Base model to copy. |
||
| real(kind=pr), | intent(in) | :: | a(:) |
Component intercepts [L/mol]. |
||
| real(kind=pr), | intent(in) | :: | b(:) |
Component temperature slopes [L/(mol K)]. |
Initialized translated model.
Evaluate the extensive shift and its requested derivatives.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(LinearVolumeTranslation), | intent(in) | :: | self |
Translation model. |
||
| real(kind=pr), | intent(in) | :: | n(:) |
Component amounts [mol]. |
||
| real(kind=pr), | intent(in) | :: | T |
Temperature [K]. |
||
| real(kind=pr), | intent(out) | :: | C |
Extensive shift [L]. |
||
| real(kind=pr), | intent(out), | optional | :: | CT |
Temperature derivative [L/K]. |
|
| real(kind=pr), | intent(out), | optional | :: | CT2 |
Second temperature derivative [L/K²]. |
|
| real(kind=pr), | intent(out), | optional | :: | Cn(size(n)) |
Amount gradient [L/mol]. |
|
| real(kind=pr), | intent(out), | optional | :: | CTn(size(n)) |
Temperature/amount derivatives [L/(mol K)]. |
|
| real(kind=pr), | intent(out), | optional | :: | Cn2(size(n),size(n)) |
Amount Hessian [L/mol²]. |