CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Mesh size vs Convergence

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2016, 08:56
Question Mesh size vs Convergence
  #1
New Member
 
Xuekun Lu
Join Date: Oct 2015
Posts: 20
Rep Power: 11
Xuekun is on a distinguished road
Hello all,

I am modelling the gas flow through the channel. I have a problem about the modelling size scale vs the convergence.

Previously I imported the mesh, using the default units:m, the model converged very well under the specified boundary condition, which is pressure outlet at both sides, with the inlet side higher pressure.

Actually, if I scaled the mesh down by 1E-6, which change the length scale from m to um, the model never converged, no matter using the same boundary condition or changing to whatever. I checked that, after I scaled the mesh, the minimum cell volume is 1E-22 m3, is this the problem causing the divergence? Please help !

Thanks !
Xuekun is offline   Reply With Quote

Old   January 17, 2016, 17:57
Default
  #2
New Member
 
James
Join Date: Jan 2016
Posts: 3
Rep Power: 10
JSped is on a distinguished road
I am new to CFD but that seems incredibly small. How many total cells is that?

When you say it hasn't converged, do you mean in the same number of iterations as before?
JSped is offline   Reply With Quote

Old   January 17, 2016, 20:24
Default
  #3
New Member
 
Xuekun Lu
Join Date: Oct 2015
Posts: 20
Rep Power: 11
Xuekun is on a distinguished road
Quote:
Originally Posted by JSped View Post
I am new to CFD but that seems incredibly small. How many total cells is that?

When you say it hasn't converged, do you mean in the same number of iterations as before?
Hi,

Thanks to your response ! The cell count is 2 million. By saying not converge, I mean the residuals always increase after 10 iterations. I solved this problem by deleting some smallest cells. Thanks again for your reply !
Xuekun is offline   Reply With Quote

Old   January 18, 2016, 16:27
Default
  #4
Senior Member
 
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 18
fluid23 is on a distinguished road
First... What kind of geometry did you model that you could scale the geometry by a factor of 1/1,000,000? That seems very excessive and unnecessary to me. Is this just an exercise or are you trying to get some real quantifiable scientific or engineering value from this analysis? To put this in to terms that someone could understand, this would be the equivalent of scaling mount Everest from its height of 29,029 feet to something about the size of your finger nail.

Second, you most likely are running into your machine epsilon (i.e. the rounding error of floating point numbers). This varies depending on your machine architecture, but having cell sizes on the order of 10^-22 would definitely put you in the 'danger zone' Basically, anything smaller than machine epsilon (which for double precision is somewhere around 10^-11) will get stored as zero, not the value you intended. This is probably why you got better results deleting the smallest cells.
fluid23 is offline   Reply With Quote

Old   January 24, 2016, 08:54
Default
  #5
New Member
 
Xuekun Lu
Join Date: Oct 2015
Posts: 20
Rep Power: 11
Xuekun is on a distinguished road
Quote:
Originally Posted by MBdonCFD View Post
First... What kind of geometry did you model that you could scale the geometry by a factor of 1/1,000,000? That seems very excessive and unnecessary to me. Is this just an exercise or are you trying to get some real quantifiable scientific or engineering value from this analysis? To put this in to terms that someone could understand, this would be the equivalent of scaling mount Everest from its height of 29,029 feet to something about the size of your finger nail.

Second, you most likely are running into your machine epsilon (i.e. the rounding error of floating point numbers). This varies depending on your machine architecture, but having cell sizes on the order of 10^-22 would definitely put you in the 'danger zone' Basically, anything smaller than machine epsilon (which for double precision is somewhere around 10^-11) will get stored as zero, not the value you intended. This is probably why you got better results deleting the smallest cells.
Hello Matt,

Thank you so much for your reply ! It seems make sense if explained as machine epsilon problem. I actually intended to model the gas diffusion phenomenon in the porous sample, and I have the real structure 3D mesh. The real size is 10 * 10* 10 microns. If I keep consistent with what I model and what is real in terms of feature size, then the cell volume will definitely go to 1E-22 um3 level, at a moderate mesh size. So how can I deal with this problem?
Xuekun is offline   Reply With Quote

Old   January 25, 2016, 10:10
Default
  #6
Senior Member
 
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 18
fluid23 is on a distinguished road
To be honest, I am really not sure how to approach that. I have never worked so small before. You can find a similarity solution, at least to some degree, by changing your fluid properties such that your reynolds number stays constant but the characteristic length can grow. I am not sure this is the correct approach for this problem, perhaps someone else can weigh in who has more experience.
fluid23 is offline   Reply With Quote

Reply

Tags
convergence, gas flow, mesh size


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
[snappyHexMesh] Number of cells in mesh don't match with size of cellLevel colinB OpenFOAM Meshing & Mesh Conversion 14 December 12, 2018 09:07
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
[snappyHexMesh] crash sHM H25E OpenFOAM Meshing & Mesh Conversion 11 November 10, 2014 12:27
Force can not converge colopolo CFX 13 October 4, 2011 23:03
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 10:38


All times are GMT -4. The time now is 02:46.