Vertical Sinking/Floating Object with Drag Force My Solutions A body with mass mis sinking/floating vertically with a ve
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Vertical Sinking/Floating Object with Drag Force My Solutions A body with mass mis sinking/floating vertically with a ve
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!