OpenFOAM simulation stops with no error when increasing mesh element density
1 Attachment(s)
Hi all,
I've got a curious error in my simulation. The simulation will stop running at an early time step and exit without giving an error or explaining why. I began running this in parallel and the only erroneous line displayed was: Code:
[58] #0 Foam::error::printStack(Foam::Ostream&) This error only occurred when I increased my mesh element density from 175x315x42 to 200x360x48. The simulation worked for the former but not the latter which leads me to believe that it is a meshing problem. But when I use checkMesh it says that it only failed one test and I believe it was because of concave faces/cells. I've attached my case below (some files, like the stl file, were removed due to the max file size) so if anyone could give me any indication as to why this is happening I would greatly appreciate it. Thanks, Dan |
Hi Dan,
have a look at your writePrecision in controlDict and than have a look at your numbers in blockMeshDict. You use locations like 1e-7 with a writePrecision of 7 this might cause trouble when changing your grid width. You might want to set your write precision higher and do another test run. Greetings, Teresa |
2 Attachment(s)
Hi Teresa,
I changed the 1e-7 to 1e-5 in my blockMeshDict but my simulation still exited at the exact same time step as before :/ Do you have any other suggestions? This might have something to do with my STL file/snappyHexMesh because I found that when I increased my mesh element density from 150x270x36 to 175x315x42 I seemed to "lose" my refinement region (see attachments). I can't upload my stl file here since it exceeds the max file size so images are the best I can do right now. |
Hey Dan,
you could try using a different STL Your bounding box within the snappyHexMesh boundingBox : (-2.186298e-09 3.544467e-19 -9.674712e-19) (0.05 0.05 0.012) and there is a warning --> FOAM Warning : From function void Foam::snappySnapDriver::doSnap(const Foam::dictionary&, const Foam::dictionary&, bool, Foam::scalar, Foam::scalar, const Foam::snapParameters&) in file snappyHexMeshDriver/snappySnapDriver.C at line 2844 Did not successfully snap mesh. Continuing to snap to resolve easy surfaces but the resulting mesh will not satisfy your quality constraints Maybe checkMesh can give you some new hints. Regards Teresa |
Unfortunately I need to use this STL as my project revolves around lattices.
I ran checkMesh and this is the output: Code:
/*---------------------------------------------------------------------------*\ I'm not particularly sure where to go from here now however. Thank you for the help so far. |
Hi,
even if you have to use this stl in the end you might want to use a different one now to check if the stl is a problem. You can change your current STL to less features, different resolution and so on as well. You might get better results with snappyHexMesh using the same grid with in all directions. If snappyHexMesh refines your cells even more you should change the writingPrecision accordingly (instead of your points in the blockMesh). Getting a nice mesh is worth the time and effort in many if not most cases. Good luck, Teresa |
Thanks Teresa! I'm definitely going to have to work on my mesh a bit more then and make sure that it's as good as I can get it. Thanks for all of your help so far!
If I make any breakthroughs I'll post here again :) |
You have an intresting geometry! I usually encounter problems when the stl is not refined enough. You can have really bad cells. First of all try checkMesh, see your elements if they are in good shape or not. If they are not, I suggest you to refine your stls surface quality.
|
All times are GMT -4. The time now is 22:03. |