Skip to content

Commit

Permalink
add Python binding
Browse files Browse the repository at this point in the history
  • Loading branch information
thermalogic committed Aug 10, 2023
1 parent d4583ad commit c0dfa4e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "if97"
version = "1.4.0"
edition = "2021"
authors = ["Cheng Maohua <cmh@seu.edu.cn>"]
description = "The high-speed IAPWS-IF97 package"
description = "The high-speed IAPWS-IF97 package with C and Python binding"
readme = "README.md"
homepage = "https://github.com/thermalogic/"
repository = "https://github.com/thermalogic/IF97/"
Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,14 @@ pip install seuif97
```python
from seuif97 import *

p=16
OH=4
OS=5

p=16.0
t=535.1
h=pt(p,t,4)
s=pt(p,t,5)
print(f"p:{p}, t={t} h={h:.3f} s={s:.3f}")
h=pt(p,t,OH)
s=pt(p,t,OS)
print(f"p={p}, t={t} h={h:.3f} s={s:.3f}")
```

## Properties
Expand Down

0 comments on commit c0dfa4e

Please sign in to comment.