CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Commercial meshers] How to solve"Can not find patchField entry for **"? (https://www.cfd-online.com/Forums/openfoam-meshing/134694-how-solve-can-not-find-patchfield-entry.html)

WenY May 4, 2014 04:38

How to solve"Can not find patchField entry for **"?
 
Hi
I tried to convert .msh file to openfoam,and have already checked the mesh,it showed success. But I could not see the mesh in paraview, the terminal showed "Can not find patchField entry for circle".ps."circle" is the name of a patch.
Anyone knows how to solve it?

wyldckat May 4, 2014 05:53

Greetings WenY and welcome to the forum!

If you look at the error message in more detail, you should be able to see that it's very likely complaining about the patch not being present inside a particular field file, for example inside "0/U" or "0/p".

You have at least 2 choices for fixing this:
  1. You properly set-up the boundary conditions inside the field files.
  2. Or you rename the folder "0" to something else, such as "0.org" (it's the standard used in OpenFOAM's tutorials for the original boundary conditions to be used in the case).

Beyond this, please keep in mind that people cannot see what you're seeing, and when it comes to OpenFOAM, every single detail is important. Therefore, giving these vague descriptions to problems will lead to taking longer to be answered... although in this case, you got lucky.
For more information, please read this thread: How to give enough info to get help

Best regards,
Bruno

WenY May 5, 2014 02:31

Quote:

Originally Posted by wyldckat (Post 489690)
Greetings WenY and welcome to the forum!

If you look at the error message in more detail, you should be able to see that it's very likely complaining about the patch not being present inside a particular field file, for example inside "0/U" or "0/p".

You have at least 2 choices for fixing this:
  1. You properly set-up the boundary conditions inside the field files.
  2. Or you rename the folder "0" to something else, such as "0.org" (it's the standard used in OpenFOAM's tutorials for the original boundary conditions to be used in the case).

Beyond this, please keep in mind that people cannot see what you're seeing, and when it comes to OpenFOAM, every single detail is important. Therefore, giving these vague descriptions to problems will lead to taking longer to be answered... although in this case, you got lucky.
For more information, please read this thread: How to give enough info to get help

Best regards,
Bruno

Hi Bruno
Thanks for your advice, I've already read the information you showed to me.I'm new here and starting to study openfoam. You really help me!!:)
regards
WenY

aow June 5, 2018 02:22

I just wanted to say thank you so very much to Bruno for your thorough answer here! Your option 2 saved me from a great deal of misery.

I'm trying to create a mesh initially in 3 pieces due to desired cell size differences and then combine them all together using stitchMesh, but I had copied 0.org as 0 before doing this and was getting "FOAM FATAL IO ERROR: Cannot find patchField entry for upper1" as an error. After reading this post, I moved the copying of 0.org to after using blockMesh and stitchMesh twice in my bash script that builds my model and all is well now! :D


All times are GMT -4. The time now is 15:33.