Stationary Convection-Diffusion Equation 2-D

3 views (last 30 days)
I need to solve Convection-Diffusion Equation for a square domain using triangular mesh. The equation is:
Where V is the velocity vector, T is temperature, K is the diffusion coefficient and Q is power.
The study is about finding the air temperature in a closed space with forced convection and a constant power; the velocity goes in just one direction and ist constant too. I need to create a square of 11x11 centimeters because that is the size of the machine I'm working with, and I want to create a triangular mesh but I don't know how to.
Is it possible to solve the equation using the Petrov-Galerkin method? If the answer is yes, how can I do it?
If the answer is no, what other method can I use?
The idea is to create a program that allows you to assign a constant value to the power and speed and gives back as a result the temperature values, but my concern is that in this Finite Element Method you can not use the regular Weight Functions.
Please excuse my english.
  2 Comments
Andrea Gómez
Andrea Gómez on 22 Oct 2018
Thank you!
I did it, but I'm not getting the results I should.
In the case of the temperature study, in the Dirichlet type boundary condition, the known temperature at that edge should be set to "weight" or "concentration"?
Also with Neumann condition at the border, the constant heat flow should be placed in "flow" or "transfer coefficient"?
One last question, in which part of pdetool should the air velocity be placed?
Thank you so much.

Sign in to comment.

Accepted Answer

Ravi Kumar
Ravi Kumar on 22 Oct 2018
Hi Andrea,
I suggest using programmatic workflow.
Re: "In the case of the temperature study," : Dirichlet BC will specify the value of temperature on the boundary. Neumann BC would specify the heat flux.
For your original advection problem. You need to define the Q as f-coefficient, a V*gradT as a-coefficient. Both of these could be spatially varying, you can user functional form of coefficients to do so. Having said that there is no stabilization mechanism in PDE Toolbox, so you might encounter numerical instabilities depending of your problem is advection dominated or diffusion dominated.
Regards,
Ravi
  2 Comments
Andrea Gómez
Andrea Gómez on 23 Oct 2018
Thank you very much!
One more question, how can I define a-coefficient if V is a known constant (it moves only in 'y' direction) and gradT ist a not known function?
Ravi Kumar
Ravi Kumar on 23 Oct 2018
Hi Andrea,
You can use the functional form of coefficients to define a-coefficient. The function should take two input arguments, location and state. Solver call this user defined function with a state struct array that contains solution as state.u and its spatial derivative as state.ux, state.uy, and state.uz. For your case, the governing PDE is on T, hence state.u = T, state.ux = dT/dx, state.uy = dT/dy ..., of course these are partial derivatives. Hence, in the a-coefficient function you can use V that you know and date provided to you in state struct to construct to a-coefficient as V.gardT.
Regards,
Ravi

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!