Contents
Index
EoSSuperancillaries.pcsaft_acentric
EoSSuperancillaries.pcsaft_m_from_acentric
EoSSuperancillaries.pcsaft_rhoc
EoSSuperancillaries.pcsaft_rholsat_reduced
EoSSuperancillaries.pcsaft_rhosat
EoSSuperancillaries.pcsaft_rhosat_reduced
EoSSuperancillaries.pcsaft_rhovsat_reduced
EoSSuperancillaries.pcsaft_tc
EoSSuperancillaries.pcsaft_theta
EoSSuperancillaries.pcsaft_vc
EoSSuperancillaries.pcsaft_vlsat
EoSSuperancillaries.pcsaft_vsat
EoSSuperancillaries.pcsaft_vvsat
PC-SAFT critical point
EoSSuperancillaries.pcsaft_tc
— FunctionTc = pcsaft_tc(m,ϵ)
Returns the critical temperature of the PCSAFT equation of state.
Inputs:
m
: Segment length (no units)ϵ
: Reduced interaction energy[K]
Outputs:
Tc
: Critical Temperature[K]
. ReturnsNaN
if the value is outside the range of the ancillary (1 ≤ m ≤ 64).
Examples
julia> m, ϵ = 1.0, 150.03 #values for methane
(1.0, 150.03)
julia> Tc = pcsaft_tc(m, ϵ)
191.40058128833536
EoSSuperancillaries.pcsaft_rhoc
— Functionrhoc = pcsaft_rhoc(m,σ)
Returns the critical density of the PCSAFT equation of state.
Inputs:
m
: Segment length (no units)σ
: Monomer diameter[m]
Outputs:
rhoc
: Critical density[mol/m^3]
. ReturnsNaN
if the value is outside the range of the ancillary (1 ≤ m ≤ 64).
EoSSuperancillaries.pcsaft_vc
— Functionvc = pcsaft_vc(m,σ)
Returns the critical volume of the PCSAFT equation of state. Equal to 1/pcsaft_rhoc(m,ϵ,σ)
Inputs:
m
: Segment length (no units)σ
: Monomer diameter[m]
Outputs:
vc
: Critical volume[m^3/mol]
. ReturnsNaN
if the value is outside the range of the ancillary (1 ≤ m ≤ 64).
PC-SAFT saturation volumes
EoSSuperancillaries.pcsaft_rhosat
— Functionrhol,rhov = pcsaft_rhosat(T,m,ϵ,σ)
Returns the saturation densities of the PCSAFT equation of state at the input temperature T
.
Inputs:
T
: Saturation temperature (Kelvin)m
: Segment length (no units)ϵ
: Reduced interaction energy[K]
σ
: Monomer diameter[m]
Outputs:
rhol
: saturation liquid density[mol/m^3]
.rhov
: saturation vapour density[mol/m^3]
.
Returns NaN,NaN
if the value is outside the range of the ancillary (1 ≤ m
≤ 64 and Tmin
< T
< Tc
).
EoSSuperancillaries.pcsaft_vsat
— Functionvl,vv = pcsaft_vsat(T,m,ϵ,σ)
Returns the saturation volumes of the PCSAFT equation of state at the input temperature T
.
Inputs:
T
: Saturation temperature (Kelvin)m
: Segment length (no units)ϵ
: Reduced interaction energy[K]
σ
: Monomer diameter[m]
Outputs:
vl
: saturation liquid volume[m^3/mol]
.vv
: saturation vapour volume[m^3/mol]
.
Returns NaN,NaN
if the value is outside the range of the ancillary (1 ≤ m
≤ 64 and Tmin
< T
< Tc
).
EoSSuperancillaries.pcsaft_vlsat
— Functionvv = pcsaft_vvsat(T,m,ϵ,σ)
Returns the saturation vapour volume of the PCSAFT equation of state at the input temperature T
.
Inputs:
T
: Saturation temperature (Kelvin)m
: Segment length (no units)ϵ
: Reduced interaction energy[K]
σ
: Monomer diameter[m]
Outputs:
vl
: saturation liquid volume[m^3/mol]
.
Returns NaN
if the value is outside the range of the ancillary (1 ≤ m
≤ 64 and Tmin
< T
< Tc
).
EoSSuperancillaries.pcsaft_vvsat
— Functionvl = pcsaft_vlsat(T,m,ϵ,σ)
Returns the saturation liquid volume of the PCSAFT equation of state at the input temperature T
.
Inputs:
T
: Saturation temperature (Kelvin)m
: Segment length (no units)ϵ
: Reduced interaction energy[K]
σ
: Monomer diameter[m]
Outputs:
vl
: saturation liquid volume[m^3/mol]
.
Returns NaN
if the value is outside the range of the ancillary (1 ≤ m
≤ 64 and Tmin
< T
< Tc
).
EoSSuperancillaries.pcsaft_theta
— FunctionΘ,status = pcsaft_theta(T̃,m)
Θ,status = pcsaft_theta(T̃,m,T̃c)
Calculates reduced scaled temperature parameter used in PCSAFT saturation volume superancillary
Inputs:
T̃
: Temperature divided by reduced interaction energy (T/ϵ
) (no units)m
: Segment length (no units)T̃c
: (Optional) Reduced critical temperature (Tc/ϵ
) (no units)
Outputs:
Θ
: scaled temperature parameter (no units)status
:Symbol
used to signal if the combination ofT̃
,m
is valid or not. It can return one of the following::inrange
: if the combination is valid:nonfinite
: if any input is not finite:below_mmin
: ifm
< 1.0:over_mmax
: ifm
> 64.0:below_Tmin
: ifT̃
<T̃min
, whereT̃min
=T̃c*exp(-2.20078778)*m^0.37627892
:over_Tmax
: ifT̃
>T̃c
EoSSuperancillaries.pcsaft_rhosat_reduced
— Functionρ̃l,ρ̃v = pcsaft_rhosat_reduced(Θ,m)
Calculates the reduced saturation densities. The actual densities are calculated as ρᵢ = ρ̃ᵢ/(N_A*σ^3)
Inputs:
Θ
: reduced temperature parameter (no units)m
: Segment length (no units)
Outputs:
ρ̃l
: reduced saturation liquid density (no units)ρ̃v
: reduced saturation vapour density (no units)
Returns NaN
if the value is outside the range of the ancillary (1 ≤ m ≤ 64 and 0 < Θ < 1).
EoSSuperancillaries.pcsaft_rholsat_reduced
— Functionρ̃l = pcsaft_rholsat_reduced(Θ,m)
Calculates the reduced liquid saturation density. The actual density is ρ = ρ̃/(N_A*σ^3)
Inputs:
Θ
: reduced temperature parameter (no units)m
: Segment length (no units)
Outputs:
ρ̃l
: reduced saturation liquid density (no units)
Returns NaN
if the value is outside the range of the ancillary (1 ≤ m ≤ 64 and 0 < Θ < 1).
EoSSuperancillaries.pcsaft_rhovsat_reduced
— Functionρ̃v = pcsaft_rhovsat_reduced(Θ,m)
Calculates the reduced vapour saturation density. The actual density is ρ = ρ̃/(N_A*σ^3)
Inputs:
Θ
: reduced temperature parameter (no units)m
: Segment length (no units)
Outputs:
ρ̃v
: reduced saturation vapour density (no units)
Returns NaN
if the value is outside the range of the ancillary (1 ≤ m ≤ 64 and 0 < Θ < 1).
PC-SAFT acentric factor
EoSSuperancillaries.pcsaft_acentric
— Functionω = pcsaft_acentric(m)
Returns the acentric factor of the PCSAFT equation of state.
Inputs:
m
: Segment length (no units)
Outputs:
ω
: acentric factor (no units). ReturnsNaN
if the value is outside the range of the ancillary (1 ≤ m ≤ 64).
Examples
julia> m = 1.0
(1.0, 150.03)
julia> Tc = pcsaft_acentric(m)
191.40058128833536
EoSSuperancillaries.pcsaft_m_from_acentric
— Functionm = pcsaft_m_from_acentric(w)
Given the acentric factor of a component, returns the segment length that corresponds to the real acentric factor calculated by the PCSAFT equation of state.
Inputs:
ω
: acentric factor (no units)
Outputs:
m
: Segment length (no units). ReturnsNaN
if the value is outside the range of the ancillary (0.005073686089814064 ≤ w ≤ 6.0465684112508296).