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

Mesh Study- Wrong Results for Pressure Distribution

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By piu58

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2017, 09:06
Default Mesh Study- Wrong Results for Pressure Distribution
  #1
Senior Member
 
amin.z's Avatar
 
Amin
Join Date: Oct 2013
Location: Germany
Posts: 397
Rep Power: 14
amin.z is on a distinguished road
Hi everybody,

I'm doing a mesh study for a simple flow using 4 different meshes - Course, Medium, Fine and Finest-
The results for three cases are rational, while for one of them (the Fine one) although velocity distribution is correct, the pressure distribution is wrong, as you can see in the attached plot (The gray one is the aforementioned case)
the geometry is the same, the solvers for all cases are thoroughly the same, transport and turbulence specifications as well, the boundary conditions for velocity and pressure are driven from mapping the fields of other meshes, so these two couldn't be the reason. I've also already checked the type of boundary conditions more than 10 times -4 walls and 2 cyclic periodic BCs-
Since everything is quite the same -of course except the grid- I'm confused what could result in such a strange results.
Any idea is highly appreciated,
Attached Images
File Type: jpg 2.jpg (68.4 KB, 39 views)
amin.z is offline   Reply With Quote

Old   May 3, 2017, 11:38
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
It may be that the mesh gets too fine near the boundaries, so the wall functions works not in the way it should. You may check the yPlus values for that.
Richal Sun likes this.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   May 3, 2017, 13:14
Default
  #3
Senior Member
 
amin.z's Avatar
 
Amin
Join Date: Oct 2013
Location: Germany
Posts: 397
Rep Power: 14
amin.z is on a distinguished road
Quote:
Originally Posted by piu58 View Post
It may be that the mesh gets too fine near the boundaries, so the wall functions works not in the way it should. You may check the yPlus values for that.
Thanks for your response,
Actually, the flow is laminar and incompressible, so I think y+ doesn't play a role in this case, and the interesting part is that the Coarser and Finer grids both yield correct results (while for the finer one the boundary elements are closer to the wall comparing with this mesh)
amin.z is offline   Reply With Quote

Old   May 3, 2017, 14:40
Default
  #4
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
Thank you. I missed your point: The FINE and not the FINEST mesh has a different behavior. I mixed that.

I recommend to copy one of the three nearly identical cases, say the medium mesh, change only the mesh to the fine one and let it run again. May be, there is something different in the fine case, which can not be seen at a glance.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   May 3, 2017, 15:30
Default
  #5
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi all,

@amin.z

Though I was able to find, that the flow is incompressible and laminar, I was not able to find name of a solver you are using, could you disclose it?

What convergence criteria do you utilise? Basically, are you sure you have converged?

What linear solvers your are using? I.e. depending on your problem GAMG and PCG can give different results with all other parameters kept the same. Due to all these interpolations GAMG (at least OpenFOAM's implementation) introduces more errors in solution.
alexeym is offline   Reply With Quote

Old   May 3, 2017, 15:54
Default
  #6
Senior Member
 
amin.z's Avatar
 
Amin
Join Date: Oct 2013
Location: Germany
Posts: 397
Rep Power: 14
amin.z is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi all,

@amin.z

Though I was able to find, that the flow is incompressible and laminar, I was not able to find name of a solver you are using, could you disclose it?

What convergence criteria do you utilise? Basically, are you sure you have converged?

What linear solvers your are using? I.e. depending on your problem GAMG and PCG can give different results with all other parameters kept the same. Due to all these interpolations GAMG (at least OpenFOAM's implementation) introduces more errors in solution.
Thanks for ur reply,
It's a simple flow and based on its specifications (as I already mentioned) I'm using steady-state solver simpleFoam. The convergence criteria are not ideal enough it has converged till 1e-05 so far, but I'm not sure if it could result in such a considerable difference in pressure.
I'm using GAMG and smoothSolver for pressure and velocity, respectively. Yeah, you're right, BUT the weird part is that the velocity distribution for all cases are almost the same and this so-called wrong result only occurs in pressure distribution. I don't know if it's possible that for the same geometry, solver and of course boundary conditions, the solver yield same velocity distribution with a difference pressure distribution.

It's now running according what Uwe proposed.
amin.z is offline   Reply With Quote

Old   May 3, 2017, 16:08
Default
  #7
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Well, in case of pressure only gradient matters. In terms of pressure gradient all curves looks the same.

What if you change GAMG/smoothSolver pair to PCG/PBiCG? GAMG maps data between grids and MAYBE fine grid is a case, which produces something weird with you GAMG settings. What happens if you make grid 0.5*(MEDIUM + FINE) or 0.5*(FINE + FINEST)?
alexeym is offline   Reply With Quote

Old   May 3, 2017, 17:06
Default
  #8
Senior Member
 
amin.z's Avatar
 
Amin
Join Date: Oct 2013
Location: Germany
Posts: 397
Rep Power: 14
amin.z is on a distinguished road
Quote:
Originally Posted by piu58 View Post
Thank you. I missed your point: The FINE and not the FINEST mesh has a different behavior. I mixed that.

I recommend to copy one of the three nearly identical cases, say the medium mesh, change only the mesh to the fine one and let it run again. May be, there is something different in the fine case, which can not be seen at a glance.
I tried what you suggested and the results were the same,
I'm not sure but it sounds there is something wrong with the mesh
amin.z is offline   Reply With Quote

Old   May 3, 2017, 18:25
Default
  #9
Senior Member
 
amin.z's Avatar
 
Amin
Join Date: Oct 2013
Location: Germany
Posts: 397
Rep Power: 14
amin.z is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Well, in case of pressure only gradient matters. In terms of pressure gradient all curves looks the same.

What if you change GAMG/smoothSolver pair to PCG/PBiCG? GAMG maps data between grids and MAYBE fine grid is a case, which produces something weird with you GAMG settings. What happens if you make grid 0.5*(MEDIUM + FINE) or 0.5*(FINE + FINEST)?
Tnx for ur recommended modification but replacing GAMG with PCG didn't work too.
amin.z is offline   Reply With Quote

Old   May 23, 2020, 07:53
Default
  #10
New Member
 
Arun Kumar
Join Date: Sep 2019
Location: Dundee, Scotland
Posts: 15
Rep Power: 6
AR91 is on a distinguished road
Hello,
I am a student at University of Dundee. I am also facing a similar issue. The pressure values from my coarse and fine mesh make sense but the intermediate mesh results in wrong pressure values. Have you found a solution to this problem?
Thanks,
Arun.
AR91 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
[Other] Difference between Mesh independance study and Mesh Sensitivity Study kunvd ANSYS Meshing & Geometry 4 September 1, 2016 21:31
Mesh Independent Study isuru Main CFD Forum 17 March 26, 2013 11:35
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 09:38


All times are GMT -4. The time now is 18:09.