Skip to main content

WaterProperties. ML Automation of construction

Introduction

This library is a collection of functions for calculating various thermodynamic properties of water and steam. The library is based on the international formulation IAPWS (International Association for the Properties of Water and Steam) and allows for the calculation of properties of water and steam over a wide range of temperatures and pressures.

SchemeWork.png

The module also is based on the following article:
Library of functions for calculating the properties of water and steam
Which is written in the Visual Basic programming language.

Quick Guide

Install library, use the pip install WSAProperties construct.
Using the library is as simple and convenient as possible:

First, import everything or needed functions from the library (use the from WSAProperties import * construct).
Second, you can use any function from the library (use the from WSAProperties import any_function construct).

Example Usage

import WSAProperties

t = 25  # temperature in degrees Celsius
p = 101325  # pressure in Pascals

# calculate the density of water
density = WSAProperties.Density(t, p)
print("Density of water:", density, "kg/m^3")

# calculate the specific entropy of water
entropy = WSAProperties.Specific_Entropy(t, p)
print("Specific entropy of water:", entropy, "J/kg·K")

Functions

The purpose of each of the functions is contained directly in the name.

Water and steam part

The part of water and steam in library includes the following functions:

  • Region(t, p)
  • Density3(t, p)
  • Helmholtz_Energy(t, ro)
  • Pressure3(t, ro)
  • Specific_Energy3(t, ro)
  • Specific_Entropy3(t, ro)
  • Specific_Enthalpy3(t, ro)
  • Heat_Isobary3(t, ro)
  • Heat_Isochorny3(t, ro)
  • Sound_Speed3(t, ro)
  • Gibbs_Energy(t, p)
  • Specific_Volume(t, p)
  • Density(t, p)
  • Specific_Energy(t, p)
  • Specific_Entropy(t, p)
  • Specific_Enthalpy(t, p)
  • Heat_Capacity_Isobaric(t, p)
  • Heat_Capacity_Isochoric(t, p)
  • Speed_Sound(t, p)
  • Saturation_Temperature(p)
  • Saturation_Pressure(t)
  • Border_Temperature(p)
  • Border_Pressure(t)
  • Viscosity(t, p)
  • Density_MI(t, p)
  • Specific_Enthalpy_MI(t, p)
  • JF(t, p, Trigger, reg)

Air Part

Library also have formuls and thermal properties calculations for air:

  • air_calc(A, B)

Additional Funcs Part

These functions are rarely used and do not belong to one of the W/S/A.
They are needed to determine the additional features:

  • lambda_calc(B)
  • ksi_calc(A)

References

Mikhail and Lev's DevTeam

Metadata

Release files for WSAProperties 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for WSAProperties 0.2.1
File Size Uploaded Provenance Actions
wsaproperties-0.2.1.tar.gz 181.4 kB Without provenance Details for wsaproperties-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for WSAProperties 0.2.1
File Interpreter ABI Platform Actions
wsaproperties-0.2.1-py3-none-any.whl Python 3 none any Details for wsaproperties-0.2.1-py3-none-any.whl

Total release size: 192.9 kB

Release files / wsaproperties-0.2.1.tar.gz

Download URL wsaproperties-0.2.1.tar.gz
Size 181.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f0678b5c6163cf232aa1a3e8ac4f6ac54f49c833f9ba557edb0b9baac2bd4dba
BLAKE2b-256 checksum
How to use checksums
ec78aa57a623aeee8d5259c8b082f1ff556912d0fb9d7767e96d9a05a8633a24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.0

Release files / wsaproperties-0.2.1-py3-none-any.whl

Download URL wsaproperties-0.2.1-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ebe1a35103231415e58dc786cdd7c2b6e46f6da4973fd807a32647da2a2d631e
BLAKE2b-256 checksum
How to use checksums
8dd041076b1b10d19a3f09a379ce98fb0ac9b525ac056ab50cdcb92d99b909ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.0

Security for WSAProperties 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page