From 2953bf0cb422ee6cc7c6a6f41e7085900a41243c Mon Sep 17 00:00:00 2001 From: longemen3000 Date: Wed, 28 Jun 2023 16:18:36 -0400 Subject: [PATCH] bump version, add HISTORY and NEWS --- HISTORY.md | 8 ++++++++ NEWS.md | 16 ++++++++++++++-- Project.toml | 2 +- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 3e2c06b16..88b4dc63a 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,3 +1,11 @@ +# v0.4.12 + +## New Features + +- `@registermodel` macro is now a no-op. custom models that have a `components::Vector{String}` automatically support the printing interface and if they have `model.params.Mw`, they support molecular weight calculations. + +- Cubic roots now use a real solver. this allows more stability and correctness in challenging EoS + # v0.4.11 ## New Features diff --git a/NEWS.md b/NEWS.md index c2dcd8c68..86ead3eb1 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,16 @@ -# v0.4.12 +# v0.4.13 ## New Features -## Bug fixes \ No newline at end of file + +- (Experimental) Initial `Symbolics.jl` support for bulk properties on `EoSModel`. In particular, all Activity models, cubic models, SAFT models without association, and empiric models are supported. for example, this is now supported: + +```julia +@variables y(..)[1:4], n(..)[1:4] +mixture = UNIFAC(["water","ethanol","methanol","1-propanol"]) +moles = [n(t)[i] for i in 1:4] #Clapeyron accepts mole amounts, so it is not necessary to perform transformations to mole fractions +bc_l = y(t, 0.0) .~ activity_coefficient(mixture, 1.0, 298.15, moles) +``` + +## Bug Fixes + +- automatic precompile is disabled in this version. \ No newline at end of file diff --git a/Project.toml b/Project.toml index 406964bb5..57a0d0062 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Clapeyron" uuid = "7c7805af-46cc-48c9-995b-ed0ed2dc909a" authors = ["Hon Wa Yew ", "Pierre Walker ", "Andrés Riedemann "] -version = "0.4.12" +version = "0.4.13" [deps] BlackBoxOptim = "a134a8b2-14d6-55f6-9291-3336d3ab0209"