Skip to content

Commit

Permalink
small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoMVale committed Dec 28, 2023
1 parent 40b181c commit a8cc641
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 59 deletions.
44 changes: 32 additions & 12 deletions docs/tutorials/thermal_conductivity.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@
}
],
"source": [
"# ethylene constants\n",
"# Ethylene constants\n",
"M = 28.05e-3 # kg/mol\n",
"Tc = 282.4 # K\n",
"Pc = 50.4e5 # Pa\n",
"Zc = 0.280\n",
"w = 0.089\n",
"\n",
"# molar volume estimate\n",
"# Molar volume estimate\n",
"eos = PengRobinson(Tc, Pc, w)\n",
"v = eos.v(T=350., P=100e5, y=np.array([1.])) # m³/mol\n",
"v"
Expand Down Expand Up @@ -264,7 +264,7 @@
{
"data": {
"text/plain": [
"0.03832154985250473"
"array([0.00011174])"
]
},
"execution_count": 11,
Expand All @@ -280,10 +280,30 @@
"Zc = np.array([0.280, 0.274])\n",
"w = np.array([0.089, 0.144]) # kg/kg \n",
"\n",
"# Molar volume estimate\n",
"eos = PengRobinson(Tc, Pc, w)\n",
"y = np.array([0.5, 0.5]) # molmol\n",
"v = eos.v(T=350., P=100e5, y=y) # m³/mol\n",
"\n",
"v"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0.03832154985250473"
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"KVMXPC_stiel_thodos(v[0], y, M, Tc, Pc, Zc, w)"
]
},
Expand All @@ -302,7 +322,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 13,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -318,7 +338,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -331,7 +351,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 15,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -365,7 +385,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 16,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -382,7 +402,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 17,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -395,7 +415,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 18,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -408,7 +428,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 19,
"metadata": {},
"outputs": [
{
Expand All @@ -417,7 +437,7 @@
"0.10808664126899356"
]
},
"execution_count": 18,
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
}
Expand Down
105 changes: 58 additions & 47 deletions docs/tutorials/viscosity.ipynb

Large diffs are not rendered by default.

0 comments on commit a8cc641

Please sign in to comment.