Page 1 of 1

Vertical Sinking/Floating Object with Drag Force My Solutions A body with mass mis sinking/floating vertically with a ve

Posted: Wed Apr 27, 2022 8:19 pm
by answerhappygod
Vertical Sinking Floating Object With Drag Force My Solutions A Body With Mass Mis Sinking Floating Vertically With A Ve 1
Vertical Sinking Floating Object With Drag Force My Solutions A Body With Mass Mis Sinking Floating Vertically With A Ve 1 (69.51 KiB) Viewed 28 times
Vertical Sinking/Floating Object with Drag Force My Solutions A body with mass mis sinking/floating vertically with a velocity vo and is under the influence of gravitational force, bouyancy and drag force. The drag force has a magnitude of Bv2 and it's direction is opposite the direction of motion. The mass amount displaced by the liquid is m,. Calculate the position and velocity of the body using Euler method given the initial position yo with the parameters dt and number of steps. Take note that if m, > m, the body will float. Otherwise, it will sink. Function ® Save C Reset DI MATLAB Documentation 1 function [y, vy]=water(m, mv,yo,vo,b,dt, steps) 2 3 end Code to call your function ® C Reset 1 2 Vo=0; 3 yo=0; 4 m=10; 5 mv=15; 6 b=1; 7 dt=0.1; 8 steps=200; 9 10 11 [ys, vy]=sinkingb(m, mv, yo,vo, b, dt, steps); 12