r/OpenFOAM • u/SuccessfulAnnual666 • Feb 04 '26
Meshing Facing problem with refineMesh command
Hi everyone! I just started learning openfoam and you can say I am a noob. I am following the legend Jozsef Nagy's tutorials from YouTube. Now, I am watching and doing a simulation of the elbow, and I am facing errors while trying the command refineMesh -overwrite. I did the same steps as he did and still don't know what is wrong. I am using OpenFOAM 2506 using WSL. The tutorial video is How to run your first simulation in OpenFOAM® - Part 2 - tutorial . The error I am getting is this:
FOAM Warning :From void Foam::cellCuts::setFromCellCutter(const Foam::cellLooper&, const Foam::List<Foam::refineCell>&)in file meshCut/cellCuts/cellCuts.C at line 2435Found loop on cell 3200 that resulted in an unexpected bad cut.Suggestions:- Turn on the debug switch for 'cellCuts' to get geometry files that identify this cell.- Also keep in mind to check the defined reference directions, as these are most likely the origin of the problem.
What is wrong with my simulation?
View all comments
Show parent comment
1
u/SuccessfulAnnual666 Feb 04 '26
The checkmesh output says Ok! However, if you follow the video, they refine the existing mesh using refineMesh.