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

[blockMesh] Inward-facing faces error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 2, 2023, 04:41
Default Inward-facing faces error
  #1
New Member
 
MAK
Join Date: Apr 2022
Posts: 2
Rep Power: 0
COSMICBUDDHA is on a distinguished road
Hello, i am making an axisymmetric sector of pipe . For visualising attaching image.

I have generated the blockMesh file as follows:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  10
     \\/     M anipulation  | 
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 1;
vertices
(
	(0 0 0)
	(0 0.00499524 0.000218097)
	(0 0.00499524 -0.000218097)
	(1.36 0 0)
	(1.36 0.00499524 0.000218097)
	(1.36 0.00499524 -0.000218097)
);
blocks
(
    hex (0 3 4 1 0 3 5 2) (200 50 1) simpleGrading (1 0.2 1)
);
edges
(
   arc 1 2 (0 0.005 0)
   arc 5 4 (1.36 0.005 0)
);
boundary
(
	inlet
	{
		type patch
		faces
		(
			(0 1 2 0)
		);
	}
	oulet
	{
		type patch
		faces
		(
			(3 5 4 3)
		);
	}
	surface
	{
		type wall
		faces
		(
			(2 1 4 5)
		);
	}
	axis
	{
		type symmetry
		faces
		(
			(0 3 3 0)
		);
	}
	front
	{
		type wedge
		faces
		(
			(4 1 0 3)
		);
	}
	back
	{
		type wedge
		faces
		(
			(3 0 5 2)
		);
	}
);
mergePatchPairs
(
);
// ************************************************************************* //
I have tried altering the orders, various combination and even different types of hexahedral blocks but I can't seem to get it right. Can you take a look at it and help me with what's wrong? I have been on this for 3 days now.

Here's the error:
Code:
Create time

Reading "blockMeshDict"

Creating block mesh from
    "system/blockMeshDict"
Creating block edges
No non-planar block faces defined
Creating topology blocks


--> FOAM FATAL IO ERROR: 
Block hex (0 3 4 1 0 3 5 2) (200 50 1) simpleGrading (1(1) 1(0.2) 1(1)) has inward-pointing faces
    4(0 0 2 1) 4(3 4 5 3) 4(1 2 5 4) 4(0 1 4 3) 4(0 3 5 2) 

file: /home/cb/OpenFOAM/cb-10/run/pipeFlow/system/blockMeshDict/blocks at line 28.

    From function void Foam::blockDescriptor::check(const Foam::Istream&)
    in file blockDescriptor/blockDescriptor.C at line 106.

FOAM exiting
Attached Images
File Type: png Untitled Diagram.drawio.png (26.1 KB, 15 views)

Last edited by COSMICBUDDHA; March 2, 2023 at 04:48. Reason: missed error message
COSMICBUDDHA is offline   Reply With Quote

Old   March 6, 2023, 00:02
Default Update: Tried Different BlockMesh
  #2
New Member
 
MAK
Join Date: Apr 2022
Posts: 2
Rep Power: 0
COSMICBUDDHA is on a distinguished road
Code:
/*--------------------------------*- C++ -*----------------------------------* 
  =========                 |
  \      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \    /   O peration     | Website:  https://openfoam.org
    \  /    A nd           | Version:  10
     \/     M anipulation  |
*---------------------------------------------------------------------------*/
FoamFile
{
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

vertices
(
	(0.000000 0.000000 0.000000)
	(0.000131 0.004998 0.000000)
	(-0.000131 0.004998 0.000000)
	(0.000000 0.000000 1.360000)
	(0.000131 0.004998 1.360000)
	(-0.000131 0.004998 1.360000)
);

blocks
(
	hex (0 0 1 2 3 3 4 5) (1 50 200) simpleGrading (1 0.5 1)
);

edges
(
	arc 1 2(0.000000 0.005000 0.000000)
	arc 4 5(1.360000 0.005000 0.000000)
);

boundary
(
	inlet
	{
		type patch;
		faces
		(
			(0 0 2 1)
		);
	}
	outlet
	{
		type patch;
		faces
		(
			(3 4 5 3)
		);
	}
	axis
	{
		type empty;
		faces
		(
			 (0 3 3 0)
		);
	}
	pipewall
	{
		type wall;
		faces
		(
			 (4 1 2 5)
		);
	}
	front
	{
		type wedge;
		faces
		(
			(0 1 4 3)
		);
	}
	back
	{
		type wedge;
		faces
		(
			(3 5 2 0)
		);
	}
);
mergePatchPairs 
( 
); 

// ************************************************************************************************************************************************** //
This one seems to work, but I have no idea why this one does and older one doesn't. Any insight on this would be really helpful.
COSMICBUDDHA is offline   Reply With Quote

Reply

Tags
axisymmetric, pipe flow


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
Decomposing meshes Tobi OpenFOAM Pre-Processing 22 February 24, 2023 09:23
[Other] Mesh Importing Problem cuteapathy ANSYS Meshing & Geometry 2 June 24, 2017 05:29
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 18:44
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 06:25
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


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