We would like to use centered finite differences and the method of lines to solve the unsteady

Question:

We would like to use centered finite differences and the method of lines to solve the unsteady diffusion–reaction problemat ac 2 - kc

subject to no-flux on the left boundaries, ∂c/∂x = 0 at x = 0, a constant concentration on the right boundary, c(1, t) = 1, and an initial concentration c(x, 0) = 1. We will use n = 3 nodes for this problem and a reaction rate k = 2.

(a) Convert the PDE into a system of coupled ODEs governing the concentrations at each node, c1, c2, and c3. Remember to state the initial conditions.

(b) Let us do one time step of size h = 1/4 using implicit Euler. Write down the system of two equations you need to solve to compute c1 and c2 after the first time step. You do not need to compute c1 or c2.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: