Releases: Heineken/BrineProp
Releases · Heineken/BrineProp
Corrected Excel degassing example
Added examples to Excel version
Added ignore option to resistivity function to make Ucok validation work
Added well hydraulics example
Added salinity inversion example
Bug fixes and unit tests
- harmonized calculation results between VBA and Modelica by enabling extreme cases (pure water evaporation)
- added unit test sheet (incomplete) and script to run all examples in Modelica, fixed examples
- added plot scripts to examples
- added degassing example to Excel
- removed some hardcoded component assignments
Added electrical resistivity function
- added resistivity functions by Ucok1980 + mixture ansatz in VBA and Modelica
- bug fixes in IAPWS functions
Enabled pure NaCl (h, cp)
- Enabled calculation of h and cp for pure NaCl in VBA and Modelica
- Fixed non-working detection of wrong mass vector if Xi is passed (VBA)
- removed some absolute indices in cp functions (didn't work with 3 salts model)
Some bug fixes and new ignore flag management
Changelog:
- added check to check length of flag vectors
- Changed flag management so that ignore flags can be set on extend and instantiation
- Removed absolute salt references to enable Medium with different number of salts
- Added BrineProp.Brine3salts3gas, which Brine5salts3gas extends now
- Added a check and ignore flag for Sr in Duan models for density and viscosity
- Fixed 1phase model and made enthalpy function (more) generic
- Added info about PedanticMode
- Small bug fixes in VBA (allow pure gas calculation, check mass vector in solubility functions)
More efficient repeated calculations of one state in Excel
With this release, the calculated VLE state can be stored as a string (in JSON format) and then be used as input (alternative to p,T,X) for further calculations, thus skipping the VLE calculation.
Bug fixes
using assertionLevel, bug fix
-warnings and errors are thrown using assert and an assertionLevel flag
-fixed: Molality was calculated as mole fractions
Bugfix in VBA, set ignore flags on instantiation
- The flags to ignore p-T range limits or the warning level (off/warning/error) can be set in the model that uses the Medium (instead of changing it in the BrineProp package):
Medium = BrineProp.Brine5salts3gas(outOfRangeMode=2,ignoreLimitN2_T=true)
- Added a vacuum gas medium with zero properties
- Improved compatibility to OpenModelica (still not really running it, though)
- Bugfixes