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.13.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.13-py3-none-any.whl (43.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: absorptionlib-1.0.13.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.13.tar.gz
Algorithm Hash digest
SHA256 49e0d3235608d184d059f58154c9aa86a3d91d7bd7318e3b2605e6d4c40c5b76
MD5 b70d3e0d1629b519b65ff612d502cf5b
BLAKE2b-256 84acbf241a92343937da0b28e99d16dc078cf7ec2f2293140234405634692295

See more details on using hashes here.

File details

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

File metadata

  • Download URL: absorptionlib-1.0.13-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.13-py3-none-any.whl
Algorithm Hash digest
SHA256 5d54816acf514d868f9f321d4b370c2ff42ddd02b1568f9c9ceb60b84b85e905
MD5 056743265d729ee77d28abdbfdb34252
BLAKE2b-256 2e9a5b68c513cd094278e6925f1fbad96a8a6c2aae7cad318d7b7470f3476f49

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