Question
PLEASE HELP SOLVE WITH MATLAB LANGUGE.

2 Coriolis Force In a rotating frame-of-reference,the equations of motion of a particle, written in co- ordinates fixed to th

Note that the initial values of (0) and y(0) are i:(0)vo cos 0, y(0)= v0sin 0

SUMMER 2019 ENGINEERING 7 Moreover, while the ball is in the air, neglecting air-resistance, there are no forces acting in th
Below are hints to the problem. THANKS A LOT!!

9696 Problem 2 % Another ODE problem % Coriolis Force % Initial velocities are given along % Given in terms of ve and theta x
0 0
Add a comment Improve this question Transcribed image text
Answer #1

THE FUNCTION odefun IS NESTED SO THE ENTIRE CODE BELOW SHOULD BE SAVED AS ONE FILE coriolis.m:

%

function coriolis

clc,clear,close all

%% coriolis.m
% let dxdt = p, dydt = q

%% part a)
%
R = 1;
v0 = 1.1854; theta = -1.0039; Tfinal = pi;
x0 = R; y0 = 0; p0 = -v0*cos(theta); q0 = v0*sin(theta);
cond = [x0 y0 p0 q0];
% solving with ode45
t = linspace(0,Tfinal,100);
[T,SOL] = ode45(@odefun,t,cond);
X = SOL(:,1)
Y = SOL(:,2)
% plotting the solution
figure
plot(X,Y,'- b')
xlabel('x(t)'),ylabel('y(t)')
title(['(v0,theta,Tfinal) = (' num2str(v0) ',' num2str(theta) ',' num2str(Tfinal) ')']),grid on

%% part b)
%
R = 1;
v0 = 1.0223; theta = -1.3617; Tfinal = 3*pi;
x0 = R; y0 = 0; p0 = -v0*cos(theta); q0 = v0*sin(theta);
cond = [x0 y0 p0 q0];
% solving with ode45
t = linspace(0,Tfinal,100);
[T,SOL] = ode45(@odefun,t,cond);
X = SOL(:,1);
Y = SOL(:,2);
% plotting the solution
figure
plot(X,Y,'- b')
xlabel('x(t)'),ylabel('y(t)')
title(['(v0,theta,Tfinal) = (' num2str(v0) ',' num2str(theta) ',' num2str(Tfinal) ')']),grid on


%% part c)
%
R = 1;
v0 = 1.0081; theta = -1.4442; Tfinal = 5*pi;
x0 = R; y0 = 0; p0 = -v0*cos(theta); q0 = v0*sin(theta);
cond = [x0 y0 p0 q0];
% solving with ode45
t = linspace(0,Tfinal,100);
[T,SOL] = ode45(@odefun,t,cond);
X = SOL(:,1);
Y = SOL(:,2);
% plotting the solution
figure
plot(X,Y,'- b')
xlabel('x(t)'),ylabel('y(t)')
title(['(v0,theta,Tfinal) = (' num2str(v0) ',' num2str(theta) ',' num2str(Tfinal) ')']),grid on

%% function to express the ode as a system of equations
%
function [ ode ] = odefun(t,in)
% dxdt = p, dydt = q
%
omega = 1;
%
x = in(1); y = in(2); p = in(3); q = in(4);
%

dxtd = p; % x'
dydt = q; % y'
dpdt = 2*omega*q + omega^2*x; % x''
dqdt = -2*omega*p + omega^2*y; % y''
%
ode = [
dxtd;
dydt;
dpdt;
dqdt;
];

end


end

(v0, theta, Tfinal) = (1.1854,-1.0039,3.1416) y(t) 0 0.1 0.2 0.3 0.4 0.6 0.7 0.8 0. 9 1 0.5 X(t)

(v0,theta, Tfinal) = (1.0223,-1.3617,9.4248) y(t) -0.4 -0. 2 0 0.2 0.4 0.6 0.8 1 12 X(t)

(v0, theta, Tfinal) = (1.0081,-1.4442,15.708) y(t) -0.8 -0.6 -0.4 -0.2 0 0.4 0.6 0.8 1 0.2 X(t)

------------------------------------------------------------------------------
COMMENT DOWN FOR ANY QUERY RELATED TO THIS ANSWER,

IF YOU'RE SATISFIED, GIVE A THUMBS UP
~yc~


Add a comment
Know the answer?
Add Answer to:
PLEASE HELP SOLVE WITH MATLAB LANGUGE. Below are hints to the problem. THANKS A LOT!! 2...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 4. Matlab Solvers: A Case Study in Mechanics Suppose we have two objects orbiting in space,...

    4. Matlab Solvers: A Case Study in Mechanics Suppose we have two objects orbiting in space, with masses 1 - and , rotating around each other. For example, think of the earth and the moon, where the moon moves around the earth at distance 1. (Of course, here both the masses and the distance are normalized.) A third object, which is relatively much smaller and does not affect the motion of the first two, is also orbiting in space. Think...

  • Please solve question 3, thanks with radius To rotates at a constant angular velocity θ(t) in...

    Please solve question 3, thanks with radius To rotates at a constant angular velocity θ(t) in the counterclockwise direction. At time t - 0, a small spherical ball, which is modeled as a particle, is rolled without slipping at a constant speed vo from the edge at A toward the origin of the rotating disk. Formulate the equations of motion and solve them. Plot the trajectory of the ball from both the moving and inertial frame. You can use MATLAB...

  • Could I get help with these problems please. For the first problem are we using two...

    Could I get help with these problems please. For the first problem are we using two different equations. Are we using a horizontal and vertical equation. V(t)=axt+vox. I am confused here Suppose a baseball player throws a ball. When she releases the ball, her hand is 1 meter above the ground, and the ball leaves her hand at 18 m/s in a direction that makes a 32° angle with the horizontal. (a) What is the maximum height above the ground...

  • Please provide the matlab code solution for this problem. Exercise 2 Consider the differential equation for...

    Please provide the matlab code solution for this problem. Exercise 2 Consider the differential equation for the Van der Pol oscillator (use ode45) which has a nonlinear damping term a (y -1) y 1. For E 0.25, solve the equation over the interval 0,50 for initial conditions y (0) 0.1 and y' (0) -1. TASK: Save y as a column vector in the file A04.dat TASK: Save y' as a column vector in the file A05.dat 2. For a 10,...

  • Earth with mass M. The angular velocity magnitude of the Earth relative to the inertial frame,...

    Earth with mass M. The angular velocity magnitude of the Earth relative to the inertial frame, Ω. Find any cross products in this problem. This problem will have calculation in the non inertial frame S which rotates with the Earth about its axis. Earth is motionless in the S frame. The xyz coordinate system originates at the center of the Earth, the North Pole is on the positive z axis. At t = 0, a ball of mass m is...

  • please help with the question Solve the following initial value problem. y" – 9y' + 20y...

    please help with the question Solve the following initial value problem. y" – 9y' + 20y = 2x +€4x, y(0) = 0, y'(0) = 2

  • Need help using Matlab to solve differential equations, will rate! Thank You! a) The code used...

    Need help using Matlab to solve differential equations, will rate! Thank You! a) The code used to solve each problem b) The output form c) Use EZPLOT (where possible) to graph the result Use Matlab symbolic capabilities to solve the following Differential Equations: yy +36x = 0 3. ytky = e2kakis a constant y" +(x +1)y = ex'y' ;y(0) = 0.5 4 4y-20y'+25y = 0 xy-7x/+16y=0 xy-2xy'+2y=x' cos(x) yy =292 y-4y'+4y = (x + 1)e 2x

  • 1. A small bead is free to slide without friction on a rotating wire. The angular...

    1. A small bead is free to slide without friction on a rotating wire. The angular speed of the wire is w. In the coordinate system that rotates with the wire, there will be fictitious Coriolis and centrifugal forces, in addition to the real normal force the wire exerts on the bead. Working in this rotating coordinate system, (a) Draw the force diagram, including the fictitious forces. Write down the F=ma equations for the directions parallel and perpendicular to the...

  • using matlab to solve this problem as soon as possible thanks use matlab to slove the...

    using matlab to solve this problem as soon as possible thanks use matlab to slove the problem as soon as possible solve the activity of number 1&2&3 by using matlab for this problem i need from you to solve activity one and two and three by using matlab DIRECTIONS: Perform the following using MATLAB. After the simulation, your report must be uploaded in the Moodle Learning system. ACTIVITY I. VECTORS AND ITS OPERATIONS Procedure 1: Define two vectors a and...

  • (Matlab) Use Matlab's built-in Runge-Kutta function ode45 to solve the problem 1010y -xz +28x - y 3 on the interval t є [0, 100 with initial condition (z(0), y(0),z(0)) = (1,1,25), and plot the t...

    (Matlab) Use Matlab's built-in Runge-Kutta function ode45 to solve the problem 1010y -xz +28x - y 3 on the interval t є [0, 100 with initial condition (z(0), y(0),z(0)) = (1,1,25), and plot the trajectory of the solution ((t), (t)) forte [0, 100 (Matlab) Use Matlab's built-in Runge-Kutta function ode45 to solve the problem 1010y -xz +28x - y 3 on the interval t є [0, 100 with initial condition (z(0), y(0),z(0)) = (1,1,25), and plot the trajectory of the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT