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

OpenFOAM tips and tricks

Register Blogs Community New Posts Updated Threads Search

Rate this Entry

OpenFOAM tips and tricks

Posted March 16, 2021 at 02:44 by sphani4391

I am sharing a few tips and tricks for better OpenFOAM simulations. These are not any new tips I discovered. These are just some which I felt most useful based on my experience.

1. Mesh is the most important aspect - I have spent countless hours fixing issues in other places while the real issue was with my mesh. As a thumb rule, make sure the mesh has: no non-orthogonality issues, low aspect ratio cells, no refinement zones in the region with high gradients

2. Always start with a coarse mesh - fix your problems fast!

3. OpenFOAM tutorial cases are not fine tuned, so don't use them blindly for your case. Check the boundary conditions used by tutorial in Doxygen (or the header file in src) and ensure that the right parameters are chosen for your model physics.
Eg: totalPressure BC uses rho=none for incompressible and rho=rho for compressible subsonic.

4. For internal flow, ensure that the mass flux is stable at the inlet and outlet. For statistically stationary flows, the average mass flux should be constant/ periodic.


<more to be added as I keep learning >
Posted in Uncategorized
Views 994 Comments 0 Edit Tags Email Blog Entry
« Prev     Main     Next »
Total Comments 0

Comments

 

All times are GMT -4. The time now is 12:10.