Docsity

Homework: Introduction to Multiscale Modeling - Singular Perturbation and Homogenization, Assignments of Health sciences

Toggle sidebar
bg1
Homework: Introduction to Multiscale Modeling
1) Consider the singular perturbation problem
!
"
#
d2u
dx 2+du
dx =1, 0 <x<1
u(0) =0, u(1) =0
(a) Determine the limit solution as
!
"
#0, (
"
>0)
.
(b) Determine an improved approximation by matched asymptotics for
!
"
=0.1
. Use the
approximation from (a) for most of the interval and the solution of the homogeneous
problem in an interval of length 0.2 close to the boundary with the boundary layer. Match
these two approximations such that the final approximation is continuous and satisfies the
boundary conditions.
(c) Solve the original singular perturbation problem numerically by a finite difference
approximation. Use
!
"
=0.1
and the step size h=0.02. In the numerical approximation
replace the derivatives in the original differential equation by divided differences,
!
u(xj)"uj,j=0,..,J,hJ =1
d2u
dx2#uj+1$2uj+uj$1
h2,du
dx #uj+1$uj$1
2h
(d) Plot the approximations from (a), (b) and (c).
2) Consider the following two-point boundary problem with oscillatory coefficient,
!
"d
dx
a(x/
#
)du
dx
$
%
& '
(
) =1, 0 <x<1
u(0) =0, u(1) =0
The oscillatory coefficient
!
a(x/
"
)
is a one-periodic function given by,
!
a(y)=1, 0 "y<0.5
0.5, 0.5 "y<1
#
$
%
(a) Determine the homogenized equation
of the original two-point boundary
problem.
(b) Solve the homogenized equation analytically
(c) Solve the original two-point boundary problem numerically with
!
"
=0.1, h=0.02
. Use
the following finite difference formula,
pf2

Partial preview of the text

Download Homework: Introduction to Multiscale Modeling - Singular Perturbation and Homogenization and more Assignments Health sciences in PDF only on Docsity!

Homework: Introduction to Multiscale Modeling

  1. Consider the singular perturbation problem !

d^2 u dx

2 +^

du dx = 1 , 0 < x < 1 u (0) = 0 , u ( 1 ) = 0 (a) Determine the limit solution as !

(b) Determine an improved approximation by matched asymptotics for ! " = 0.1. Use the approximation from (a) for most of the interval and the solution of the homogeneous problem in an interval of length 0.2 close to the boundary with the boundary layer. Match these two approximations such that the final approximation is continuous and satisfies the boundary conditions. (c) Solve the original singular perturbation problem numerically by a finite difference approximation. Use ! " = 0.1 and the step size h=0.02. In the numerical approximation replace the derivatives in the original differential equation by divided differences, ! u ( x (^) j ) " u (^) j , j = 0 ,.., J , hJ = 1 d 2 u dx^2

u (^) j + 1 $ 2 u (^) j + u (^) j $ 1 h^2

du dx

u (^) j + 1 $ u (^) j $ 1 2 h (d) Plot the approximations from (a), (b) and (c).

  1. Consider the following two-point boundary problem with oscillatory coefficient, !

d dx a ( x / #) du dx

) =^1 ,^0 <^ x^ <^1 u (0) = 0 , u ( 1 ) = 0 The oscillatory coefficient ! a ( x / ") is a one-periodic function given by, ! a ( y ) = 1 , 0 " y < 0. 0.5, 0.5 " y < 1

(a) Determine the homogenized equation ! ( " # 0) of the original two-point boundary problem. (b) Solve the homogenized equation analytically (c) Solve the original two-point boundary problem numerically with ! " = 0.1, h = 0.02. Use the following finite difference formula,

u ( x (^) j ) " u (^) j , j = 0 ,.., J , hJ = 1

d dx a ( x / $) du dx

* +^ #^

a ( x (^) j + h /2)( u (^) j + 1 # u (^) j ) # a ( x (^) j # h /2)( u (^) j # u (^) j # 1 ) h^2 (d) Plot the approximations from (b) and (c).

  1. Consider the initial value problem for the stiff ordinary differential equation, !

du dt = 1 # u , 0 < t < 1 u (0) = 0 (a) Solve the problem numerically for ! " = 0.02 by the Euler method and step size H = 0. and plot the result. ! u ( tn ) " un , n = 0 ,.., N , HN = 1 un + 1 = un + H # $ 1 ( 1 $ un ) (Note that the result is clearly not satisfactory. In this simple problem we can use the analytical solution or use a, so-called, stiffly stable method but let us as an illustration apply a multiscale technique.) (b) First resolve the transient by applying 20 microscale steps, h = 0.01 with the Euler method. Then continue with the macroscale solver as above in (a), H = 0.2, with the change that !

1

( 1 # un ) is replaced by an average ! "#^1 ( 1 # un ) , Compute this average by, starting from ! un take M microsteps, h = 0.01 and perform the averaging, ! "#^1 ( 1 # un ) =

M

(^ " #^1 (^1 #^ u^1 n^ )^ +^ ..+^ "#^1 (^1 #^ un^ M^ )),^ ( un^0 =^ un )

Use M = 5 and plot the result.