Skip to main content

A package for substance properties for absorption systems

Project description

Package Description

This package contains thermophysical property data for the following solutions used in absorption:

  • NaOH-water
  • LiBr-water
  • LiCl-water
  • CaCl2-water

If you want to use this package, please cite:

Höffner et al. 2025 - Potentials of absorption thermal energy storage systems in seasonal application

DOI: https://doi.org/10.18462/iir.tptpr2025.1130

Installation and Unsage

pip install absorptionlib
# Import
from absorptionlib import NaOH, LiBr, LiCl, CaCl2

# Example Usage
p = 100000 # [Pa]
x = 0.4    # [%]  = [kgNaOH / kgSolution]
t_sat = NaOH.saturation_temperature(x, p)
print(t_sat)

Output

129.75

Quick documentation

Each of the submodules have their own "in-line" documentation, which can be called by the "documentation"-method. Each thermophysical property function has a separate docstring, which can be called by the "explain"-method.

# How to get quick documentation on the modules
NaOH.documentation() # or
LiBr.documentation() # or
LiCl.documentation() # or
CaCl2.documentation()

# How to get quick documentation for functions
NaOH.explain("enthalpy")    # returns docstring for NaOH.enthalpy
LiCl.explain("pTDiagram")   # returns docstring for LiCl.pTDiagram

Available Property-Functions

Function Name Description
saturation_temperature Calculate the boiling point temperature of solution.
enthalpy Calculate the enthalpy of the solution at a given temperature and concentration.
differential_enthalpy_AD Calculates the differential enthalpy of the solution.
saturation_pressure Calculate the equilibrium pressure of the solution.
saturation_concentration Calculates the saturation concentration of the solution based on the temperature and pressure.
density Calculate the density of a the solution.
specific_heat_capacity Calculate the specific heat capacity of the solution.
dynamic_viscosity Calculate the dynamic viscosity of the solution.
diffusion_coefficient Computes the diffusion coefficient of the solution.
solubility_temperature Calculate the crystallization temperature based on concentration.
hxDiagram Plots the enthalpy-concentration diagram for the respective solution.
pTDiagram Plots the pressure-temperature diagram the respective solutions.
crystallization_curve Plots the crystallization curve for the solution

Diagrams

As stated before, you can construct diagrams (pT-Diagram, hx-Diagram, crystallization-curve) with the package. For example:

NaOH.pTDiagram()

pT-Diagram

Note: The plots can be styled with usual matplotlib syntax. If the plot should be editable, use NaOH.pTDiagram(editablePlot=True). To reproduce the same-looking plot, set up matplotlib using:

# matplotlib font to geogia
import matplotlib.pyplot as plt
plt.rcParams['font.family'] = 'Georgia'
plt.rcParams['mathtext.fontset'] = 'custom'
plt.rcParams['mathtext.rm'] = 'Georgia'
plt.rcParams['mathtext.it'] = 'Georgia:italic'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

absorptionlib-1.0.14.tar.gz (40.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

absorptionlib-1.0.14-py3-none-any.whl (43.5 kB view details)

Uploaded Python 3

File details

Details for the file absorptionlib-1.0.14.tar.gz.

File metadata

  • Download URL: absorptionlib-1.0.14.tar.gz
  • Upload date:
  • Size: 40.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for absorptionlib-1.0.14.tar.gz
Algorithm Hash digest
SHA256 ad0321297d454d50a5bff773369ad89945f1a03d87a91d3381cd05e70ce39054
MD5 ade1a7117618d4598906ff6f7beac9ff
BLAKE2b-256 76daa5d1f160c1918b969256671cac4a1642262665ebbb75f0f135b653498301

See more details on using hashes here.

File details

Details for the file absorptionlib-1.0.14-py3-none-any.whl.

File metadata

  • Download URL: absorptionlib-1.0.14-py3-none-any.whl
  • Upload date:
  • Size: 43.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for absorptionlib-1.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 8215a82f544f311c02d8021f23cf45b1e06ada70ec9bb8fd38238489719a697c
MD5 f57cea689ba52975c2dc55f4db14a4a0
BLAKE2b-256 eac297c929a99e049f3a8748d461e45a22f96dc57011f7faf9c91344d5b3c7b3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page