Professional Documents
Culture Documents
Lab Quiz
Lab Quiz
Lab Quiz
(a) This question paper has two (02) questions. The total marks are 60.
(b) All results have to be printed up to 4 decimal places. There is no step marking.
(c) Make a folder named as your roll number on the desktop. Inside that make two
subfolders Question_1 and Question_2. All files for each question should be put
inside their respective folders.
(d) The codes are also to be submitted in the respective folders.
where we want to find u(x) and v(x) in a < x < b such that both u and v satisfy
above coupled ODEs.
Runge-Kutta of Fourth order (RK4) for system of ODEs:
1 1
un+1 = un + (k1 + 2k2 + 2k3 + k4 ) vn+1 = vn + (l1 + 2l2 + 2l3 + l4 )
6 6
k1 = hf (xn , un , vn ) l1 = hg(xn , un , vn )
h k1 l1 h k1 l1
k2 = hf (xn + , un + , vn + ) l2 = hg(xn + , un + , vn + )
2 2 2 2 2 2
h k2 l2 h k2 l2
k3 = hf (xn + , un + , vn + ) l3 = hg(xn + , un + , vn + )
2 2 2 2 2 2
k4 = hf (xn+1 , un + k3 , vn + l3 ) l4 = hg(xn+1 , un + k3 , vn + l3 )
1
Figure 1: A bar undergoing large deformation
Question 2 (30 Marks) Figure 1 depicts a bar, a-b, having initial length l0 = 0.5 m and
axial stiffness as ka N/m, making an angle θ0 = 15◦ with the horizontal. It undergoes
large deformation due to a vertical force P , the corresponding configuration is
illustrated by the dashed line, a-b0 , in Fig.1. The corresponding vertical displacement
of point b is denoted by b-b0 = δ. Express the normalized force ( kaPl0 ) in terms of the
vertical displacements δ. Now find out the values of the displacements δ for which the
normalized load become zero. You need to write a small code in C or C++ following
the modified false position method (refer Fig. 2) for solving the problem.
2
Figure 2: Modified false position method