CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Meshing in OpenFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 31, 2023, 05:00
Default Meshing in OpenFoam
  #1
New Member
 
Lennart
Join Date: Mar 2023
Posts: 2
Rep Power: 0
lennybu is on a distinguished road
I´m new to OpenFoam and i want to mesh a geometry with 5 blocks. I followed the instructions from the User Guide but i still get following error when i try to blockMesh my Code:

--> FOAM FATAL ERROR:
face 4 in patch 7 does not have neighbour cell face: 4(20 21 13 22)


Here is my BlockMeshDict Code:

convertToMeters 0.001;

vertices
(
( 0.0 0.0 0.0) //0
(60.0 0.0 0.0) //1
( 0.0 0.5 0.0) //2
(60.0 0.5 0.0) //3
( 0.0 5.5 0.0) //4
(60.0 5.5 0.0) //5
( 0.0 54.5 0.0) //6
(60.0 54.5 0.0) //7
( 0.0 59.5 0.0) //8
(60.0 59.5 0.0) //9
( 0.0 60.0 0.0) //10
(60.0 60.0 0.0) //11
( 0.0 0.0 0.1) //12
(60.0 0.0 0.1) //13
( 0.0 0.5 0.1) //14
(60.0 0.5 0.1) //15
( 0.0 5.5 0.1) //16
(60.0 5.5 0.1) //17
( 0.0 54.5 0.1) //18
(60.0 54.5 0.1) //19
( 0.0 59.5 0.1) //20
(60.0 59.5 0.1) //21
( 0.0 60.0 0.1) //22
(60.0 60.0 0.1) //23
);

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

edges
(
);

boundary
(
inlet
{
type patch;
faces
(
(2 14 16 4)
);
}
outlet
{
type patch;
faces
(
(7 9 21 19)
);
}
top
{
type patch;
faces
(
(10 22 23 11)
);
}
left
{
type patch;
faces
(
(0 12 14 2)
(4 16 18 6)
(6 18 20 8)
(8 20 22 10)
);
}
right
{
type patch;
faces
(
(1 3 15 13)
(3 5 17 15)
(5 7 19 17)
(9 11 23 21)
);
}
bottom
{
type patch;
faces
(
(0 1 13 12)
);
}
back
{
type empty;
faces
(
(0 2 3 1)
(2 4 5 3)
(4 6 7 5)
(6 8 9 7)
(8 10 11 9)
);
}
front
{
type empty;
faces
(
(12 13 15 14)
(14 15 17 16)
(16 17 19 18)
(20 21 23 22)
(20 21 13 22)
);
}
);
mergePatchPairs
(
);

Does anyone know what i did wrong?
lennybu is offline   Reply With Quote

Old   March 31, 2023, 05:14
Default
  #2
New Member
 
Lennart
Join Date: Mar 2023
Posts: 2
Rep Power: 0
lennybu is on a distinguished road
Attached is a picture of my numbering of the vertexes and the geometry. Maybe this will help to find my error!
Attached Images
File Type: jpg Mesh_order.jpg (117.0 KB, 10 views)
lennybu 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
[Gmsh] gmshToFoam generates patches with 0 faces and 0 points Simurgh OpenFOAM Meshing & Mesh Conversion 4 August 25, 2023 07:58
[ANSYS Meshing] Fluent Meshing Multi-Region Domain gives interior walls when importing to OpenFOAM twnspl ANSYS Meshing & Geometry 0 October 8, 2021 07:11
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 06:15
[Technical] Openfoam meshing joegi OpenFOAM Meshing & Mesh Conversion 9 July 2, 2008 01:33


All times are GMT -4. The time now is 18:49.