From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3564/CH1/EX1.7/Ex1_7.sce | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 3564/CH1/EX1.7/Ex1_7.sce (limited to '3564/CH1/EX1.7/Ex1_7.sce') diff --git a/3564/CH1/EX1.7/Ex1_7.sce b/3564/CH1/EX1.7/Ex1_7.sce new file mode 100644 index 000000000..3794091ed --- /dev/null +++ b/3564/CH1/EX1.7/Ex1_7.sce @@ -0,0 +1,29 @@ + +// Display mode +mode(0); + +// Display warning for floating point exception +ieee(1); + +clc; +disp("Introduction to Fluid Mechanics, 3rd Ed. William S. Janna Chapter - 1 Example # 1.7 ") + +//Using Appendix table A.6 for properties of air +//Specific heat of air in Btu/slag +cp = 7.72; +//Specific heat ratio gamma for air is +gamma = 1.4; +//Specific heat at constant volume of air in Btu/slag.R +cv = cp/gamma; + +//Inital temperature in degree F +T1 = 70;//Symbol is assumed for computation +//Final temperature in degree F +T2 = 110;//Symbol is assumed for computation +//Temperature difference deltaT in degree K +deltaT = T2-T1; + +//Change in internal energy in Btu/slag +disp("Change in internal energy in Btu/slag is") +deltau = cv*deltaT +//Answer varies slightly because of round-off error -- cgit