Solving Diffusion Equation with Modified Euler Algorithm

  • Thread starter Thread starter squenshl
  • Start date Start date
  • Tags Tags
    Formula Proof
squenshl
Messages
468
Reaction score
4
Consider the diffusion equation:
ut = uxx, 0 < x < 1, t > 0,
u(0,t) = p(t), u(1,t) = q(t), t > 0,
u(x,0) = f(x), 0 < x < 1,
for t < tfinal

Suppose that the boundary condition at x = 0 is now replaced by
\partialu/\partialx(0,t) = 0

Using the forward difference formula
\partialu/\partialx(x,t) = ((-u(x+2\Deltax,t) + 4u(x+\Deltax,t) - 3u(x,t))/2\Deltax) + O(\Deltax)2

show that the Euler algorithm needs to be modified to include the formula for U0,k+1:
Uj,k+1 = rUj-1,k + (1-2r)Uj,k + rUj+1,k, j = 1,2,...,N-1,
U0,k+1 = (4U1,k+1 - U2,k+1)/3.

I don't have a clue where to start. Please help.
 
Physics news on Phys.org


If you are, in fact, taking a course in the numerical solution of differential equations and have no "clue where to start" with all of the problems you have posted, then you have far worse problems that we can help you with! Talk to your teacher about this.
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top