logo

MODELLING AND SIMULATION OF ENGINEERING

10 Pages1536 Words67 Views
   

Added on  2023-01-09

About This Document

MODELLING AND SIMULATION OF ENGINEERING

MODELLING AND SIMULATION OF ENGINEERING

   Added on 2023-01-09

ShareRelated Documents
Running head: MODELLING AND SIMULATION OF ENGINEERING
MODELLING AND SIMULATION OF ENGINEERING
Name of the Student
Name of the University
Author Note
MODELLING AND SIMULATION OF ENGINEERING_1
MODELLING AND SIMULATION OF ENGINEERING2
Task 1:
MATLAB code:
%% s3761924
c = 2029;
a = 1;
b = sqrt(c^2 - a^2);
while mod(b,1) ~= 0
b = sqrt(c^2 - a^2);
a = a+1;
end
sprintf('The value of a is %d and the value of b is %d',a-1,b)
Output:
task1
ans =
'The value of a is 180 and the value of b is 2021'
Task 2:
MATLAB code:
%% s3761924
% vx = v*cos(theta), vy = v*sin(theta) => v = sqrt(vx^2 + vy^2)
vx = -9.2; % vx = -9.2 m/s
MODELLING AND SIMULATION OF ENGINEERING_2
MODELLING AND SIMULATION OF ENGINEERING3
vy = -4.2; % vy = -4.2 m/s
v = -sqrt(vx^2 + vy^2);
theta = acosd(vx/v); % vx = v*cos(theta) => theta = acos(vx/v)
R = 995; % radius of curvature R = 995 m
g = ((v^2)/R)*cosd(theta); % (mv^2/R)*cos(theta) = m*g (centripetal force = centrifugal
force)
sprintf('the value of g is %.3f m/s^2',g)
Output:
task2
ans =
'the value of g is 0.094 m/s^2'
Task 3:
MATLAB code:
% dx3/dt = f3 + (f23/V2)*x2(t); dx4/dt = f4+(f34/V3)*x3(t)+(f24/V2)*x2(t); dx1/dt =
(f41/V4)*x4(t);
% dx2(t)/dt = (f12/V1)*x1(t)
f3 = 1; % in 1 kg/h
f4 = 3.1; % in 3.1 kg/h
% forming the set of differential equations
MODELLING AND SIMULATION OF ENGINEERING_3

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Angular Motion of a Rigid Body with Variable Gravitational Force
|8
|1626
|285

Advanced Thermal and Fluid Engineering
|16
|2365
|66

Application of Computing Coursework
|10
|1458
|83

MENG 438 Engineering Analysis
|18
|1459
|84

Advanced Thermal and Fluid Engineering
|17
|2546
|43

Mechanical engineering assignment
|16
|594
|102