CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

SimpleFoam Divergence near boundary layer

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 26, 2020, 11:21
Default SimpleFoam Divergence near boundary layer
  #1
New Member
 
pierre samuel corentin
Join Date: Feb 2020
Posts: 2
Rep Power: 0
psceco is on a distinguished road
Hello everyone,


I'm new to OpenFoam but there are still things I don't understand.


I'm working on a 2D simplefoam case with Re = 10^5 and k-epsilon model. The boundaries are in freestream and the obstacle is a wall.


With gmsh, I made a size field to create a boundary layer around the obstacle, and checkMesh says the mesh is OK.


I don't understand why, but the simulation diverges from a random spot near the wall in the boundary layer set in the mesh.


Apparently, the problem doesn't come from the conversion of the mesh file (with gmshToFoam) so it must be the simulation.


That's where I need your help : does it come from the boundary conditions, from the simulation settings (I use the basic simplefoam k-epsilon model) or something I don't suspect ?


Please find attached the 0 archive and the .geo file (create mesh with "gmsh retro4P1.geo -3 -o retro4P1.msh" then "gmshToFoam retro4P1.msh" commands). Thanks for your help !
Attached Files
File Type: zip 0.zip (2.9 KB, 3 views)
File Type: zip retro4P1.zip (807 Bytes, 0 views)
psceco is offline   Reply With Quote

Old   February 26, 2020, 17:06
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
Out of my head: kEpsilon might be unstable due to epsilon. Have a go for kOmegaSST.
HPE is offline   Reply With Quote

Old   April 6, 2020, 09:25
Default
  #3
New Member
 
pierre samuel corentin
Join Date: Feb 2020
Posts: 2
Rep Power: 0
psceco is on a distinguished road
Hi HPE,


Thanks for your reply. I apologize for answering a bit late, I was testing the solution you gave me.


It appears the k omega SST is a bit more stable than k epsilon, because I managed to solve some of my cases.


Still, there are a few cases that keep diverging after a few iterations, still for the same reason : a spot near the boundary layer. I don't understand why, because the inputs are the same that the cases that went well. Maybe it comes from the mesh. Could it be that it is too complex and the solver can't follow ?


For instance, the mesh I use is too heavy to be uploaded to this message, so I must give you the gmsh .geo file to be converted to OF.


To create the case, you must create the mesh with gmsh by bashing the "commands" file I put at the root of the case and then replace the boundaries file in polymesh by the one at the root of the case.


Any opinion or help would be greatly appreciated !
psceco
Attached Files
File Type: zip voiture4.zip (8.8 KB, 2 views)
psceco is offline   Reply With Quote

Reply


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
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 18:02
Out File does not show Imbalance in % Mmaragann CFX 5 January 20, 2017 10:20
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 06:20
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 15:55


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