summaryrefslogtreecommitdiff
path: root/2975/CH26/EX26.3w/Ex26_3w.sce
diff options
context:
space:
mode:
Diffstat (limited to '2975/CH26/EX26.3w/Ex26_3w.sce')
-rw-r--r--2975/CH26/EX26.3w/Ex26_3w.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/2975/CH26/EX26.3w/Ex26_3w.sce b/2975/CH26/EX26.3w/Ex26_3w.sce
new file mode 100644
index 000000000..cf8f89d1e
--- /dev/null
+++ b/2975/CH26/EX26.3w/Ex26_3w.sce
@@ -0,0 +1,25 @@
+//developed in windows 8 operating system 64bit
+//platform Scilab 5.4.1
+//example 26_3w
+
+clc;clear;
+//Given Data
+
+mass=1; //Mass of water (Unit: kg)
+temp=100; //Temperature of water (Unit : degree centigrade)
+density_water=1000; //Density of water (Unit: kg/m^3)
+density_steam=0.6; //Density of steam (Unit : kg/m^3)
+pressure=100*10^3; //Pressure of water(Unit : Pascal)
+latent_heat_vapor=2.25*10^6; //Latent heat of vapourzation of water (Unit : Joules/kg)
+
+//Calculation
+
+volume_water=mass/density_water; //Calculation of volume of water (Unit: m^3)
+volume_steam=mass/density_steam; //Calculation of volume of steam (Unit: m^3)
+increased_volume=volume_steam-volume_water; //Calculation of change in volume (Unit; m^3)
+work_done=pressure*increased_volume; //Calculation of work done (Unit: Joules)
+
+change_internal_energy=latent_heat_vapor-work_done; //Calculation of change in internal energy (Unit: Joules)
+
+
+disp(change_internal_energy,"The increase in internal energy of 1 kg water is (Unit:Joules)")