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.05/4_05.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 812/CH4/EX4.05/4_05.sce (limited to '812/CH4/EX4.05') diff --git a/812/CH4/EX4.05/4_05.sce b/812/CH4/EX4.05/4_05.sce new file mode 100755 index 000000000..27c799ef0 --- /dev/null +++ b/812/CH4/EX4.05/4_05.sce @@ -0,0 +1,16 @@ +//Scale// +pathname=get_absolute_file_path('4.05.sce') +filename=pathname+filesep()+'4.05-data.sci' +exec(filename) +//Weight of water in the tank(in lbf): +d1=62.4; +WH2O=d1*A*h +v=-5; +//Total body force in negative y direction(lbf): +function y=f(A),y=-v*d2*V1,endfunction +F=intg(0,A1,f) +//Force of scale on control volume(in kN): +Ry=W+WH2O-F +printf("\n\nRESULTS\n\n") +printf("\n\nScale Reading: %.3f lbf\n\n",Ry) + -- cgit