|
[Sponsors] |
January 25, 2024, 00:45 |
Error when running AMR on half cylinder mesh
|
#1 |
Member
Song Young Ik
Join Date: Apr 2022
Location: South Korea
Posts: 59
Rep Power: 4 |
I created half-cylinder mesh with symmetry boundary which is based on this file page 60~66
http://www.wolfdynamics.com/wiki/mes..._blockmesh.pdf and used AMR feature by setting refiner on dynamicMeshDict. When I used AMR on square box mesh with fully hexahedral cells it worked fine, but as I created cylindrical mesh with curved edge, it somehow aborts the refinement during solving. Is it due to shape of the mesh, or some other issue? Below is the error code Code:
[3] #0 Foam::error::printStack(Foam::Ostream&) at ??:?[3] #1 Foam::sigSegv::sigHandler(int) at ??:?[3] #2 ? in "/lib/x86_64-linux-gnu/libc.so.6"[3] #3 Foam::fvMeshTopoChangers::refiner::refineUfs(Foam::HashSet<int, Foam::Hash<int> > const&, Foam::polyTopoChangeMap const&) at ??:?[3] #4 Foam::fvMeshTopoChangers::refiner::refine(Foam::List<int> const&) at ??:?[3] #5 Foam::fvMeshTopoChangers::refiner::update() at ??:?[3] #6 Foam::fvMesh::update() at ??:?[3] #7 Foam::solvers::VoFSolver::preSolve() at ??:?[3] #8 Foam::solvers::twoPhaseSolver::preSolve() at ??:?[3] #9 ? in "/opt/openfoam11/platforms/linux64GccDPInt32Opt/bin/foamRun"[3] #10 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"[3] #11 ? in "/opt/openfoam11/platforms/linux64GccDPInt32Opt/bin/foamRun "[song-desktop:17960] *** Process received signal *** [song-desktop:17960] Signal: Segmentation fault (11) [song-desktop:17960] Signal code: (-6) [song-desktop:17960] Failing at address: 0x3e800004628 [song-desktop:17960] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x43090)[0x7fd74c69b090] [song-desktop:17960] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7fd74c69b00b] [song-desktop:17960] [ 2] /lib/x86_64-linux-gnu/libc.so.6(+0x43090)[0x7fd74c69b090] [song-desktop:17960] [ 3] /opt/openfoam11/platforms/linux64GccDPInt32Opt/lib/libfvMeshTopoChangers.so(_ZN4Foam18fvMeshTopoChangers7refiner9refineUfsERKNS_7HashSetIiNS_4HashIiEEEERKNS_17polyTopoChangeMapE+0x568)[0x7fd7403dd818] [song-desktop:17960] [ 4] /opt/openfoam11/platforms/linux64GccDPInt32Opt/lib/libfvMeshTopoChangers.so(_ZN4Foam18fvMeshTopoChangers7refiner6refineERKNS_4ListIiEE+0x559)[0x7fd7403de079] [song-desktop:17960] [ 5] /opt/openfoam11/platforms/linux64GccDPInt32Opt/lib/libfvMeshTopoChangers.so(_ZN4Foam18fvMeshTopoChangers7refiner6updateEv+0x31e)[0x7fd7403df6de] [song-desktop:17960] [ 6] /opt/openfoam11/platforms/linux64GccDPInt32Opt/lib/libfiniteVolume.so(_ZN4Foam6fvMesh6updateEv+0xa4)[0x7fd74dc38b84] [song-desktop:17960] [ 7] /opt/openfoam11/platforms/linux64GccDPInt32Opt/lib/libVoFSolver.so(_ZN4Foam7solvers9VoFSolver8preSolveEv+0x3ad)[0x7fd7480ae41d] [song-desktop:17960] [ 8] /opt/openfoam11/platforms/linux64GccDPInt32Opt/lib/libtwoPhaseSolver.so(_ZN4Foam7solvers14twoPhaseSolver8preSolveEv+0xd)[0x7fd742ac121d] [song-desktop:17960] [ 9] foamRun(+0x3e30)[0x557c79e1be30] [song-desktop:17960] [10] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7fd74c67c083][song-desktop:17960] [11] foamRun(+0x42be)[0x557c79e1c2be] [song-desktop:17960] *** End of error message ***--------------------------------------------------------------------------Primary job terminated normally, but 1 process returneda non-zero exit code. Per user-direction, the job has been aborted.----------------------------------------------------------------------------------------------------------------------------------------------------mpirun noticed that process rank 3 with PID 0 on node song-desktop exited on signal 11 (Segmentation fault).-------------------------------------------------------------------------- |
|
January 25, 2024, 05:35 |
|
#2 |
Senior Member
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8 |
In openfoam AMR only works with polyhedral cells. However, sharing your mesh maybe help to better discussion.
Regards |
|
January 25, 2024, 06:48 |
|
#3 | |
Member
Song Young Ik
Join Date: Apr 2022
Location: South Korea
Posts: 59
Rep Power: 4 |
Quote:
This is my blockmeshdict file. It divides into 4 blocks, with one square at center and curved blocks surrounding it. I initially guessed it was because my mesh contains curved edge while defining blockmeshdict, but since cell itself doens't have curved edge, so I am doubtful about that possibility. When I run checkmesh, it shows that every cell are hexahedral. I used AMR on full hexahedral mesh before and it worked, so type of cell wouldn't be the problem, but maybe shape of the cell does. However, I can't find problem from my half-cylinder cell. |
||
January 25, 2024, 07:28 |
|
#4 | |
Senior Member
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8 |
Ok, what is your cells aspect ratio? Aspect ratio of 1 would be the best.
I couldn't run your blockMesh! Quote:
|
||
January 25, 2024, 10:58 |
|
#5 |
Member
Song Young Ik
Join Date: Apr 2022
Location: South Korea
Posts: 59
Rep Power: 4 |
When I run checkmesh, it shows that max aspect ratio = -1, but I can't understand how one can have negative aspect ratio.
This is the image of my mesh, and I guess it will have actual max aspect ratio around 5 or something. |
|
Tags |
adaptive mesh refinement, blockmesh, cylinder |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] Cylinder mesh using blockMesh with m4 macro | Lewis Liang | OpenFOAM Meshing & Mesh Conversion | 2 | November 21, 2017 03:28 |
Unstructrued O-type Mesh of a cylinder with icoFoam | kindle | OpenFOAM Running, Solving & CFD | 1 | December 2, 2016 12:45 |
[ICEM] How to mesh for regular pentagonal cylinder using ICEM in 2D? | ranjanrk | ANSYS Meshing & Geometry | 0 | June 18, 2016 03:10 |
rotating cylinder using sliding mesh | Tim Daly | FLUENT | 1 | November 10, 2008 00:02 |
Convergence moving mesh | lr103476 | OpenFOAM Running, Solving & CFD | 30 | November 19, 2007 15:09 |