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 --- 812/CH4/EX4.02/4_02.sce | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 812/CH4/EX4.02/4_02.sce (limited to '812/CH4/EX4.02/4_02.sce') diff --git a/812/CH4/EX4.02/4_02.sce b/812/CH4/EX4.02/4_02.sce new file mode 100755 index 000000000..a209b74e0 --- /dev/null +++ b/812/CH4/EX4.02/4_02.sce @@ -0,0 +1,20 @@ +//Mass flow// +pathname=get_absolute_file_path('4.02.sce') +filename=pathname+filesep()+'4.02-data.sci' +exec(filename) +//If I=integral of(pV.dA): +//For system: ICS=Iab+Ibc+Icd+Ida +//But ICS=0 + +//For Aab: +function p=f(y),p=-d*U*w*y^0,endfunction +IAab=intg(0,t,f) + +//For Acd: +function q=g(y),q=d*U*w*(2*y/t-(y/t)^2),endfunction +IAcd=intg(0,t,g) + +//Mass flow rate across surface bc(in kg/sec): +mbc=(-IAab-IAcd)/1000 +printf("\n\nRESULTS\n\n") +printf("\n\nMass flow rate across surface bc: %.4f kg/sec\n\n",mbc) -- cgit