|
[Sponsors] |
solving 2D convection-diffusion equation using finite volume method with MATLAB |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 5, 2022, 00:53 |
solving 2D convection-diffusion equation using finite volume method with MATLAB
|
#1 |
New Member
Ming-Shang Chang
Join Date: Nov 2022
Posts: 1
Rep Power: 0 |
I'm currently working on an assignment which is about using Central Difference(CDS), QUICK, Upwind, and MUSCL scheme (using flux limiter) to solve the convection-diffusion equation. however when I compile the MATLAB code there seems to be some error, I do not understand why the result of CDS after Peclet number like 10 and 100 looks so horrible. Although I knew that the scheme is invalid for Peclet number over 2, it should be at least looking similar to the result under Peclet number of 2. is the structure of the code wrong or the error part or sth else? Plus, the QUICK scheme seems cannot converge, but I do not know what went wrong....
Also, does anyone know how to apply the flux limiter to the code.... I understand the theory just do not know how to transfer it into code... The problem description and the code will be attached, genuine thankful for the assistance. |
|
November 5, 2022, 12:56 |
|
#2 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
You should have studied the features of the CDS scheme when the cell Pe number is greater than 2. Have you first developed your homework in 1D? There are a lot of textbook where you can compare the results.
The limiter is a non linear function of the state variables that applies on the flux between two cells. You can have a look to the textbook of Ferziger, Peric and Street. |
|
November 24, 2022, 13:26 |
|
#3 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
https://link.springer.com/book/10.10...-3-319-99693-6 |
||
November 24, 2022, 16:40 |
|
#4 | |
Senior Member
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8 |
Quote:
Considering a 1D flow from left to right ... Basically, CDS takes data both from the left and right cells, and considers them to be equally important , thus it represents the physics wrong, as clearly, the importance of the upwind cell (left cell) is more than the downwind cell (right cell). So, it fails with high Peclet numbers. What you need, is an upwind scheme. For FEM based CFD, Galerkin formulation also has a similar issue, where the the Galerkin discretization assumes equal importance for the left and right cells. Thus methods like SUPG (Streamline Upwind Petrov Galerkin) method were introduced to mimick what upwind schemes do in FVM CFD. Basically, both FEM and FVM based CFD solves the same problem in the same way, by introducing upwind schemes, so the physics is represented well. |
||
Tags |
convection-diffusion, finite volume method, matlab code |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
laplacianFoam with source term | Herwig | OpenFOAM Running, Solving & CFD | 17 | November 19, 2019 14:47 |
Segmentation fault when using reactingFOAM for Fluids | Tommy Floessner | OpenFOAM Running, Solving & CFD | 4 | April 22, 2018 13:30 |
SLTS+rhoPisoFoam: what is rDeltaT??? | nileshjrane | OpenFOAM Running, Solving & CFD | 4 | February 25, 2013 05:13 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 05:03 |
Orifice Plate with a fully developed flow - Problems with convergence | jonmec | OpenFOAM Running, Solving & CFD | 3 | July 28, 2011 06:24 |