Clapeyron provides a framework for the development and use of fluid-thermodynamic models, including SAFT, cubic, activity, multi-parameter, and COSMO-SAC.
MIT License
Bot releases are visible (Hide)
ReferenceState <: ClapeyronParam
in the ideal model parameters. The BasicIdeal
model is, intentionally, the only ideal model in Clapeyron that does not have this struct and, as a consequence, it is not able to set reference states.EoSSuperancillaries.jl
. When the package is loaded, initial saturation points for cubics and PCSAFT are overloaded to use superancillary evaluations instead of the general x0_sat_pure
function. in the case of PCSAFT
models, it also speeds up the evaluation of crit_pure
.EOS_CG
), a reference model for humid gases and CCS mixtures.LKP
)ShomateIdeal
)helmholtz_free_energy_res
,gibbs_free_energy_res
,internal_energy_res
, enthalpy_res
ReidIdeal
now uses the poling coefficients by default.JobackIdeal
has support for more common group fragments used in gcPCSAFT.melting_temperature
, sublimation_temperature
does not allocate anymore. Note that the function can still allocate if the EoS model itself allocates.Full Changelog: https://github.com/ClapeyronThermo/Clapeyron.jl/compare/v0.5.10...v0.5.11
Published by github-actions[bot] 10 months ago
Merged pull requests:
Closed issues:
Published by github-actions[bot] 10 months ago
Merged pull requests:
Published by github-actions[bot] 11 months ago
Merged pull requests:
docs-update
branch (#228) (@longemen3000)Closed issues:
Published by github-actions[bot] 12 months ago
Merged pull requests:
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
Merged pull requests:
Published by github-actions[bot] about 1 year ago
Merged pull requests:
Closed issues:
Published by github-actions[bot] about 1 year ago
Merged pull requests:
Closed issues:
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
Merged pull requests:
Published by longemen3000 about 1 year ago
@newmodel
, @newmodelgc
and newmodelsingle
macros. Now they also define the outer constructor. for a simple EoS that does not require transformation of parameters, you can now do:@newmodel MyModel EoSModel MyModelParam
#define locations for your model, relative to the current database location
Clapeyron.default_locations(::Type{MyModel}) = ["models/mymodel"]
#define references
Clapeyron.default_references(::Type{MyModel}) = ["TODO"]
@newmodelsingleton
, that defines "singleton" EoSModels.EoSModels
that represent Empiric, Multiparameter EoS:
SingleFluid
: for single component fluidsMultiFluid
: for multicomponent fluids, with specific mixing and departure rulesSingleFluid
and MultiFluid
constructors are capable of parsing CoolProp
JSON single component files. furthermore, you can use the available CoolProp
single fluid library by just importing CoolProp
into the current working enviroment (using CoolProp
).acentricfactor
directly to userlocations
, instead of alpha_userlocations
(#188)RGas(model)
and Rgas()
, that gives the value of the gas constant used by the model. defaults to Clapeyron.R̄ = 8.31446261815324
HelmAct
, to use multiparameter EoS + activity coefficient models as the departure.XiangDeiters
TholLJ
(used in LJRef
)EmpiricIdeal
, the ideal part of a multiparameter model, to be used in conjuction with other EoSAlyLeeIdeal
CPLNGEstIdeal
(http://dx.doi.org/10.1016/j.jngse.2014.04.011)sep
keyword in the inline CSV options:Clapeyron Database File
my parameters [csvtype = like, sep = ;]
species,Mw
1,3,5,7-CYCLOOCTATETRAENE;156.22368
IAPWS95
, PropaneRef
, Ammonia2023
are now of type SingleFluid{EmpiricAncillary}
.GERG2008
, EOS-LNG
are now of type MultiFluid{EmpiricAncillary,AsymmetricMixing,EmpiricDeparture}
@newmodel
macros don't require defining external constructors anymore.SpecialComp
(used by pharmaPCSAFT
) is now a ClapeyronParam
instead of an EoSModel
Published by github-actions[bot] over 1 year ago
Merged pull requests:
Published by github-actions[bot] over 1 year ago
Merged pull requests:
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Closed issues:
Merged pull requests:
Published by github-actions[bot] over 1 year ago
Closed issues:
Merged pull requests:
Published by github-actions[bot] over 1 year ago
userlocations
and its variants to build a model directly from those parameters (#156). for example, with PCSAFT:julia> model = PCSAFT(["a1"],userlocations = (;
Mw = [1.],
epsilon = [2.],
sigma = [3.],
segment = [4.],
k = [0.0;;], #matrix
n_H = [1],
n_e = [1],
epsilon_assoc = Dict((("a1","e"),("a1","H")) => 1000.),
bondvol = Dict((("a1","e"),("a1","H")) => 0.001)))
PCSAFT{BasicIdeal} with 1 component:
"a1"
Contains parameters: Mw, segment, sigma, epsilon, epsilon_assoc, bondvol
dense
option in AssocOptions
is deprecated and it will be removed on 0.5.0. the sparse solver is not used anymore, the dense solver has performance advantages in all cases.@registermodel
(#157)Closed issues:
@registermodel
(#157)Merged pull requests:
NamedTuple
to userlocations kwarg (#156) (@longemen3000)Published by longemen3000 over 1 year ago
@newmodel
,@newmodelsimple
and@newmodelgc
macros had a bug where some structs and types didn't have the proper namespace (#154)Published by longemen3000 over 1 year ago
fixed bug on Michelsen TP flash introduced in the last release.