You are on page 1of 26

Numerical Analysis

BVP

Dr. Nasir M Mirza


Email: nmm@pieas.edu.pk
Applications of BVP

1. Extensive application and use. Boundary Value Problems


occur all physical problems where space variations are
sought and are seen particularly in structural and solid
mechanics.
2. Typical transport problems have BVP types. For example,
• thermal processing of food and biomaterials (drying,
cooling, baking, microwaving, freezing,…).
• Movement of water and chemicals in soil and other
porous media.
Applications of BVP
2. The material properties in adjacent elements do not
have to be the same. This allows application of BVP
to composite materials.

3. Irregularly shaped boundaries can be approximated


using elements with straight sides or matched exactly
using elements with curved boundaries. The finite
element or finite difference method is used and it is
not limited to “nice” shapes with easily defined
boundaries (like many analytical solutions or some
other numerical methods).
Applications of BVP

4. The size of the elements can be varied. This allows


the element grid or mesh to be expanded or refined
as the need arises.

5. Boundary conditions such as discontinuous surface


loadings present no difficulties for the method.
Mixed boundary conditions can be easily handled.
8. BVP are an integral part of CAD/CAM (computer
aided design/computer aided manufacturing) and
CFD (computational fluid dynamic) systems.

9. Applications of BVP are also done using high


performance computing and parallel algorithms.
10. A a few test cases can include crash testing,
explosion, combustion, fluid-structure interaction,
large CFD problems, plasma fusion, biomedical
research, constructive surgery,….

10. Steady state and time-dependent problems are


also part of BV- problems.
Applications of BVP

 Mixed Boundary Value Problems occur, in a natural way, in varieties of


branches of Physics and Engineering and several mathematical
methods have been developed to solve this class of problems of
Applied Mathematics.

 While understanding applications of such boundary value problems


are of immense value to Physicists and Engineers, analyzing these
problems mathematically and determining their solutions by utilizing
the most appropriate analytical or numerical methods are the
concerns of Applied Mathematicians.

 Of the various analytical methods, which are useful to solve certain


mixed boundary value problems arising in the theory of Scattering of
Surface Water Waves, the methods involving complex function theory
and singular integral equations will be examined in detail along with
some recent developments of such methods.

6
Systems of Ordinary Differential
Equations - BVP
• Boundary Value Problems
• Shooting Methods
• Linear
• Nonlinear
• Finite Difference
• Linear
• Nonlinear
Ordinary differential Equations -
Boundary Value Problems

Approximation of the solution to boundary value


problems, differential equations with conditions
imposed at different points.

y  f x, y, y, a xb


with the boundary conditions

y a   ya and y b   yb
Boundary Conditions
There are three types of boundary conditions:
• Dirichlet boundary conditions

ya   , yb  
• Newman boundary conditions

• Mixed conditions
ya   , yb  

ya  c1 ya   , yb  c2 yb  


Linear ODE -Boundary Value
Problems

For simple equation with Dirichlet boundary


conditions between a < x < b

y  px y  qx y  r x , ya   ya and yb  yb

where, the p(x), q(x) and r(x) are functions of the


independent variable.
Linear ODE -Boundary Value
Problems

Rewrite the equation in terms of two initial value


problems
u  p x  u  q x  u  r  x , u a   ya and ua   0

v  p x  v  q x  v, va   0 and va   1


if the slope at the end, b, is not zero we can write
equation as:
yx  ux  Avx
Linear ODE -Boundary Value
Problems

At the boundary y(b) = yb,

yb  u b 
yb   yb  u b   Avb   A 
vb 
Substitute back into the equations.
yb  u b 
yx   u x   v x 
vb 
Boundary Value Problems

Rewrite the equations as a set of first order


differential equations and solve:

w1  u 
w1  px  w1  q x  u  r  x 
w2  v
w2  p x  w2  q x  v
The differential equations
The first order equations can be solved using the
techniques we developed in one dimensional initial
value problems.

• Taylor Series
• Euler / Modified Euler
• Runge-Kutta
• Adam Bashforth
Higher-order differential Example
Problem

Consider a simple second order differential


equation.
 t
2
d x
 t  1   x
 5
2
dt
 t
x  t  1   x
 5
The initial conditions are x(1) =2, x(3) =-1 and
Dt = 0.2.
Example Problem

The equation can be written as a set of two initial


value problems.

 t
x1  t  1   x1 , x1 1  2, x1 1  0
 
 5
 t
x2  1   x2 , x2 1  0, x2 1  1
 
 5
Example Problem

The equation can be written as a set of two initial


value problems.
w1  x1
 t
w1  t  1   x1 , x1 1  2, x1 1  0
 5
w2  x2
 t
w2  1   x2 , x2 1  0, x2 1  1
 5
Example Problem

The two segments are determined:


t x[1] v[1] dv/dt[1] x*[1] v*[1] dv*/dt[1] x[2] v[2] dv/dt[2] x*[2] v*[2] dv*/dt[2] x[3] v[3]
1 2 0 2.6 2 0.52 2.72 0 1 0 0.2 1 0.152 2 -3.493
1.2 2.052 0.532 2.7595 2.1584 1.0839 2.954 0.2 1.0152 0.152 0.403 1.0456 0.29019 1.3534 -3.014
1.4 2.21359 1.1034 2.9938 2.4343 1.7021 3.2553 0.4061 1.0594 0.2924 0.618 1.1179 0.42022 0.7951 -2.597
1.6 2.49414 1.7283 3.296 2.8398 2.3875 3.6175 0.6238 1.1307 0.4242 0.8499 1.2155 0.54397 0.3151 -2.221
1.8 2.90571 2.4196 3.6597 3.3896 3.1515 4.0338 0.8584 1.2275 0.5494 1.1039 1.3374 0.66236 -0.093 -1.868
2 3.46283 3.189 4.0777 4.1006 4.0045 4.4963 1.1149 1.3487 0.669 1.3847 1.4825 0.7754 -0.432 -1.522
2.2 4.18217 4.0464 4.542 4.9914 4.9548 4.9956 1.398 1.4931 0.7829 1.6967 1.6497 0.88226 -0.701 -1.169
2.4 5.08228 5.0001 5.0428 6.0823 6.0087 5.5195 1.7123 1.6596 0.8904 2.0442 1.8377 0.98123 -0.899 -0.797
2.6 6.18316 6.0563 5.5679 7.3944 7.1699 6.0536 2.062 1.8468 0.9898 2.4314 2.0447 1.06982 -1.02 -0.395
2.8 7.50579 7.2185 6.1025 8.9495 8.439 6.5798 2.4512 2.0527 1.0785 2.8617 2.2684 1.1447 -1.056 0.0482
3 9.07154 8.4867 6.6286 10.769 9.8125 7.0768 2.8833 2.2751 1.1533 3.3383 2.5057 1.2018 -1 0.5398
Two Dimensional Steady-State..
Consider:

T T
2 2
  0
x 2
y 2

Laplace Equation
Two Dimensional Steady-State..

Analytical:

4To 
1 y
T 
 
n 0 2n  1
sin( 2n  1)
a
 b
sinh( b  1)( 2n  1) cos ec ( 2n  1)
a a
Two Dimensional Steady-State..

Consider:
System of grid-points (i,j)
and its four immediate neighbors
i,j+1

I-1,j i,j i+1,j


Dx
Dy
i,j-1
Two Dimensional Steady-State..

T T
2 2
 0
x 2
y 2

Difference equation:

Ti  1, j  2Ti , j  Ti  1, j

Dx 2

Ti , j  1  2Ti , j  Ti , j  1
 0
Dy 2
Two Dimensional Steady-State..

If Dx = Dy:

Ti  1, j  Ti  1, j  Ti , j  1  Ti , j  1
Ti , j 
4
Two Dimensional Steady-State..

Example:
What is the temperature at P
0
100 0
P= (100 + 0 + 0 + 0)/4
= 25
100 0
not very accurate…grid is too coarse!
100 0
0
Two Dimensional Steady-State..

Apply the equation to each interior node:


0 0
100 0
Ta = (Tb + 0 + 100 + Tc)/4
a b
Tb = (0 + 0 + Ta + Td)/4 100 0
100 c d
Tc = (Td + Ta + 0 + 100)/4 0
Td = (0 + Tb + Tc + 0)/4 100 0
0 0

Four equations --> four unknown!


Two Dimensional Steady-State..
Gauss-Seidel Iteration:
a. replace all “=“ by “<--”
b. make starting guesses
c. compute new approximations
for Ta, Tb, Tc, Td
d. repeat step c until converge.

You might also like