CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[blockMesh] --> FOAM FATAL ERROR: Trying to specify a boundary face

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 28, 2019, 10:48
Default Hi every one! I have the same problem with the blockMesh file attached. when running,
  #41
Member
 
Muhammad Kashif Jawad
Join Date: Oct 2019
Location: Pakistan
Posts: 48
Rep Power: 5
mkjmalik is an unknown quantity at this point
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

vertices
(
(0 0 0) //0
(0.914 0 0) //1
(0 1.93 0) //2
(0.914 1.93 0) //3
(0 3.93 0) //4
(0.914 3.93 0) //5
(0 5.59 0) //6
(0.914 5.59 0) //7

(0 0 0.296) //8
(0.914 0 0.296) //9
(0 1.93 0.296) //10
(0.914 1.93 0.296) //11
(0 3.93 0.296) //12
(0.914 3.93 0.296) //13
(0 5.59 0.296) //14
(0.914 5.59 0.296) //15

(0 0 0.51) //16
(0.914 0 0.51) //17
(0 1.93 0.51) //18
(0.914 1.93 0.51) //19
(0 3.93 0.51) //20
(0.914 3.93 0.51) //21
(0 5.59 0.51) //22
(0.914 5.59 0.51) //23

(8.334 5.59 0) //24
(8.334 6.504 0) //25
(6.404 5.59 0) //26
(6.404 6.504 0) //27
(2.404 5.59 0) //28
(2.404 6.504 0) //29
(0.914 5.59 0) //30
(0.914 6.504 0) //31

(8.334 5.59 0.296) //32
(8.334 6.504 0.296) //33
(6.404 5.59 0.296) //34
(6.404 6.504 0.296) //35
(2.404 5.59 0.296) //36
(2.404 6.504 0.296) //37
(0.914 5.59 0.296) //38
(0.914 6.504 0.296) //39

(8.334 5.59 0.51) //40
(8.334 6.504 0.51) //41
(6.404 5.59 0.51) //42
(6.404 6.504 0.51) //43
(2.404 5.59 0.51) //44
(2.404 6.504 0.51) //45
(0.914 5.59 0.51) //46
(0.914 6.504 0.51) //47

(0 5.59 0) //48
(0 6.504 0) //49
(-3.546 5.59 0) //50
(-3.546 6.504 0) //51
(-7.546 5.59 0) //52
(-7.546 6.504 0) //53
(-15.546 5.59 0) //54
(-15.546 6.504 0) //55

(0 5.59 0.296) //56
(0 6.504 0.296) //57
(-3.546 5.59 0.296) //58
(-3.546 6.504 0.296) //59
(-7.546 5.59 0.296) //60
(-7.546 6.504 0.296) //61
(-15.546 5.59 0.296) //62
(-15.546 6.504 0.296) //63

(0 5.59 0.51) //64
(0 6.504 0.51) //65
(-3.546 5.59 0.51) //66
(-3.546 6.504 0.51) //67
(-7.546 5.59 0.51) //68
(-7.546 6.504 0.51) //69
(-15.546 5.59 0.51) //70
(-15.546 6.504 0.51) //71
);

blocks
(
hex (0 1 3 2 8 9 11 10) (10 10 10) simpleGrading (1 1 1)
hex (8 9 11 10 16 17 19 18) (10 10 10) simpleGrading (1 1 1)
hex (2 3 5 4 10 11 13 12) (10 10 10) simpleGrading (1 1 1)
hex (10 11 13 12 18 19 21 20) (10 10 10) simpleGrading (1 1 1)
hex (4 5 7 6 12 13 15 14) (10 10 10) simpleGrading (1 1 1)
hex (12 13 15 14 20 21 23 22) (10 10 10) simpleGrading (1 1 1)

hex (24 25 27 26 32 33 35 34) (10 10 10) simpleGrading (1 1 1)
hex (32 33 35 34 40 41 43 42) (10 10 10) simpleGrading (1 1 1)
hex (26 27 29 28 34 35 37 36) (10 10 10) simpleGrading (1 1 1)
hex (34 35 37 36 42 43 45 44) (10 10 10) simpleGrading (1 1 1)
hex (28 29 31 30 36 37 39 38) (10 10 10) simpleGrading (1 1 1)
hex (36 37 39 38 44 45 47 46) (10 10 10) simpleGrading (1 1 1)

hex (30 31 49 48 38 39 57 56) (10 10 10) simpleGrading (1 1 1)
hex (38 39 57 56 46 47 65 64) (10 10 10) simpleGrading (1 1 1)
hex (48 49 51 50 56 57 59 58) (10 10 10) simpleGrading (1 1 1)
hex (56 57 59 58 64 65 67 66) (10 10 10) simpleGrading (1 1 1)
hex (50 51 53 52 58 59 61 60) (10 10 10) simpleGrading (1 1 1)
hex (58 59 61 60 66 67 69 68) (10 10 10) simpleGrading (1 1 1)
hex (52 53 55 54 60 61 63 62) (10 10 10) simpleGrading (1 1 1)
hex (60 61 63 62 68 69 71 70) (10 10 10) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
inletMain
{
type patch;
faces
(
(24 25 33 32)
(32 33 41 40)
);
}

inletBranch
{
type patch;
faces
(
(0 1 9 8)
(8 9 17 16)
);
}

lowerWall
{
type wall;
faces
(
(0 1 3 2)
(2 3 5 4)
(4 5 7 6)
(24 25 27 26)
(26 27 29 28)
(28 29 31 30)
(30 31 49 48)
(48 49 51 50)
(50 51 53 52)
(52 53 55 54)
);
}

middleLayer
{
type patch;
faces
(
(8 9 11 10)
(10 11 13 12)
(12 13 15 14)
(32 33 35 34)
(34 35 37 36)
(36 37 39 38)
(38 39 57 56)
(56 57 59 58)
(58 59 61 60)
(60 61 63 62)
);
}

atmosphere
{
type patch;
faces
(
(16 17 19 18)
(18 19 21 20)
(20 21 23 22)
(40 41 43 42)
(42 43 45 44)
(44 45 47 46)
(46 47 65 64)
(64 65 67 66)
(66 67 69 68)
(68 69 71 70)
);
}

fixedWallRight
{
type wall;
faces
(
(1 3 11 9)
(9 11 19 17)
(3 5 13 11)
(11 13 21 19)
(5 7 15 13)
(13 15 23 21)
(25 27 35 33)
(33 35 43 41)
(27 29 37 35)
(35 37 45 43)
(29 31 39 37)
(37 39 47 45)
(31 49 57 39)
(39 57 65 47)
(49 51 59 57)
(57 59 67 65)
(51 53 61 59)
(59 61 69 67)
(53 55 63 61)
(61 63 71 69)
);
}

fixedWallLeft
{
type wall;
faces
(
(0 8 10 2)
(8 16 18 10)
(2 10 12 4)
(10 18 20 12)
(4 12 14 6)
(12 20 22 14)
(24 32 34 26)
(32 40 42 34)
(26 34 36 28)
(34 42 44 36)
(28 36 38 30)
(36 44 46 38)
(30 38 56 48)
(38 46 64 56)
(48 56 58 50)
(56 64 66 58)
(50 58 60 52)
(58 66 68 60)
(52 60 62 54)
(60 68 70 62)
);
}

outlet
{
type patch;
faces
(
(55 54 62 63)
(63 62 70 71)
);
}
);
// ************************************************** *********************** //



--> FOAM FATAL ERROR:
Trying to specify a boundary face 4(8 9 11 10) on the face on cell 0 which is either an internal face or already belongs to some other patch. This is face 0 of patch 3 named middleLayer.

From function void Foam:olyMesh::setTopology(const cellShapeList&, const faceListList&, const wordList&, Foam::labelList&, Foam::labelList&, Foam::label&, Foam::label&, Foam::cellList&)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 324.
mkjmalik is offline   Reply With Quote

Old   June 26, 2020, 07:06
Default topoSet::createPatchDict
  #42
Member
 
nikhil108's Avatar
 
Nikhil
Join Date: May 2020
Location: Freiburg
Posts: 43
Rep Power: 5
nikhil108 is on a distinguished road
Hallo foamers,

I know this is a old thread, but i got stuck in a similar problem. I extracted a faceSet (6 faces) using topoSet, and when i try to create patch from it, it throws following error. Please have a look at the picture, and let me know, what's wrong.
https://www.dropbox.com/sh/sxq5vj3lm...B4M8VaK2a?dl=0
Code:
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
Build  : 7
Exec   : topoSet
Date   : Jun 26 2020
Time   : 12:34:41
Host   : "**********"
PID    : 46740
I/O    : uncollated
Case   : /disk/25.06/baffle_trails
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create polyMesh for time = 0.03

createP Reading topoSetDict

Time = 0.03
    mesh not changed.
Created faceSet sourceFace
    Applying source boxToFace
    Adding faces with centre within boxes 1((-0.227865 -0.46875 0.769271) (-0.225 -0.455729 0.780208))
    faceSet sourceFace now size 6
End


user:/disk/25.06/baffle_trails$ createPatch
/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
Build  : 7
Exec   : createPatch
Date   : Jun 26 2020
Time   : 12:34:51
Host   : "**********"
PID    : 46741
I/O    : uncollated
Case   : /disk/25.06/baffle_trails
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create polyMesh for time = 0.03

Reading createPatchDict

Adding new patch sourcePatch as patch 4 from
{
    type            patch;
}


Read 6 faces from faceSet sourceFace


--> FOAM FATAL ERROR:
Face 4164128 specified in set sourceFace is not an external face of the mesh.
This application can only repatch existing boundary faces.

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

FOAM exiting
Attached Images
File Type: jpg extract_surface.jpg (129.1 KB, 4 views)
nikhil108 is offline   Reply With Quote

Reply


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] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 17:22
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 07:30
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 10:51
[Netgen] Import netgen mesh to OpenFOAM hsieh OpenFOAM Meshing & Mesh Conversion 32 September 13, 2011 05:50
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05


All times are GMT -4. The time now is 12:30.