|
[Sponsors] |
potentialFoam & simpleFoam crashes after snappyhexmesh [parallel execution] |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 27, 2015, 15:55 |
potentialFoam & simpleFoam crashes after snappyhexmesh [parallel execution]
|
#1 |
New Member
pilot
Join Date: Oct 2015
Posts: 5
Rep Power: 11 |
Hi everyone,
I am a beginner in this field! And I have a problem that I am facing for several days now without knowing what the cause is or might be, so I thought maybe you can help me figure it out. The case:I am trying to do calculations on a car on a moving wall. I have copied most of the things from the motorBike tutorial. I have added a residual control to the contradict file and changed some settings on snappyhexmesh like (maxlocalcells 2 mil. maxglobalcells 4 mil. Tolerance 1.0 etc) I also modified the ./Allrun script for 8 cores on simple (4 2 1) not hierarchical. Now the problem: When I run it with ./Allrun it works fine and it does the job on 8 cores until snappyHexMesh finishes. After that potentialFoam crashes (I have put the log files below) and because of that simpleFoam crashes as well. It is weird to me because if the problem would be snappyhexmesh or the STL it would fail at the start and not after snappyhexmesh (I might be wrong). Sometimes it does work though. I am doing a mesh sensitivity analysis for the car and want to figure out at which number of cells the forces are more stable. For example if the blockMesh comprises of 5000 cells it may work but when I increase it to 10000/20000 it crashes and I always get the same error. In the log files I cannot find anything useful to look for! I have tried everything I have changed the number of cores to 4 to 2 etc. still no luck. I read somewhere someone saying it may be the solvers or a BC but they are the same for the motorBike! I hope someone can help me with this problem! (It is really annoying) Kind regards |
|
October 28, 2015, 05:16 |
|
#2 |
Senior Member
Join Date: Mar 2015
Posts: 250
Rep Power: 12 |
Hello pilot,
since the simulation crashes after snappyHexMesh, I suspect there is something wrong with your mesh or the changes you made in the input files. Can you make some pictures of your mesh and explain the changes you made in the input files? And please post your controlDict! Best regards, Kate |
|
November 3, 2015, 08:00 |
|
#3 |
New Member
pilot
Join Date: Oct 2015
Posts: 5
Rep Power: 11 |
Hello KateEisenhower,
Sorry for answering you late! (had a busy week) Attached you can find the files and a preview of the mesh. The changes I made are; Controldict -> making the time step 1000 so it hit the error somewhere before that value. fvSolution -> added a residual control fvSchemes -> nothing changed here Snappyhexmesh -> maxLocalCells 2000000; maxGlobalCells 4000000; nSolveIter 300; tolerance 2.0; As I said previously I want to do a sensitivity analysis, so with the increase of blockmesh cells the surface should be more finer. Hope you/someone can help me out with this problem! Thanks Kind regards |
|
November 3, 2015, 09:52 |
|
#4 | |
Senior Member
Join Date: Mar 2015
Posts: 250
Rep Power: 12 |
Hi pilot,
no problem. Quote:
Best regards, Kate |
||
November 4, 2015, 06:50 |
|
#5 |
New Member
pilot
Join Date: Oct 2015
Posts: 5
Rep Power: 11 |
Hello KateEisenhower,
Thank you for the quick reply. I re-run the cases all over again and for 5000 & 20000 cells it did not work, for 10000 it did work. (Attached you can find the checkmesh results) Kind regards |
|
November 4, 2015, 10:02 |
|
#6 |
New Member
Join Date: Jul 2015
Posts: 23
Rep Power: 11 |
Use splitMeshRegions -largestOnly
Your unstable cases have multiple regions with only 1 cell. Take the largest region (will be written to your first timestep), and try again. |
|
November 5, 2015, 05:53 |
|
#7 |
Senior Member
Join Date: Mar 2015
Posts: 250
Rep Power: 12 |
Hi Pilot,
I think Nicholas is right. Look at this lines in your output for the 5000 case: Code:
*Number of regions: 9 The mesh has multiple regions which are not connected by any face. <<Writing region information to "constant/cellToRegion" <<Writing region 0 with 97583 cells to cellSet region0 <<Writing region 1 with 1 cells to cellSet region1 <<Writing region 2 with 1 cells to cellSet region2 <<Writing region 3 with 1 cells to cellSet region3 <<Writing region 4 with 1 cells to cellSet region4 <<Writing region 5 with 1 cells to cellSet region5 <<Writing region 6 with 1 cells to cellSet region6 <<Writing region 7 with 1 cells to cellSet region7 <<Writing region 8 with 1 cells to cellSet region8 Also you could try to view the mentioned cells in ParaView and optimize your mesh on that basis. I would also search the forum for this "multiple regions" error. Come back here if you can't figure it out by yourself. I don't have much experience with snappyHexMesh but I'll try to help. Best regards, Kate |
|
November 8, 2015, 13:32 |
|
#8 |
New Member
pilot
Join Date: Oct 2015
Posts: 5
Rep Power: 11 |
hi Kate & Nicholas,
I have tried what Nicholas mentioned earlier. What I get is a new "0" folder with therein the largest region. I copy them in Constant/Polymesh and re-run snappyhexmesh and it crashes. Maybe I am doing something wrong. As I am new in this field, can you (Nicholas) perhaps explain what that command exactly do and how we use it? Thanks in advance! Kind regards |
|
November 9, 2015, 06:11 |
|
#9 |
New Member
Join Date: Jun 2014
Posts: 9
Rep Power: 12 |
Hi pilot320
It is probably helpful if you can provide a screen shot of the mesh, showing only grids on the rolling road and the chassis surface. But....I dont think your current snappyHex setting returns a mesh fine enough. How do I know it? The change in area/edge size on the car is lots. If a 4-level refinement was fine enough to capture the sharp edges simply on the chassis, that means the base mesh size ( from blockMesh ) would be way too fine for a car shown in the picture you provided. Remember the base mesh is 0-level, and 1-level of refinement halves the 0-level. It is also not hard to spot those coarse cells on the wheels and pillars. If I were you, I would set 0-level the same size as the wheelbase, and apply successive refinements level by level. I would also fine it handy to increase area and feature edge refinements at the same time by the same amount. To make a rough guess, it might take at least 9 levels of refinements before the cells can capture those sharp edges on the chassis. Finally, you will probably find it very useful to break down the only STL file into many STL's in order to apply different levels of refinements. I would expect 6 to 7 figures of total elements across the whole computation domain ( as opposed to quarter of a million that you have now ) if you were to use a high-Re turbulence model, for an automotive model like yours |
|
November 9, 2015, 09:15 |
|
#10 |
New Member
Join Date: Jul 2015
Posts: 23
Rep Power: 11 |
As for the split mesh regions, execute the command in the same location as your previous checkMesh.
You will be moving the result of your snappyHexMesh to the solver folder, and using the command to remove the extra regions. The largest region will be moved to your first timestep. Run the solver on the new polyMesh. |
|
November 12, 2015, 17:56 |
|
#11 |
New Member
pilot
Join Date: Oct 2015
Posts: 5
Rep Power: 11 |
It finally worked using the splitmeshregion command! Thank you @Kate & @Nicholas!
|
|
Tags |
crash, error, potentialfoam, simplefoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to run potentialFoam and simpleFoam together . | vmsandip2011 | OpenFOAM Running, Solving & CFD | 11 | April 2, 2021 11:56 |
potentialFoam giving strange error when initialising simpleFoam | maero21 | OpenFOAM Running, Solving & CFD | 3 | October 15, 2013 17:19 |
[snappyHexMesh] Cyclic BC with snappyHexMesh crashes in multiple processors | jgil9 | OpenFOAM Meshing & Mesh Conversion | 10 | September 7, 2013 15:53 |
SnappyHexMesh OF-1.6-ext crashes on a parallel run | norman1981 | OpenFOAM Bugs | 5 | December 7, 2011 13:48 |
BC for simpleFoam from potentialFoam results | Geon-Hong | OpenFOAM Running, Solving & CFD | 0 | April 5, 2011 23:23 |