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

[blockMesh] Wedge Geometry causing non-aligned edges

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 29, 2022, 07:31
Exclamation Wedge Geometry causing non-aligned edges
  #1
New Member
 
Craig Thomas
Join Date: Dec 2019
Location: Leeds, UK
Posts: 12
Rep Power: 7
mn14cat is on a distinguished road
Hi All,

I'm trying to create a wedge geometry to model an axis-symetrical problem

I am trying to follow the guidance from the openFoam user guide:

https://www.openfoam.com/documentati...4.2-boundaries

https://www.openfoam.com/documentati...x13-480004.3.3

I have managed to create the geometry with blockMesh; however, when I run checkMesh I receive the following output:

[mn14cat@login2.arc4 nonLinBlock]$ checkMesh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/
Build : 4.0
Exec : checkMesh -allGeometry -allTopology
Date : Jul 29 2022
Time : 11:18:48
Host : login2.arc4.leeds.ac.uk
PID : 241768
CtrlDict : "/home/home01/mn14cat/foam/mn14cat-4.0/run/usr_cases/solidMechanics/nonLinBlock/system/controlDict"
Case : /home/home01/mn14cat/foam/mn14cat-4.0/run/usr_cases/solidMechanics/nonLinBlock
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

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

Create polyMesh for time = 0

Time = 0

Mesh stats
all points: 6
live points: 6
all faces: 5
live faces: 5
internal faces: 0
cells: 1
boundary patches: 6
point zones: 0
face zones: 0
cell zones: 0

Overall number of cells of each type:
hexahedra: 0
prisms: 1
wedges: 0
pyramids: 0
tet wedges: 0
tetrahedra: 0
polyhedra: 0

Checking topology...
Boundary definition OK.
Point usage OK.
Upper triangular ordering OK.
Topological cell zip-up check OK.
Face vertices OK.
Face-face connectivity OK.
<<Writing 1 cells with with single non-boundary face to set oneInternalFaceCells
Number of regions: 1 (OK).

Checking patch topology for multiply connected surfaces ...
Patch Faces Points Area [m^2] Surface topology Bounding box
topLoading 1 3 0.05 ok (non-closed singly connected) (0 1 -0.05) (1 1 0.05)
axis 0 0 0 ok (empty) (0 0 0) (0 0 0)
freeSurface 1 4 0.1 ok (non-closed singly connected) (1 0 -0.05) (1 1 0.05)
fixedBottom 1 3 0.05 ok (non-closed singly connected) (0 0 -0.05) (1 0 0.05)
back 1 4 1.00125 ok (non-closed singly connected) (0 0 -0.05) (1 1 0)
front 1 4 1.00125 ok (non-closed singly connected) (0 0 0) (1 1 0.05)

Checking geometry...
This is a 3-D mesh
Overall domain bounding box (0 0 -0.05) (1 1 0.05)
Mesh (non-empty, non-wedge) directions (1 1 0)
Mesh (non-empty) directions (1 1 1)
Mesh (non-empty, non-wedge) dimensions 2
***Number of edges not aligned with or perpendicular to non-empty directions: 4
Writing 6 points on non-aligned edges to set nonAlignedEdges
Boundary openness (0 0 0) Threshold = 1e-06 OK.
Max cell openness = 0 OK.
Max aspect ratio = 20 OK.
Minumum face area = 0.05. Maximum face area = 1.00125. Face area magnitudes OK.
Min volume = 0.05. Max volume = 0.05. Total volume = 0.05. Cell volumes OK.
Non-orthogonality check OK.
Face pyramids OK.
Max skewness = 0.330008 OK.
Min/max edge length = 0.1 1.00125 OK.
All angles in faces OK.
Face flatness (1 = flat, 0 = butterfly) : average = 1 min = 1
All face flatness OK.
***Cells with small determinant found, number of cells: 1
Writing 1 under-determined cells to set underdeterminedCells

Failed 2 mesh checks.

End

I have tried to read up on the cause of the non-aligned edges on a couple of threads on the forum

https://www.cfd-online.com/Forums/op...ion-print.html

Number of edges not aligned with or perpendicular to non-empty directions

but I still don't understand the cause of the problem.

This is my blockMeshDict file:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant/polyMesh";
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

vertices
(
(0 0 0) //0
(1 0 -0.05) //1
(1 1 -0.05) //2
(0 1 0) //3
(1 0 0.05) //4
(1 1 0.05) //5
// (1 1 0.05) //6
// (0 1 0.05) //7
);

blocks
(
hex ( 0 3 3 0 1 2 5 4 ) (10 10 1) simpleGrading (1 1 1)
);

edges
(
);

patches
(
patch topLoading
(
(2 3 3 5)
)

symmetry axis
(
(3 0 0 3)
)

patch freeSurface
(
(1 2 5 4)
)

patch fixedBottom
(
(0 1 4 0)
)

wedge back
(
(0 1 2 3)
)

wedge front
(
(3 5 4 0)
)
);

mergePatchPairs
(
);


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

I would really appreciate any guidance on the root of this problem.

p.s. I also tried to visualise the problem in paraview but that also didnt help at all.

Many Thanks in advance

Craig
mn14cat is offline   Reply With Quote

Old   July 29, 2022, 08:36
Default
  #2
New Member
 
Craig Thomas
Join Date: Dec 2019
Location: Leeds, UK
Posts: 12
Rep Power: 7
mn14cat is on a distinguished road
Though I had fixed the issue but sadly I'm still struggling
mn14cat is offline   Reply With Quote

Old   August 12, 2022, 00:19
Default
  #3
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
Try running collapseEdges?
__________________
www.damogranlabs.com
kandelabr is offline   Reply With Quote

Reply

Tags
block mesh, non aligned edges, wedge


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
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 10:42
[cfMesh] Number of edges not aligned with or perpendicular to non-empty directions gian93 OpenFOAM Community Contributions 2 December 10, 2017 17:11
[snappyHexMesh] sHM layer process keeps getting killed MBttR OpenFOAM Meshing & Mesh Conversion 4 August 15, 2016 04:21
Importing CAD geometry and Editing edges to match Ahmed CFX 15 March 21, 2016 13:39
vitual _ real deneb FLUENT 3 January 22, 2007 05:31


All times are GMT -4. The time now is 13:37.