Skip to content

Commit 75a1b44

Browse files
authored
Update README.md
1 parent ee7b542 commit 75a1b44

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ conda install -c conda-forge neqsim
7070
### Try it now
7171

7272
```python
73-
from neqsim.thermo import fluid
73+
from neqsim.thermo import fluid, TPflash, printFrame
7474

7575
# Create a natural gas fluid
7676
fl = fluid('srk')
@@ -81,9 +81,12 @@ fl.setTemperature(25.0, 'C')
8181
fl.setPressure(60.0, 'bara')
8282
fl.setMixingRule('classic')
8383

84-
from neqsim.thermo import TPflash, printFrame
8584
TPflash(fl)
8685
printFrame(fl)
86+
87+
print(f"Gas density: {fl.getPhase('gas').getDensity('kg/m3'):.2f} kg/m3")
88+
print(f"Gas viscosity: {fl.getPhase('gas').getViscosity('kg/msec'):.6f} kg/(m*s)")
89+
print(f"Z-factor: {fl.getPhase('gas').getZ():.4f}")
8790
```
8891

8992
---

0 commit comments

Comments
 (0)