How to solve convection diffussion equation

1 view (last 30 days)
Teun
Teun on 18 Dec 2014
Answered: Teun on 19 Dec 2014
Hello,
I want to solve the following equation in Matlab, but I have no idea how to do it:
u*dC/dz = Dh*d^2C/dx^2+Dv*d^2C/dz^2
Kind regards, Teun
  2 Comments
Youssef  Khmou
Youssef Khmou on 19 Dec 2014
is the first component correct? i think it should be dC/dt
Teun
Teun on 19 Dec 2014
No I am looking at steady state. dC/dz is the convection term, d^2C/dx^2 is the lateral dispersion term and d^2C/dz^2 is the axial dispersion term.

Sign in to comment.

Answers (1)

Teun
Teun on 19 Dec 2014
Thank you Shoaibur, I understand the discritezition but can you be a little more specific about how to solve this in Matlab.
I can set up a matrix with the coefficients: [u/dz, Dh/dx^2,....]=[0] and solve this to get a Matrix C=[Ci,j Ci-1,j Ci,j+1 Ci,j-1 Ci+1,j]
But how can calculate all the different values for C and how do I implement the boundary conditions?

Categories

Find more on Mathematics and Optimization in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!