PDA

View Full Version : Solving Diffusion equation with Convection


PiRho31416
Apr27-11, 07:24 PM
The problem is as follows:
\frac{\partial u}{\partial t}=k\frac{\partial^{2}u}{\partial x^{2}}+c\frac{\partial u}{\partial x},

-\infty<x<\infty

u(x,0)=f(x)

Fourier Transform is defined as:

F(\omega)=\frac{1}{2\pi}\int_{-\infty}^{\infty}f(x)e^{i\omega x}dx

So, I took the Fourier Transform which brought me to

\frac{\partial F}{\partial t}=-\omega^{2}F-ci\omega F=-F(\omega^{2}+ci\omega)

Solving the first order differential equation brought me to

F(\omega)=e^{-\frac{1}{6}(3ic+2\omega)\omega^{2}}

When I try to integrate using the inverse Fourier transform

f(x)=\int_{-\infty}^{\infty}F(\omega)e^{-i\omega x}\, d\omega

I get stuck. Did I do the steps right?

JJacquelin
Apr28-11, 02:50 AM
As usual, it is not dificult to find particular solutions and more general solution of the PDE.
The real difficulty is encountered when we have to fit the general solution to the boundary conditions so that the solution of the problem should be derived.
In the present wording, the bondary condition is specified by a function f(x) which is not explicit. So, we cannot say if the problem can be analytically solved.

jmk9
Apr29-11, 01:05 PM
I had a similar equation which I would like to solve but with variable coefficients; I have produced a solution which I feel is wrong and have posted it - twice - but nobody seemed to be willing to offer their insight.

Anyway, significant progress can be made for your problem with Fourier transforms, since c and k are constants.

Given the original equation


\frac{\partial{u(x,t)}}{\partial{t}}=k\frac{\parti al^2{u(x,t)}}{\partial{x^2}}+c\frac{\partial{u(x,t )}}{\partial{x}}


taking the f.t. in the space dimension and canceling out any shared factors you obtain


\frac{\partial{U(\omega,t)}}{\partial{t}}=-k\omega^2U(\omega,t)+ic\omega U(\omega,t)


which when solved results to


U(\omega,t)=U(\omega,0)e^{-(k\omega^2-ic\omega)t}


so, assuming you can determine


U(\omega,0)=\int{u(x,0)e^{-i\omega x}dx}


the solution will be given by


u(x,t)=\frac{1}{2\pi}\int{U(\omega,0) e^{-kt(\omega^2-\frac{i(c+x)\omega}{k})} d\omega}


I believe this is correct. What is your f(x)? If you can expand U(w,0) in powers of w then you can complete the square in the exponential and solve the resulting gaussian integrals.
If anyone can spot any horrible mistakes in the above, please shout

JJacquelin
Apr30-11, 03:45 AM
If anyone can spot any horrible mistakes in the above, please shout
Only a very, very small shout for a mistake at the end.