diff options
Diffstat (limited to '172/CH3/EX3.9/ex9.sce')
-rwxr-xr-x | 172/CH3/EX3.9/ex9.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/172/CH3/EX3.9/ex9.sce b/172/CH3/EX3.9/ex9.sce new file mode 100755 index 000000000..d1b676a4e --- /dev/null +++ b/172/CH3/EX3.9/ex9.sce @@ -0,0 +1,12 @@ +//example 9
+//calculating pressure inside tank
+clear
+clc
+V=0.5 //volumr of tank in m^3
+m=10 //mass of ideal gas in kg
+T=25 //temperature of tank in Celsius
+M=24 //molecular mass of gas in kg/kmol
+Ru=8.3145 //universal gas constant in kN-m/kmol-K
+R=Ru/M //gas constant for given ideal gas in kN-m/kg-K
+P=m*R*(T+273.2)/V //pressure inside tank
+printf("\n hence,pressure inside tank is P = %.0f kPa. \n",P)
\ No newline at end of file |