0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

[デジタル開発]気体の物性をPythonで自動取得

Posted at

#Pythonで気体物性を取得する

▶︎ 気体の物性を扱えるライブラリは以前はあまりなかったのですが便利なものも出てきています。

ThermodynamicProperty.py
import pyromat as pm
import numpy as np
import matplotlib.pyplot as plt

T   = np.linspace(300.,5000.,201)
air = pm.get('ig.air')

plt.xlabel('Temperature[K]')
plt.ylabel('Cp[-]')
plt.plot(T, air.cp(T))
plt.show()

plt.xlabel('Temperature[K]')
plt.ylabel('Cv[-]')
plt.plot(T, air.cv(T))
plt.show()

plt.xlabel('Temperature[K]')
plt.ylabel('gamma=Cp/Cv[-]')
plt.ylim([1.0,1.5])
plt.plot(T, air.cp(T)/air.cv(T))
plt.show()

E0264058-4D69-4FFE-BF82-63026E57EEC2.jpeg

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?