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

2D Flow through parallel planes solution behavior with respect to cell size.

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 25, 2015, 14:30
Default 2D Flow through parallel planes solution behavior with respect to cell size.
  #1
New Member
 
Pierluigi Morra
Join Date: Apr 2013
Posts: 25
Rep Power: 12
maCrobo is on a distinguished road
Hello everyone, I picked up the pitzDaily tutorial, changed its geometry in a 2D rectangle, switched off turbulence and tried to simulate the very well known case of an incompressible flow through two parallel planes with a Reynolds equal to 100. The height of the rectangle is 1/15 its length.

I started with a relative coarse grid and plotted the resulting Ux profile along the Y axis. The analytic solution gives a parabola, that is the trend I got from the coarse grid. If I decrease the cell size, the profile starts to flatten, and it gets closer to a case where the Reynolds increases or the viscosity decreases.
I do not understand why.

If you want to reproduced it, I attached it in here. I firstly tried a sampleGrading (150 10 0), then (1200 80 0).
Attached Files
File Type: zip Flow.zip (13.6 KB, 6 views)
maCrobo is offline   Reply With Quote

Old   August 25, 2015, 15:16
Default
  #2
Senior Member
 
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 219
Rep Power: 18
tas38 is on a distinguished road
Quote:
Originally Posted by maCrobo View Post
Hello everyone, I picked up the pitzDaily tutorial, changed its geometry in a 2D rectangle, switched off turbulence and tried to simulate the very well known case of an incompressible flow through two parallel planes with a Reynolds equal to 100. The height of the rectangle is 1/15 its length.

I started with a relative coarse grid and plotted the resulting Ux profile along the Y axis. The analytic solution gives a parabola, that is the trend I got from the coarse grid. If I decrease the cell size, the profile starts to flatten, and it gets closer to a case where the Reynolds increases or the viscosity decreases.
I do not understand why.

If you want to reproduced it, I attached it in here. I firstly tried a sampleGrading (150 10 0), then (1200 80 0).
First off, your residual values are rather large. I would suggest decreasing to 1E-5 and 1e-6 for U and p respectively.
tas38 is offline   Reply With Quote

Old   August 25, 2015, 18:06
Default
  #3
New Member
 
Pierluigi Morra
Join Date: Apr 2013
Posts: 25
Rep Power: 12
maCrobo is on a distinguished road
Modifying those values and increasing the number of cells such that SampleGrading (3000 200 0) gives back the same issue.
After increasing the maximum number of iterations the solution gets closer to the analytic one again.
It is like decreasing cell size makes the code need more iterations to reach convergence. That's counterintuitive to me, why is it so?

EDIT: My Answer is that the numerical viscosity helps reaching the parabolic trend quicker because it acts like a stronger force applied to the fluid, then convergence is reached earlier.

Last edited by maCrobo; August 26, 2015 at 07:38.
maCrobo is offline   Reply With Quote

Old   August 26, 2015, 18:06
Default
  #4
Senior Member
 
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 219
Rep Power: 18
tas38 is on a distinguished road
First, regarding the residual values, I meant 1e-5 for p and 1E-6 for U.

I believe your issue lies in the the combination of the grid size and the viscosity. Your
grid size is quite large for the viscosity value and the BL will very thin and will require a very
refined near wall grid to resolve.

I changed your velocity from 0.0005 to 0.5 and \nu from 1e-6 to 1e-3 to maintain the
same Reynolds number of 50. Coarse and refined grid velocity profiles near the
inlet and exit are attached.
Attached Images
File Type: png coarse.png (11.2 KB, 7 views)
File Type: png refined.png (11.4 KB, 6 views)
tas38 is offline   Reply With Quote

Old   August 27, 2015, 06:39
Default
  #5
New Member
 
Pierluigi Morra
Join Date: Apr 2013
Posts: 25
Rep Power: 12
maCrobo is on a distinguished road
Thanks for the reply. Actually, keeping my constants and changing the tolerance values gave me a nice result.
maCrobo is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[Other] dynamicTopoFVMesh and pointDisplacement RandomUser OpenFOAM Meshing & Mesh Conversion 6 April 26, 2018 08:30
[snappyHexMesh] crash sHM H25E OpenFOAM Meshing & Mesh Conversion 11 November 10, 2014 12:27
Journal file error magicalmarshmallow FLUENT 3 April 4, 2014 13:25
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
fluid flow fundas ram Main CFD Forum 5 June 17, 2000 22:31


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