summaryrefslogtreecommitdiff
path: root/2975/CH26/EX26.3w/Ex26_3w.sce
blob: cf8f89d1e3ca1d0ba1c4ef160bcfb05c3ea55bb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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)")