Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Solving a Diffusion-Reaction Problem using Explicit Euler and Central Difference Methods, Exams of Mechanical Engineering

Instructions for solving a diffusion-reaction problem modeling the density of divacancies and vacancies in a metal using explicit euler time discretization and central difference in space. The problem involves the unification and breakup of di-vacancies and vacancies, with given boundary and initial conditions. The document asks to discretize the problem, solve it up to time t = 0.5, and analyze the accuracy, consistency, and stability of the scheme. It also requires students to bring their solutions and discussion of the results to class and email their working code.

Typology: Exams

Pre 2010

Uploaded on 02/10/2009

koofers-user-dfi
koofers-user-dfi 🇺🇸

10 documents

1 / 1

Toggle sidebar

Related documents


Partial preview of the text

Download Solving a Diffusion-Reaction Problem using Explicit Euler and Central Difference Methods and more Exams Mechanical Engineering in PDF only on Docsity! Final Exam Take Home Part (10%) Due May 4 Consider the following diffusion-reaction problem, which models the density of di- vacancies (u) and vacancies (v) in a metal, if two vacancies unite to form a di-vacancy with frequency proportional to v2 and a di-vacancy breaks up to form two vacancies with frequencies proportional to u, 2 2 3 , 4 4 2 6 . xx yyt xx yyt u u u v u v v v v u = + + − = + − + We assume the following boundary conditions on the unit square: 1 at 0,1and 0, 0 at 1, u v u v x y y y y ∂ ∂= = = = = = = ∂ ∂ and initial conditions ( ) ( ), ,0 , ,0 1.u x y v x y= = Discretize the problem using explicit Euler time discretization and central difference in space. For spatial discretization use uniform gird with ∆x=∆y=0.02. Solve the problem up to a time of t = 0.5. Show the results for the following times t=0, 0.05, 0.1, 0.15, 0.25, 0.5. Also show the solution at the midpoint of the region as a function of time. What is the accuracy of the solution in terms of ∆t, ∆x, ∆y? Is the scheme consistent? Is your scheme stable? What is the maximum time step ∆tmax you can take in terms of ∆x and ∆y? Hint: When analyzing stability, ignore the terms that do not contain derivatives. Also note that since it is a system, you should use σ1 and σ2 respectively for u and v. P.S. Bring your solution and discussion of the results to class. Email your code to compmeth@colorado.edu. The program that you send should be a working program. All the codes will be checked whether they run or not. If they are erroneous, but run, points will be taken for the errors. If the code does not run (it has some syntax errors), an additional 25% will be taken off. The goal of this class is for you to be comfortable solving engineering problems. Please take your time and learn how to trust the computer.
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved