Temperature-independent component shifts with a linear combining rule.
ConstantVolumeTranslation wraps an ArModel with
. The inherited VolumeTranslatedModel supplies
the translated Helmholtz energy, properties, and volume solver.
Constructor fragment, after defining the base EOS and shifts in L/mol:
model = ConstantVolumeTranslation(base, c)
Péneloux, A., Rauzy, E., & Fréze, R. (1982). A consistent correction for Redlich-Kwong-Soave volumes. Fluid phase equilibria, 8(1), 7-23.
Construct a volume-translated EOS from a base model and molar shifts.
c must contain one coefficient per component in base, in the
same order. Coefficients are supplied directly, not estimated from
critical properties. Zero and negative coefficients are allowed.
Constructor fragment:
model = ConstantVolumeTranslation(base, c)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ArModel), | intent(in) | :: | base |
Untranslated EOS to copy. |
||
| real(kind=pr), | intent(in) | :: | c(:) |
Constant component shifts in the base model’s order [L/mol]. |
Initialized EOS with the inherited residual-property interface.
An EOS translated by constant molar shifts for each component.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| class(ArModel), | public, | allocatable | :: | base |
Owned copy of the untranslated model, available to translation laws. |
||
| real(kind=pr), | public, | allocatable | :: | c(:) |
Temperature-independent molar shifts [L/mol], one per component. |
||
| type(Substances), | public | :: | components |
Pure-component properties for the model’s component order. |
|||
| character(len=:), | public, | allocatable | :: | name |
Name of the model |
| private function constant_volume_translation (base, c) | Construct a volume-translated EOS from a base model and molar shifts. |
| 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 => constant_translation | |
| procedure, public :: volume => translated_volume | |
| procedure, public :: volume_excess |
Construct a volume-translated EOS from a base model and molar shifts.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ArModel), | intent(in) | :: | base |
Untranslated EOS to copy. |
||
| real(kind=pr), | intent(in) | :: | c(:) |
Constant component shifts in the base model’s order [L/mol]. |
Initialized EOS with the inherited residual-property interface.
Evaluate the linear extensive shift and its requested derivatives.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ConstantVolumeTranslation), | intent(in) | :: | self |
Model containing the component shifts. |
||
| real(kind=pr), | intent(in) | :: | n(:) |
Component mole amounts [mol]. |
||
| real(kind=pr), | intent(in) | :: | T |
Temperature [K]; unused because the shifts are constant. |
||
| real(kind=pr), | intent(out) | :: | C |
Extensive volume translation [L]. |
||
| real(kind=pr), | intent(out), | optional | :: | CT |
Zero temperature derivative [L/K]. |
|
| real(kind=pr), | intent(out), | optional | :: | CT2 |
Zero second temperature derivative [L/K^2]. |
|
| real(kind=pr), | intent(out), | optional | :: | Cn(size(n)) |
Component shifts, the amount gradient [L/mol]. |
|
| real(kind=pr), | intent(out), | optional | :: | CTn(size(n)) |
Zero temperature/amount derivatives [L/(K mol)]. |
|
| real(kind=pr), | intent(out), | optional | :: | Cn2(size(n),size(n)) |
Zero amount Hessian [L/mol^2]. |