Skip to main content

Package for calculating the properties of water/steam/air

Project description

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 WSAProperties.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

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

wsaproperties-0.2.tar.gz (181.6 kB view details)

Uploaded Source

Built Distribution

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

wsaproperties-0.2-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file wsaproperties-0.2.tar.gz.

File metadata

  • Download URL: wsaproperties-0.2.tar.gz
  • Upload date:
  • Size: 181.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for wsaproperties-0.2.tar.gz
Algorithm Hash digest
SHA256 c4d1163f741e4d7754d039500658bb1a3c5d200cbf0c9240192f4e4a65758763
MD5 fb31372fb5653e045900a9365fe025a2
BLAKE2b-256 7022f464f59f3e292d4b95ba182b190963ffc69ad341b9f02c24c0e4af9f070f

See more details on using hashes here.

File details

Details for the file wsaproperties-0.2-py3-none-any.whl.

File metadata

  • Download URL: wsaproperties-0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for wsaproperties-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a985fd1cd22241284dfc00b4ad7996fe28cc27bf922a986b095baaeddbe3fc0c
MD5 42b758726e1646c8dba23161e7348a7c
BLAKE2b-256 0571fae83933a14dc0d877c3d6c43a8c54594c71e1b0b8030c2b867ca119c37e

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