From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2339/CH4/EX4.34.1/Ex4_34.sce | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 2339/CH4/EX4.34.1/Ex4_34.sce (limited to '2339/CH4/EX4.34.1/Ex4_34.sce') diff --git a/2339/CH4/EX4.34.1/Ex4_34.sce b/2339/CH4/EX4.34.1/Ex4_34.sce new file mode 100755 index 000000000..a848a827c --- /dev/null +++ b/2339/CH4/EX4.34.1/Ex4_34.sce @@ -0,0 +1,24 @@ +clc +clear + +Ms=20; //in kg +Mw=2; //in kg +Cps=2.1; //in kJ/kg K +x1=Ms/(Ms+Mw); //Dryness fraction + +//At 12 bar pressure +Hf1=798.6; //in kJ/kg +Hfg1=1986.2; //in kJ/kg + +//At 1 bar pressure +Hg2=2675.5; //in kJ/kg +Tsup=110+273; //in K +Tsat=99+273; //in K + +//For throttling, H1=H2 +H2=Hg2+(Cps*(Tsup-Tsat)); +x2=(H2-Hf1)/Hfg1; + +x=x1*x2; +printf('Dryness fraction of steam: %2.4f kJ',x); +printf('\n'); -- cgit