CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

SnappyHexMesh: topoSetDict and createPatch fatal error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 4, 2023, 00:27
Default SnappyHexMesh: topoSetDict and createPatch fatal error
  #1
New Member
 
Maxence
Join Date: Jul 2023
Posts: 1
Rep Power: 0
Oreste is on a distinguished road
Hi people, newbie here!


I am following this OpenFOAM Intermediate tutorial: https://www.youtube.com/watch?v=sIU1...i_iuE&index=15 to learn how to use the snappyHexMesh utility for a personal project, and I am stuck on topoSetDict and createPatch.



I followed the tutorial step by step, the only difference is the original 3D file used, but when I try to execute the createPatch function to define my inlet, outlet and walls patches, I get an error:

Read 73995 faces from faceSet inputPatch

--> FOAM FATAL ERROR: (openfoam-2012)
Face 26766 specified in set inputPatch is not an external face of the mesh.
This application can only repatch existing boundary faces.

From int main(int, char**)
in file createPatch.C at line 743.

FOAM exiting




I am not sure what the issue is, as I don't understand what I could change to generate the different patches for the simulation. What is a non-external face? Is it an internal face or not a face at all? Then how am I supposed to define the patches?



Here is the mesh in Paraview (this is the shape that I want to study):
https://ibb.co/gMPCLyg


Also, I am not sure why there is a box surrounding my mesh when I change the visible patches (i did not make that box and don't know why it is here). Is that what is causing the problem? The actual mesh I want is internal? I don't know what that means halp.
https://ibb.co/swQqdjs



Here is the topoSetDict file used:


/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version2.0;
formatascii;
classdictionary;
objecttopoSetDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

actions
(

// OUTER BOX
{
nameouterBox;
typefaceSet;
actionnew;
sourcepatchToFace;
sourceInfo {
patch"movingWall";
}
}
{
nameouterBox;
typefaceSet;
actionadd;
sourcepatchToFace;
sourceInfo {
patch"fixedWalls";
}
}
{
nameouterBox;
typefaceSet;
actionadd;
sourcepatchToFace;
sourceInfo {
patch"frontAndBack";
}
}

// FULL CHIP
{
namechipBottomChannel;
typefaceSet;
actionnew;
sourceboxToFace;
sourceInfo {
box (-3.1-14.0-0.7) (3.114.01.9);
}
}
{
namechipBottomChannel;
typefaceSet;
actiondelete;
sourcefaceToFace;
sourceInfo {
setouterBox;
}
}

// NEGATIVES
{
nameinputPatchNegative;
typefaceSet;
actionnew;
sourceboxToFace;
sourceInfo {
boxes
(
(-3.1-13.6-0.7) (3.113.61.4)
(-3.1-14.01.0) (3.1-12.01.9)
);
}
}
{
nameoutputPatchNegative;
typefaceSet;
actionnew;
sourceboxToFace;
sourceInfo {
boxes
(
(-3.1-13.6-0.7) (3.113.61.4)
(-3.112.01.0) (3.114.01.9)
);
}
}


/*new faceSet => INPUT PATCH*/

{
nameinputPatch;
typefaceSet;
actionnew;
sourcefaceToFace;
sourceInfo {
setchipBottomChannel;
}
}
{
nameinputPatch;
typefaceSet;
actiondelete;
sourcefaceToFace;
sourceInfo {
setinputPatchNegative;
}
}


/*new faceSet => OUTPUT PATCH*/
{
nameoutputPatch;
typefaceSet;
actionnew;
sourcefaceToFace;
sourceInfo {
setchipBottomChannel;
}
}
{
nameoutputPatch;
typefaceSet;
actiondelete;
sourcefaceToFace;
sourceInfo {
setoutputPatchNegative;
}
}

/*new faceSet => WALLS*/
{
nameWall;
typefaceSet;
actionnew;
sourcefaceToFace;
sourceInfo {
setchipBottomChannel;
}
}
{
nameWall;
typefaceSet;
actiondelete;
sourcefaceToFace;
sourceInfo {
setinputPatch;
}
}
{
nameWall;
typefaceSet;
actiondelete;
sourcefaceToFace;
sourceInfo {
setoutputPatch;
}
}

);




Thanks a lot for your help, I am new to CFD and this is all very confusing,


~~ Oreste
Oreste is offline   Reply With Quote

Reply

Tags
createpatchdict, snappyhexmesh, toposetdict

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] [cfMesh] Error when creating AMI patches propeller gabrielfelix OpenFOAM Community Contributions 2 July 5, 2023 20:54
Error in createPatch gmori OpenFOAM Pre-Processing 2 December 15, 2022 03:33
There is a bug in createPatch? feno102 OpenFOAM Pre-Processing 6 November 1, 2017 02:24
[snappyHexMesh] SnappyHexmesh error yiwang25 OpenFOAM Meshing & Mesh Conversion 3 June 16, 2013 16:07


All times are GMT -4. The time now is 23:03.