Venky_94 |
August 8, 2021 22:43 |
Need help defining internal face as boundary
1 Attachment(s)
I'm new to OpenFOAM and I'm trying to create a wedge geometry using Block mesh. I'm facing a couple of issues with the mesh creation. I'm sharing an image showing the boundaries I'll be needing for the simulation.
- I'm trying to create a wall at the face marked nozzle wall but I'm getting an error saying "--> FOAM FATAL ERROR: (openfoam-2012)
Trying to specify a boundary face 4(6 7 8 9) on the face on cell 0 which is either an internal face or already belongs to the same patch. This is face 0 of patch 3 named orificewall." I'd like to know how to create an wall at that internal face.
- I tried leaving out the orificewall boundary and creating the geometry to debug the issue and I identified another issue which is that the face marked by an ellipse is being detected as a wall by default and falls under the patch "defaultfaces". I do not require a boundary at that position.
I'd be really grateful if someone could point me in the right direction.
Here's my blockmesh file.
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
scale 1;
vertices
(
(0 0 0)
(0.0105 0 0)
(0.0105 0.0099904822158185784680695107340398 -0.00043619387365336002686244665227377)
(0 0.0099904822158185784680695107340398 -0.00043619387365336002686244665227377)
(0 0.0099904822158185784680695107340398 0.00043619387365336002686244665227377)
(0.0105 0.0099904822158185784680695107340398 0.00043619387365336002686244665227377)
(0 0.00040011881274353401985455214173726 -0.000017469564639817068040427913699908)
(0 0.00040011881274353401985455214173726 0.000017469564639817068040427913699908)
(0.001 0.00040011881274353401985455214173726 0.000017469564639817068040427913699908)
(0.001 0.00040011881274353401985455214173726 -0.000017469564639817068040427913699908)
(0.001 0.0039961928863274315607001518912966 -0.00017447754946134399448194607362694)
(0.001 0.0039961928863274315607001518912966 0.00017447754946134399448194607362694)
(0.0105 0.0039961928863274315607001518912966 0.00017447754946134399448194607362694)
(0.0105 0.0039961928863274315607001518912966 -0.00017447754946134399448194607362694)
(0.001 0.0099904822158185784680695107340398 -0.00043619387365336002686244665227377)
(0.001 0.0099904822158185784680695107340398 0.00043619387365336002686244665227377)
(0.001 0 0)
(0 0.0039961928863274315607001518912966 -0.00017447754946134399448194607362694)
(0 0.0039961928863274315607001518912966 0.00017447754946134399448194607362694)
);
blocks
(
//Orifice Block//
hex (0 16 9 6 0 16 8 7) (25 10 1) simpleGrading (1 1 1)
//Block to the left of orifice (Pair 1)//
hex (6 9 10 17 7 8 11 18) (25 90 1) simpleGrading (1 1 1)
//Block to the far left of orifice (Pair 2)//
hex (17 10 14 3 18 11 15 4) (25 100 1) simpleGrading (1 1.5 1)
//Block above orifice (Pair 1)//
hex (16 1 13 10 16 1 12 11) (300 100 1) simpleGrading (1.5 1.5 1)
//Block above orifice and to the left (Pair 2)//
hex (10 13 2 14 11 12 5 15) (300 100 1) simpleGrading (1.5 1.5 1)
);
edges
(
);
boundary
(
upperwall
{
type wall;
faces
(
(3 4 15 14)
(14 15 5 2)
);
}
lowerwall
{
type wall;
faces
(
(6 7 18 17)
(17 18 4 3)
);
}
pressure_outlet
{
type patch;
faces
(
(1 12 13 1)
(13 12 5 2)
);
}
orificewall
{
type wall;
faces
(
(6 7 8 9)
);
}
airinlet
{
type patch;
faces
(
(0 7 6 0)
);
}
axis
{
type empty;
faces
(
(0 16 16 0)
(16 1 1 16)
);
}
frontPlane
{
type wedge;
faces
(
(0 16 8 7)
(16 1 12 11)
(11 12 5 15)
(7 8 11 18)
(18 11 15 4)
);
}
backPlane
{
type wedge;
faces
(
(0 16 9 6)
(16 1 13 10)
(10 13 2 14)
(6 9 10 17)
(17 10 14 3)
);
}
);
mergePatchPairs
(
);
// ************************************************************************* //
|