|
[Sponsors] |
January 16, 2016, 08:56 |
Mesh size vs Convergence
|
#1 |
New Member
Xuekun Lu
Join Date: Oct 2015
Posts: 20
Rep Power: 11 |
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 ! |
|
January 17, 2016, 17:57 |
|
#2 |
New Member
James
Join Date: Jan 2016
Posts: 3
Rep Power: 10 |
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? |
|
January 17, 2016, 20:24 |
|
#3 | |
New Member
Xuekun Lu
Join Date: Oct 2015
Posts: 20
Rep Power: 11 |
Quote:
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 ! |
||
January 18, 2016, 16:27 |
|
#4 |
Senior Member
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 18 |
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. |
|
January 24, 2016, 08:54 |
|
#5 | |
New Member
Xuekun Lu
Join Date: Oct 2015
Posts: 20
Rep Power: 11 |
Quote:
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? |
||
January 25, 2016, 10:10 |
|
#6 |
Senior Member
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 18 |
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.
|
|
Tags |
convergence, gas flow, mesh size |
|
|
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 |