2026-01-16
- Fixed
UnboundLocalErrorbug when performing multiplication in an empty array.
2025-12-23
- Add category
slip coefficient(default unit:m3/Pa.s). - Add category
fluid mobility(default unit:s/m2). - Add category and quantity type
time per per area(s/m2).
2025-09-17
- Added new unit: "Kelvin per atm" (
K/atm). - Added support for Python 3.13.
- Dropped support for Python 3.8 (EOL).
- Added support for Python 3.11 and 3.12.
- Dropped support for EOL Python 3.6 and 3.7.
- Add categorie and quantity type
henry solubility coefficient(mol/m3.Pa) - Add categorie and quantity type
crystallization kinetic rate(mol/m2.s.Pa)
- Define the category and quantity type
density derivative in respect to enthalpy``(default unit: ``kg2/m3.J).
- Define categories
forchheimer linear productivity indexandforchheimer linear productivity index. - Define quantity types
forchheimer linear productivity indexandforchheimer quadratic productivity index. - Add units to categories
forchheimer linear productivity indexandforchheimer quadratic productivity index.
- Standardize the usage of
lbmol - Add more valid units for
mole per masscategory
- Add more units for
mole per massquantity. - Define a
molalitycategory.
- Add
cubic meter per day per kilogram-force per square centimeter(m3/d/kgf/cm2) unit toproductivity indexcategory. - Add gauge pressures units
Pa(g),kPa(g),bar(g), andkgf/cm2(g)topressurecategory.
- Add
mole per massquantity (mol/kg).
- Update
Newton second per meterunit fromNs/mtoN.s/mto get unit display consistent with other units in the same category (support for the old unit input added). - Add
force per velocity squaredquantity (N.s2/m2,lbf.s2/ft2,lbf.s2/in2,kgf.s2/m2).
barrilis now fully type annotated, being tested withmypy.ArrayandFixedArrayareGenericsubclasses, parametrized by the container type.
- Fixed typos in unit names:
kilkodynes(unit=kdyne) fixed tokilodynes,killowatts/cubic metre degree Kelvin(unit=kW/m3.K) fixed tokilowatts/cubic metre degree Kelvin.
- Add new unit: "Stokes" (
St). - Use
TypeCheckingSupportfromoop-ext 1.1. - Add
cubic feet per day per psi(ft3/psi.d) unit toproductivity indexcategory. - Add
calories/metre hour degree Celsius(cal/m.h.degC) unit tothermal conductivitycategory. - Add
calorie/hour square metre deg C(cal/h.m2.degC) unit toheat transfer coefficientcategory. - Add
std cubic metres/second(sm3/s) unit tostandard volume per timecategory. - Add
million std cubic feet/stock tank barrel(MMscf/stb),stock tank barrel/std cubic feet(stb/scf) andstock tank barrel/million std cubic feet(stb/MMscf) units tostandard volume per standard volumecategory.
- Removing
thermodynamic temperatureas default category fordegFanddegRunits.
- New
classmethodArray.FromScalarsthat creates anArrayfrom aList[Scalar]. - Add new unit: "barrel per second" (
bbl/s).
- Add new category: "standard volume per standard volume".
- Move unit
sm3/sm3from "volume per volume" to "standard volume per standard volume".
_foundationhas been renamed to_util, and a lot of functions which were not being used anymore have been removed.- Add new unit category mass temperature per mol (
kg.K/mol). - Some units have been renamed as they were deemed out-of-place in the oil industry to something more usual (for example,
1000ft3/dbecameMcf/d). The old representation of those units is still supported, but they will be automatically translated duringQuantitycreation, so this change should not affect users much. - Fix division
1.0 / awhereais aScalarorArrayand also add support for floor division, i.e., operations likea // bwhereaandbareScalarorArray(and combinations withfloatorint). - Add new unit category for Joule-Thomson coefficient (
K/Pa). - Add new temperature unit for density derivative in respect to temperature (
kg/m3.K).
- Fixed bug in
/and-operators forFixedArray.
- Add unit system.
- Change export to include ICurve and Curve and exclude IReadOnlyScalar.
- Add curve implementation.
- Add support to interfaces from oop-ext.
- Drop support to Python 2.
Quantity.CheckValuenow raisesQuantityValidationErrorinstead ofValueError.
- Add new category for "concentration ratio".
- Add "per micrometre" unit to "per length" category.
- Remove internal
barril.fixturesmodule as it is not necessary or part of the public API.
- Add units for defining Spring-Dashpot movements.
- Add
numberandfractionproperties toFractionValue. - Add
unitread-only property toQuantity.
- First feature release.
- First release on PyPI.