Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

Process Modeling and Simulation Practice, Jan-2012

Sheet-1
Q1. The equation that gives the height h of the liquid in the spherical tank for the given
volume and radius is given by
( ) 0 8197 . 3 9
2 3
= + = h h h f
take the initial guess of the root of ( ) 0 = h f as 1
0
= h .
Use the Newton-Raphson method of finding roots of equations to find the height h
.Conduct three iterations to estimate the root of the above equation. Find the absolute
relative approximate error at the end of each iteration and the number of significant
digits at least correct at the end of each iteration.
( )
( )
n
n
n n
h f
h f
h h
'
=
+1

The absolute relative approximate error 100
1
1

= e
+
+
n
n
a
h
hn h

Q.2 Solve Q.1 using Secant method.
Take the initial guesses of the root of ( ) 0 = h f as 5 0
0
. h = and 1
1
= h .
The estimate of the root is
=
1
h
( )( )
( ) ( )
1 0
1 0 0
0

h f h f
h h h f
h
The absolute relative approximate error
a
e

at the end of Iteration 1 is
100
1
0 1

= e
h
h h
a

Q.3 A system is represented by the following ODE:


Initial Condition : At t = 0 x =0
Time constant t =1. Compare the computed values of x with the analytical solution using
different time step sizes ( At = 2 , 1.8, 1.6 , 1.5 , 1, 0.5 , 0.1 , 0.05 )
Analytical Solution : x = 1- e
-t

Use Eulers and Runge-Kutta 4
th
order method
Euler explicit method :

RK-4th order method:



Q.4 Using Euler method ,solve the following Coupled ODEs :

Initial Conditions :
Case 1 : at t=0 , v = 3.4 and h = 2.05 , Step size At = 1 t
f
= 1500
Case 2 : at t = 0 , v = 2.5 and h = 1.2





0
1
2
3
4
5
6
7
8
0 500 1000 1500 2000
Series1
Series2
Q.5 Using Euler Algorithm , solve the following coupled ODEs:
Use At = 0.1 and t
f
= 10



0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
0 2 4 6 8 10
Series1
Series2
Series3

You might also like