UOW ENGG592 Engineering Computing Assignment 2: Spring-Mass and Heat

Verified

Added on  2020/05/01

|8
|672
|333
Homework Assignment
AI Summary
Read More
tabler-icon-diamond-filled.svg

Contribute Materials

Your contribution can guide someone’s learning journey. Share your documents today.
Document Page
UNIVERSITY OF WOLLONGONG
FACULTY OF ENGINEERING AND INFORMATION SCIENCES
ENGG592 ENGINEERING COMPUTING
SPRING SESSION -2017
ASSIGNMENT 2
STDUENT NAME
STUDENT REGISTRATION NUMBER
DATE OF SUBMISSION
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
QUESTION 1
MOTION OF A SPRING MASS SYSTEM (50%)
The motion of a damped spring mass system is described by the following ordinary differential
equation
Where x is displacement from equilibrium position (meter), t is time (second), m is the mass and
equal 20 kg, c is the damping coefficient (N.sec/meter). The damping coefficient, c, takes on two
values of 5 (under damped), 40 (critically damped). The spring constant k=20N/meter. The initial
velocity is zero, and the initial displacement x=1 meter.
Solution
(i) Transform the problem to a system of two first order initial value ODES.
From Newton’s second law,
f =ma
m d2 x
d t2 +c ( dx
dt )+kx =0
Dividing through by mass, m,
d2 x
d t2 + c
m ( dx
dt )+ k
m x=0
The natural frequency of the system and the damping ratio are replaced as shown in
the following equation,
d2 x
d t2 + 2ζ w0 ( dx
dt )+w0
2 x=0
Where,
w0= k
m , ζ = c
2 km
The solution to the differential equation.
Document Page
λ1,2=2 ζ ω0 ± 4 ζ2 ω0
2 4 ω0
2
2
Therefore,
λ1,2=ζ ω0 ± ω0 ζ 21
The transient solution of the system is given as,
xt =A e
(ζ ω0 +ω0 ζ 21 ) t +B e
( ζ ω0 ω0 ζ 21 ) t
The constants A and B are obtained when the initial conditions are inserted. The final
solution is obtained as,
From the initial conditions,
w0=1 , ζ=0.125
xt =A e
(0.125+ ω0 ζ 21 ) t + B e
(ζ ω0ω0 ζ 21 ) t
(ii) Second order RK Heun method over a period of time
The Heun’s method evaluates the slope at the beginning and at the end of the step.
The generalized idea embodied in the Heun’s method is the Runge-Kutta method
which uses a weighted average of the slope evaluated at multiple in the step.
%% order 647236
tspan=[0:0.1:50];
y0=[0.02;0];
[t,y]=ode45('unforced2',tspan,y0);
plot(t,y(:,1));
grid on
xlabel('time')
ylabel('Displacement')
title('Critically-damped Modelling of MSD system (C=40)')
%% order 647236
tspan=[0:0.1:50];
y0=[0.02;0];
[t,y]=ode45('unforced1',tspan,y0);
plot(t,y(:,1));
grid on
xlabel('time')
ylabel('Displacement')
title('Under-damped Modelling of MSD system (C=5)')
hold on;
%% order 647236
function yp=unforced2(t,y)
c=40;
m=20;
k=20;
yp= [y(2); (-((c/m)*y(2))-((k/m)*y(1)))];
Document Page
%% order 647236
function yp=unforced1(t,y)
c=5;
m=20;
k=20;
yp= [y(2); (-((c/m)*y(2))-((k/m)*y(1)))];
(iii) Plot the displacement versus time for the two values of the damping coefficient on the
same figure.
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
QUESTION 2
TRANSIENT HEAT CONDUCTION (50%)
The non-dimensional form for the transient heat conduction in an insulated rod is
2 u
d x2 = u
t
The x is the non-dimensional length, t is the non-dimensional time, u is the non-dimensional
temperature. This makes for the following boundary and initial conditions,
Solution
(i) Explicit finite difference method and implicit crank-Nicholson method.
The explicit finite difference method. The relationship between continuous and
discrete problems.
Uniformly spaced in the interval from 0-L such that
xi= ( i1 ) x i=1,2, , N ( N spatial nodes )
The spacing between the values is computed by,
x= L
N1
The discrete, t, are uniformly spaced in 0 t tmax :
tm= ( m1 ) t m=1,2 , , M
Document Page
M- is the number of time steps and the t is the size of a time step.
t= tmax
M 1
The finite difference method involves using discrete approximations like
The implicit crank-Nicholson method
(ii) Matlab implementation
Document Page
(iii) Non-dimensional temperature versus non-dimensional length
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
chevron_up_icon
1 out of 8
circle_padding
hide_on_mobile
zoom_out_icon
logo.png

Your All-in-One AI-Powered Toolkit for Academic Success.

Available 24*7 on WhatsApp / Email

[object Object]