Skip to content

Releases: thermohub/thermofun

Tests for Ryzhenko Bryzgalin model, possibility to append elements

30 Nov 11:43
5a781ae
Compare
Choose a tag to compare

Append a new element with data for substances and reactions related to the element.

database.appendData('Fe-speciation-thermofun.json')

Const correctness fixes in ThermoEngine and Database class

24 Apr 11:11
ec2cb95
Compare
Choose a tag to compare
Merge pull request #21 from allanleal/improve-const-correctness

Improve const-correctness for classes Database and ThermoEngine

Using units from database

09 Apr 12:35
6993519
Compare
Choose a tag to compare

If units are provided together with the properties and parameters in the database file, e.g.:

    "m_landau_phase_trans_props": {
        "values": [
            1926.8499755859,
            4,
            0.035000000149012
        ],
        "names": [
            "Tcr",
            "Smax",
            "Vmax"
        ],
        "units": [
            "degC",
            "J/(mol*K)",
            "J/bar"
        ]
    }

The user can provide parameters in any valid and convertible units, these will be converted to the default ones when reading the database file and used accordingly in the respective correction TPMethod.

BugFix

07 Apr 09:28
b3cfce7
Compare
Choose a tag to compare
  • fix check for H+ using symbol H+

  • fix for HKF properties calculation close to the critical point. (TdegC>=355 && Pbar<500), use equations (32)-(44) of Shock and others (1992) to compute the function g and its partial derivatives on region 2.

  • fix for calculation of reaction properties using logk_fpt_function

  • check if reaction / dependent substance methods are correctly defined to avoid the case when a substance is defined by a reaction with no TPMethods.

v0.3.1: Origin bucket (#18)

17 Feb 13:03
e3c2458
Compare
Choose a tag to compare
  • Database object can now be constructed using a file or a string containing a ThermoDataSet in valid JSON
  • Bug-fixes

Append data, reaction equation parsing, imporved json database structure

12 Dec 11:18
ae8feb6
Compare
Choose a tag to compare

Append data, reaction equation parsing, imporved json database structure

This release brings new functionality:

  • Append additional data to the database from provided files in json database format.
import thermofun as thermofun
database = thermofun.Database('slop98-thermofun.json')
database.appendData('additional-data-thermofun.json')
  • Calculate properties for a given reaction equation (reactants with with the symbols used in the equation should be present in the database)
import thermofun as thermofun
engine = thermofun.ThermoEngine('slop98-thermofun.json')
logK = engine.thermoPropertiesReaction(298.15, 1e5, "Cal = Ca+2 + CO3-2").log_equilibrium_constant.val
  • Database files have an improved JSON format. A thermofun database file contains 'substances', 'reactions', and 'elements' lists, plus additional keys with information about the ThermoDataSet.
{
  "thermodataset": "slop98-inorganic",
  "datasources": [
    "db.thermohub.org",
    "[1998SHO/EA]"
  ],
  "date": "10.12.2019 13:43:37",
  "substances": ["..."],
  "reactions": ["..."],
  "elements": ["..."]
}
  • using pytests in CI
  • removed version pinning from pybind11 and nlohmann json libs
  • bugfixes

v0.2.2: Merge pull request #12 from gdmiron/master

11 Nov 21:40
6d83402
Compare
Choose a tag to compare

Improved database parsing (simpler thermodynamic database format)

17 Oct 08:23
Compare
Choose a tag to compare

bug fixes in parser, enabling the use of simplified database files containing only fields that are necessary for calculation.

v0.2.0: Merge pull request #9 from gdmiron/master

26 Sep 15:59
9202312
Compare
Choose a tag to compare

produce dynamic library using MSVC

31 Aug 21:27
2ceefee
Compare
Choose a tag to compare
v0.1.15

produce dynamic library using MSVC