Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Fast calculation of thermophysical properties of water and steam in R

NotificationsYou must be signed in to change notification settings

omega1x/wsif97

Repository files navigation

License: GPL v3GitHub R package versionCRAN_Status_Badgewsif97 status badgeCodeFactorCodecov test coverage

R-package for fast calculation of thermophysical properties of water and steam as formulated byInternational Association for the Properties of Water and Steam (IAPWS).


⚠ The development and support of this package has been finally discontinued. UseCRAN-packageiapws instead.

Intro

The package is inspired byJava IF97 library andpython'siapws module and tries to bring similar functionality toR-community without unwanted external dependencies. At present the package grows in functionality smoothly as needed in conjunction with analytic requirements of the author's company.

Installation

For the present onlyr-universe version can be installed:

install.packages('wsif97',repos='https://omega1x.r-universe.dev')

ℹ The package is linked to and importsRcpp-package as the only dependency.

Usage

The usage ofwsif97 package is rather straightforward. Most of thermophysical properties are calculated bydirect vectorized functions of appropriate arguments:

## Calculate density (kg/m^3) of ordinary water at different temperatures## and pressures:>t<- c(300,500,300,700,1500,1500,2000)# [K]>p<- c(3,3,.35e-2,30,.5,30,30)# [MPa]>density<- tpr(t,p)# [kg/m^3]> print(density)[1]997.85294010831.657541050.02532198184.180168760.7222558643.33482271[7]32.11456228

For the present time the next thermophysical properties can be calculated.

PropertyDesignationUnits(T-p)-space
TemperatureTK-
PressurepMPa-
Specific volumevm³/kgtpv
Specific internal energyukJ/kgtpu
Specific entropyskJ/kg/Ktps
Specific enthalpyhkJ/kgtph
Specific isobaric heat capacitycpkJ/kg/Ktpcp
Specific isohoric heat capacitycvkJ/kg/Ktpcv
Speed of soundwm/stpw
Isobaric cubic expansion coefficientαv1/Ktpe
Isothermal compressibilityKT1/MPatpi
Mass densityρkg/m³tpr

SinceIndustrial Formulation abandons usage of iteration algorithms we similarly avoid using them in contrast topythoniciapws. So be ready to meet some inconsistencies when compare those results withwsif97.

About

Fast calculation of thermophysical properties of water and steam in R

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp