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

How much can the sizes of cells vary within one simulation domain?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By piu58

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 27, 2017, 16:59
Default How much can the sizes of cells vary within one simulation domain?
  #1
Senior Member
 
Join Date: Jul 2013
Posts: 124
Rep Power: 12
wildfire230 is on a distinguished road
Hi all,

I am working on several simulations in which the sizes and volumes of cells range by orders of magnitude. One of these cases is basically a microfluidic channel that opens into a much larger main channel, and the dynamics within the pore and in the immediate vicinity of the junction with the main channel are the main points of interest.

In my current simulation, I have these results from checkMesh:

***High aspect ratio cells found, Max aspect ratio: 1006.08528449, number of cells 800
<<Writing 800 cells with high aspect ratio to set highAspectRatioCells
Minimum face area = 6.25e-12. Maximum face area = 5.45656661211e-06. Face area magnitudes OK.
Min volume = 8.20300604974e-17. Max volume = 4.02026660785e-09. Total volume = 3.005125e-06. Cell volumes OK.

You can see that I have both very high aspect ratio cells, and also the maximum and minimum cell volumes range by 8 orders of magnitude. The flow is low Reynolds number and steady, but I am not getting nice convergence with simpleFoam, and my best guess is that it is because of the mesh quality. So I have two questions:

1. Do high aspect ratio cells prevent nice convergence with simpleFoam?

2. Does having cells with many orders of magnitude different volumes affect convergence with simpleFoam?

Thanks in advance!
wildfire230 is offline   Reply With Quote

Old   December 28, 2017, 00: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
Cells with high aspect ratios are o.k. or even necessary, if the flow / pressure gradient in one direction is much higher than in the other. Often you have this in the near of surfaces. In region whee the flow spreads and disposes the flow energy to the whole volume such cells are undesirable.
wildfire230 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   December 28, 2017, 08:44
Default
  #3
Senior Member
 
Join Date: Jul 2013
Posts: 124
Rep Power: 12
wildfire230 is on a distinguished road
Hi, thanks for the response. That makes sense. Is there any limitation on the range of cell sizes that you can have? For example, suppose I have a 50 micron diameter channel that opens into 1 cm diameter main channel. Then of course the cells in the main channel will be much larger than those in the small channel. Does that affect convergence? I know that simpleFoam uses some kind of relative error for measuring convergence, and I think I heard somewhere that the large cells might dominate the calculation, so that the relative errors could be small, although the results in the small cells are highly inaccurate. Do you have any experience or thoughts with those issues?

Thanks again!
wildfire230 is offline   Reply With Quote

Old   December 29, 2017, 02:59
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
50 µm against 1 cm looks large. But it may be adequate to your case.

I recommend th following:
Let the analysis run until you get a rather stable state. It doesn't has to be an equilibrium, but avoid the very first time steps for this.
I always use the time control by maxCo. If you do so, you see what time step you get. If may change something, e.g. changing the 1 cm coordinate to 3 mm. If you get a larger time step then, you move in the right direction. If the time step doesn't change or get even smaller, than you did the wrong thing.

Mesh analysis is important in every case. In such situations you have additional to check the mesh resolution between the directions.
__________________
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

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
Problem with divergence TDK FLUENT 13 December 14, 2018 06:00
Floating point exception: Zero divide liladhar CFX 11 December 16, 2013 04:07
injection problem Mark New FLUENT 0 August 4, 2013 01:30
simplified paralle tube bundle simulation (porous domain) Benfa CFX 1 May 5, 2013 08:01
Help on simulation domain Derek Jing Main CFD Forum 3 June 6, 2002 20:21


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