CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Implementing SIMPLE for unstructured, collocated grid

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By FMDenaro
  • 1 Post By FMDenaro
  • 1 Post By arjun

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   December 19, 2016, 04:28
Post Implementing SIMPLE for unstructured, collocated grid
  #1
New Member
 
Martijn
Join Date: Dec 2016
Posts: 2
Rep Power: 0
mnroelofs is on a distinguished road
I have been trying to implement the SIMPLE algorithm as described by Ferzinger and Peric in the book "Computational Methods for Fluid Dynamics".
I want to simulate thec2D airflow around an airfoil of which I can dynamically create the shape. I use a triangular mesh for the flow field and use collocated variables. To solve the linear systems of equations I implemented a SOR Gauss-Seidel algorithm (but actually underrelax).

I implemented the algorithm in a C# application and the good news is it runs. However, since I am getting wrong results, I want to pinpoint whether the solver diverges, oscillates or that I just have gotten the theory wrong and thus implemented it incorrectly.

So, here are two pictures in which I have written down my discretization for the momentum and pressure correction equations. Can you spot any mistakes? The code file where the matrices and RHS vectors are created is also included. I hope the code is self-explanatory, otherwise ask.

Furthermore, should the coefficient matrix for u and v momentum be the same?

Thanks in advance for your time.
Attached Images
File Type: jpg Picture.jpg (81.9 KB, 59 views)
File Type: jpg Picture2.jpg (68.1 KB, 72 views)
Attached Files
File Type: txt SIMPLESolver.txt (30.2 KB, 55 views)
mnroelofs is offline   Reply With Quote

 

Tags
collocated grid, implementing new solver, simple algorithm, triangular mesh


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SIMPLER Pressure boundray condition for collocated grid fard Main CFD Forum 0 September 26, 2011 10:16
SIMPLE on collocated grid dshawul Main CFD Forum 1 August 17, 2010 21:31
First order upwind on collocated grid arrangement Hooman Main CFD Forum 1 July 13, 2010 08:46
Please help: SIMPLE algorithm on staggered grid cfd_guy Main CFD Forum 3 January 12, 2010 12:03
Simple grid check query Ken FLUENT 0 March 27, 2007 00:47


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