Skip to content

Commit 8f0423f

Browse files
committed
Update 1_Properties.ipynb
1 parent edd4997 commit 8f0423f

1 file changed

Lines changed: 31 additions & 8 deletions

File tree

notebooks_en/1_Properties.ipynb

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"\n",
7676
"Examples of familiar properties are Temperature $T$, Pressure $P$, mass $m$, volume $V$, and density $\\rho$. Properties that scale in proportion to mass are called extensive. Those that do not change if mass is changed are called **intensive**.\n",
7777
"\n",
78-
"One way to visualize the difference between extensive and intensive properties is to imaging a block of matter with uniform properties (every spatial point in the block looks the same). If the block is cut in half, which properties are also cut in half, and which ones remain the same? The following figure shows some examples:\n",
78+
"One way to visualize the difference between extensive and intensive properties is to imagine a block of matter with uniform properties (every spatial point in the block looks the same). If the block is cut in half, which properties are also cut in half, and which ones remain the same? The following figure shows some examples:\n",
7979
"\n",
8080
"<img src=\"../images/extensive vs intensive.png\" width=\"500\">\n",
8181
"\n",
@@ -229,14 +229,14 @@
229229
"source": [
230230
"m = ct.Methane()\n",
231231
"\n",
232-
"# set the temperature of water to 99 C, 1 atmosphere\n",
232+
"# set the temperature of methane to -162 C, 1 atmosphere\n",
233233
"T = -162 + 273.15\n",
234234
"m.TP = T, P_atm\n",
235235
"print('Temperature =',m.T,'K')\n",
236236
"print('Specific volume =',m.v,'m^3/kg')\n",
237237
"print('\\n') # print a blank line\n",
238238
"\n",
239-
"# set the temperature of water to 101 C, 1 atmosphere\n",
239+
"# set the temperature of methane to -161 C, 1 atmosphere\n",
240240
"T = -161 + 273.15\n",
241241
"m.TP = T, P_atm\n",
242242
"print('Temperature =',m.T,'K')\n",
@@ -366,12 +366,17 @@
366366
"\n",
367367
"w.PX = P_atm, 0 # set the quality x = 0 to find the point when boiling starts (at sea level)\n",
368368
"vf = w.v # the saturated liquid specific volume\n",
369+
"print('vf=',vf,'m3/kg')\n",
369370
"\n",
370371
"w.PX = P_atm, 0.5 # set the quality x = 0.5 to find the point when boiling is halfway done\n",
371372
"vhalf = w.v # specific volume of the liquid-vapor mixture\n",
373+
"print('vhalf=',vhalf,'m3/kg')\n",
372374
"\n",
373375
"w.PX = P_atm, 1 # set the quality x = 1 to find the point when boiling ends\n",
374376
"vg = w.v # the saturated vapor specific volume\n",
377+
"print('vg=',vg,'m3/kg')\n",
378+
"\n",
379+
"print('vhalf/vg=',vhalf/vg)\n",
375380
"\n",
376381
"T_array = np.linspace(15,150) + 273.15 # temperature range: 15-150 deg. C, converted to K\n",
377382
"v_array = np.zeros_like(T_array) # create an array of 0s to store the specific volumes at each temperature\n",
@@ -393,7 +398,18 @@
393398
"\n",
394399
"The star on the right represents the completion of boiling at this pressure. This is called a **saturated vapor** state. Thermodynamic properties in this state are usually denoted with a subscript 'g' for gas. Hence, the specific volume at this state is denoted $v_g$.\n",
395400
"\n",
396-
"Note that the middle star does not occur halfway between the other two stars. Remember that this middle star represents the point at which half the mass is liquid and half is vapor. The overall density of the liquid+vapor at this point is closer to the density of the pure vapor because the liquid does not take up nearly as much volume, so overall the density is very low. Hence, the specific volume, which is just the inverse of density, is close to its pure vapor value."
401+
"Note that the middle star does not occur halfway between the other two stars. Remember that this middle star represents the point at which half the mass is liquid and half is vapor. Even thoug the specific volume vhalf is very close to half of vg (saturated vapour specific volume), the use of a logarythmic axis in a range that goes from 0.001 to 1.6 means 0.8 is plotted much closer to 1.6. If a linear axis is used, the point is indeed in the middle."
402+
]
403+
},
404+
{
405+
"cell_type": "code",
406+
"execution_count": null,
407+
"metadata": {},
408+
"outputs": [],
409+
"source": [
410+
"plt.plot(v_array,T_array-273.15,'b',[vf, vhalf, vg],[Tsat-273.15, Tsat-273.15, Tsat-273.15],'r*')\n",
411+
"plt.ylabel('Temperature [$^\\circ C$]')\n",
412+
"plt.xlabel('Specific volume [$m^3/s$]');"
397413
]
398414
},
399415
{
@@ -534,11 +550,11 @@
534550
"\n",
535551
"Let's look at some examples of thermodynamic processes (converting a substance from one state to another), and how we can plot the path of a process on a T-v diagram.\n",
536552
"\n",
537-
"**Example:** Water is stored inside a rigid tank with an initial temperature $T_1 = 500 ^\\circ C$ and pressure $P_1 = 2.0 MPa$. The water is cooled until $T_2 = 150 ^\\circ C$. Find the final pressure $P_2$ and plot this process on a T-v diagram.\n",
553+
"**Example:** Water is stored inside a closed rigid tank with an initial temperature $T_1 = 500 ^\\circ C$ and pressure $P_1 = 2.0 MPa$. The water is cooled until $T_2 = 150 ^\\circ C$. Find the final pressure $P_2$ and plot this process on a T-v diagram.\n",
538554
"\n",
539555
"<img src=\"../images/ex water cooling.png\" width=\"200\">\n",
540556
"\n",
541-
"Because the process takes place in a rigid tank, the mass and volume of water remain constant throughout the process. Therefore, the specific volume remains constant too. We can write this as $v_1 = v_2$. Let's summarize:\n",
557+
"The tank is closed, therefore the mass of water remains constant. Also, because the process takes place in a rigid tank, the volume of water remain constant throughout the process. Therefore, the specific volume remains constant too. We can write this as $v_1 = v_2$. Let's summarize:\n",
542558
"\n",
543559
"**State 1:** ***Known:*** $T_1,P_1$, ***Unknown:*** $v_1$\n",
544560
"\n",
@@ -669,7 +685,7 @@
669685
"source": [
670686
"<a id='phasestate'></a>\n",
671687
"\n",
672-
"### Determining Phase from Therodynamic State\n",
688+
"### Determining Phase from Thermodynamic State\n",
673689
"\n",
674690
"From plots like the T-v diagram shown above, it is easy to determine the phase of the substance (in this case water) at the beginning and end of the process. The way we do this is to look at where the points lie relative to the saturation curves.\n",
675691
"\n",
@@ -917,6 +933,13 @@
917933
"css_file = '../style/custom.css'\n",
918934
"HTML(open(css_file, \"r\").read())"
919935
]
936+
},
937+
{
938+
"cell_type": "code",
939+
"execution_count": null,
940+
"metadata": {},
941+
"outputs": [],
942+
"source": []
920943
}
921944
],
922945
"metadata": {
@@ -935,7 +958,7 @@
935958
"name": "python",
936959
"nbconvert_exporter": "python",
937960
"pygments_lexer": "ipython3",
938-
"version": "3.6.5"
961+
"version": "3.7.3"
939962
}
940963
},
941964
"nbformat": 4,

0 commit comments

Comments
 (0)