v0.5.0
New Features
- rework of
@newmodel
,@newmodelgc
andnewmodelsingle
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"]
- new macro
@newmodelsingleton
, that defines "singleton" EoSModels. - Rework of MultiParameter EoS. there are two new
EoSModels
that represent Empiric, Multiparameter EoS:SingleFluid
: for single component fluidsMultiFluid
: for multicomponent fluids, with specific mixing and departure rules
SingleFluid
andMultiFluid
constructors are capable of parsingCoolProp
JSON single component files. furthermore, you can use the availableCoolProp
single fluid library by just importingCoolProp
into the current working enviroment (using CoolProp
).
- Cubic models that have an alpha dependent of the acentric factor, can be built by passing
acentricfactor
directly touserlocations
, instead ofalpha_userlocations
(#188) - New Function:
RGas(model)
andRgas()
, that gives the value of the gas constant used by the model. defaults toClapeyron.R̄ = 8.31446261815324
- New model:
HelmAct
, to use multiparameter EoS + activity coefficient models as the departure. - New model:
XiangDeiters
- New model:
TholLJ
(used inLJRef
) - New model:
EmpiricIdeal
, the ideal part of a multiparameter model, to be used in conjuction with other EoS - New model:
AlyLeeIdeal
- New model:
CPLNGEstIdeal
(http://dx.doi.org/10.1016/j.jngse.2014.04.011) - CSVs allow defining a
sep
keyword in the inline CSV options:
Clapeyron Database File
my parameters [csvtype = like, sep = ;]
species,Mw
1,3,5,7-CYCLOOCTATETRAENE;156.22368
Breaking changes
IAPWS95
,PropaneRef
,Ammonia2023
are now of typeSingleFluid{EmpiricAncillary}
.GERG2008
,EOS-LNG
are now of typeMultiFluid{EmpiricAncillary,AsymmetricMixing,EmpiricDeparture}
@newmodel
macros don't require defining external constructors anymore.SpecialComp
(used bypharmaPCSAFT
) is now aClapeyronParam
instead of anEoSModel