Lab5

pdf

School

Pennsylvania State University *

*We aren’t endorsed by this school

Course

301

Subject

Mechanical Engineering

Date

Feb 20, 2024

Type

pdf

Pages

9

Uploaded by LieutenantScorpion3921

Report
BME 301 clc,clear Problem 1 %B. %plotting several plots vs time open_system( "Lab5_pb1" ) sol1 = sim( 'Lab5_pb1.slx' ); figure; subplot(2,2,1) plot(sol1.tout,sol1.pb1(:,1)) xlabel( 'Time' ) ylabel( 'Vin' ) title( 'V input vs Time' ) subplot(2,2,2) plot(sol1.tout,sol1.pb1(:,2)) xlabel( 'Time' ) ylabel( 'CO' ) title( 'CO vs Time' ) subplot(2,2,3) plot(sol1.tout,sol1.pb1(:,3)) xlabel( 'Time' ) ylabel( 'MAP' ) title( 'MAP vs Time' ) subplot(2,2,4) plot(sol1.tout,sol1.pb1(:,4)) xlabel( 'Time' ) ylabel( 'Vout' ) title( 'V Output vs Time' ) 1
print( '-sLab5_pb1' , '-djpeg' , 'Lab5_pb1.jpeg' ); image_1 = imread( 'Lab5_pb1.jpeg' ); figure; imshow(image_1); %C. open_system( "Lab5_pb1_partc" ) open_system( "Lab5_pb1_partc.slx" ); sol2 = sim( 'Lab5_pb1_partc.slx' ); figure; subplot(3,1,1) plot(sol2.tout,sol2.pb1p3(:,1)) xlabel( 'Time' ) ylabel( 'Vin' ) title( 'V input vs Time' ) subplot(3,1,2) 2
plot(sol2.tout,sol2.pb1p3(:,2)) xlabel( 'Time' ) ylabel( 'CO' ) title( 'CO vs Time' ) subplot(3,1,3) plot(sol2.tout,sol2.pb1p3(:,3)) xlabel( 'Time' ) ylabel( 'MAP' ) title( 'MAP vs Time' ) %D. %In the healthy system, the heart has enough power to pump the blood %through all of the parts of the body. However, when they have the heart %failure, the heart is not enough to pump the blood to overall body, that %some of them are left over in the part of body that is far away from %heart. One example is feet which is a place that swell happens. Since the %blood retains in the part of the feet, the tissue absorbs the fluid and it %is leading to swell. Problem 2 %A. del_P = 120-80; del_V = 130-50; 3
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
C_A = del_V/del_P; %B. %E. open_system( "Lab5_pb2_partc" ) sol3 = sim( "Lab5_pb2_partc.slx" ); print( '-sLab5_pb2_partc' , '-djpeg' , 'Lab5_pb2_partc.jpeg' ); image_3 = imread( 'Lab5_pb2_partc.jpeg' ); figure; imshow(image_3); 4
figure; plot(sol3.tout,sol3.Pb2_partd(:,1)) xlabel( 'Time' ) ylabel( 'Aortic Pressrue' ) title( 'Healthy Model' ) figure; plot(sol3.tout,sol3.Pb2_partd(:,2)) xlabel( 'Time' ) ylabel( 'Aortic Pressrue' ) title( 'Aortic Aneurysm' ) 5
figure; plot(sol3.tout,sol3.Pb2_partd(:,3)) xlabel( 'Time' ) ylabel( 'Aortic Pressrue' ) title( 'Atherosclerosis' ) 6
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
F. Aortic aneutysm is some part of blood vessel getting bigger cause of weakened blood vessel. I doubled the arterial compliance. It meets my expectation because as I doubled the value, the the pressure value increased. G. Atherosclerosis is the disease of size of the artery decreases due to the plague. I doubled the TPR value and halfed the arterial compliance. It meets my expectation because compared to the healthy model, the graph is reversed and the osicllation seems to be halfed. H. %I. R = 19*60; num = R; %healthy model num1 = R; %aortic aneurysm 7
num2 = R*2; %Atherosclerosis denom = [R*0.5, 1]; %healthy model denom1 = [R*1, 1]; %aortic aneurysm denom2 = [R*0.25, 1]; %Atherosclerosis tf_model = tf(num,denom); %healthy model tf_model1 = tf(num1,denom1); %aortic aneurysm tf_model2 = tf(num2,denom2); %Atherosclerosis figure; bodeplot(tf_model, "b" ); %healthy model hold on bodeplot(tf_model1, "k:" ) %aortic aneurysm bodeplot(tf_model2, "m--" ) %Atherosclerosis hold off legend( 'Healthy Model' , 'Aortic Aneurysm' , 'Atherosclerosis' ) J. For all healthy and 2 diseases, they are going to have the same number of zero and pole but it is just that the location of where the pole is starting is different. If this is a filter, it would be a low-pass filter and first-order. For the stop band, aneurysm is going to be the shortest and atherosclerosis will be the longest. %K. figure; 8
step(tf_model, "b" ); %healthy model hold on step(tf_model1, "k:" ); %aortic aneurysm step(tf_model2, "m--" ); %Atherosclerosis hold off legend( 'Healthy Model' , 'Aortic Aneurysm' , 'Atherosclerosis' ) L. For the Aortic Aneurysm, during the curving point, the value is different but after 6000 seconds it shows the same thing as healthy model. However, for atherosclerosis the amplitude is totally different from the normal curve. 9
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help