

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Homework: Introduction to Multiscale Modeling
d^2 u dx
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).
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).
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 # 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 ) =
Use M = 5 and plot the result.