CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Parallel plate flow - SIMPLE Algorithm - stuck residuals (https://www.cfd-online.com/Forums/main/227579-parallel-plate-flow-simple-algorithm-stuck-residuals.html)

vaibhavkhanna June 2, 2020 12:21

Parallel plate flow - SIMPLE Algorithm - stuck residuals
 
Hey, I am quite new to CFD programming and was writing my own Matlab code for 2-D flow between parallel plates to get more familiar with the simple algorithm which I will be using for my thesis. I am trying to simulate the entrance development region which results in the parabolic velocity profile.
My mesh size is 250x10, Length of the plate is 0.5m, and distance between plates is 0.01m.
Pressure under relaxation is 0.001-0.1 for different simulations shown in the per attached.
The issue I am facing with my simulations is that the continuity residuals (L2 norm of mass imbalance) for different Re and different fluids all seem to oscillate about a fixed value instead of decreasing as the iterations proceed. The termination criteria for my simulation is never met.
Here are some of the residual plots from my simulation. The velocity values are oscillating about the right solution (the centreline velocity is 1.5 times the inlet velocity) but the residuals do not decrease with iterations.

https://drive.google.com/file/d/16fb...IUvoA7YRG/view

tas38 June 4, 2020 05:48

Quote:

Originally Posted by vaibhavkhanna (Post 773088)
Hey, I am quite new to CFD programming and was writing my own Matlab code for 2-D flow between parallel plates to get more familiar with the simple algorithm which I will be using for my thesis. I am trying to simulate the entrance development region which results in the parabolic velocity profile.
My mesh size is 250x10, Length of the plate is 0.5m, and distance between plates is 0.01m.
Pressure under relaxation is 0.001-0.1 for different simulations shown in the per attached.
The issue I am facing with my simulations is that the continuity residuals (L2 norm of mass imbalance) for different Re and different fluids all seem to oscillate about a fixed value instead of decreasing as the iterations proceed. The termination criteria for my simulation is never met.
Here are some of the residual plots from my simulation. The velocity values are oscillating about the right solution (the centreline velocity is 1.5 times the inlet velocity) but the residuals do not decrease with iterations.

https://drive.google.com/file/d/16fb...IUvoA7YRG/view


This issue in monitoring residual convergence may be a result of monitoring "absolute" rather than "scaled" residuals. Your plot of the residuals for three different fluids suggests as much to me.


I suggest you modify your code to monitor scaled/normalized residuals of the form:


R^{\phi} = \frac{\sum_{\mbox{cells}} \left| \sum_{nb}a_{nb} \phi_nb + b - a_p \phi_p \right| }{\sum_{\mbox{cells}} \left| a_p \phi_p \right| }


Also, using pressure relaxation on the order of 0.01 or 0.001 is overly small. If this is necessary, it may be a result of some bug/error within the code for which you are compensating.


All times are GMT -4. The time now is 11:07.