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

[snappyHexMesh] autoPatch for SnappyHexMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 27, 2016, 07:03
Default autoPatch for SnappyHexMesh
  #1
Senior Member
 
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13
harsha_kulkarni is on a distinguished road
Hello friends
How do we find autoPatch angle for snappyHexMesh
upto 0-90 angle it produces 319 patches
and above 90 it produces only 1 patches
it's very difficult add layer in further steps
harsha_kulkarni is offline   Reply With Quote

Old   December 27, 2016, 09:09
Default snappyHexMesh for tee-junction
  #2
Senior Member
 
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13
harsha_kulkarni is on a distinguished road
https://sites.google.com/site/snappy.../cylinder-case

Hello ,

I am doing mesh for T-Junction using snappyHexMesh using above tutorial for layer addition.
The autoPatch utility mentioned in this tutorial is not working properly for t-junction and number patches exceeds or lessen than required patches
what should be the problem???
harsha_kulkarni is offline   Reply With Quote

Old   December 27, 2016, 12:04
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick question: Which OpenFOAM version are you using?
__________________
wyldckat is offline   Reply With Quote

Old   December 27, 2016, 12:57
Default
  #4
Senior Member
 
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13
harsha_kulkarni is on a distinguished road
OpenFOAM 2.3.1

even same problem for elbow..

but I can easily add layer for reducer and for annuals geometry
harsha_kulkarni is offline   Reply With Quote

Old   December 27, 2016, 14:23
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: You can use regular expressions in "snappyHexMeshDict" for selecting the patch names. For example, this is shown here: https://github.com/OpenFOAM/OpenFOAM...xMeshDict#L219 - which you also have in your installation, whose path is indicated by the following command:
Code:
echo $FOAM_TUTORIALS/incompressible/simpleFoam/motorBike/system/snappyHexMeshDict
The example in this file is this:
Code:
    layers
    {
        "(lowerWall|motorBike).*"
        {
            nSurfaceLayers 1;
        }
    }
Which equates to:
Code:
    layers
    {
        "lowerWall.*"
        {
            nSurfaceLayers 1;
        }
         "motorBike.*"
        {
            nSurfaceLayers 1;
        }
    }
and the ".*" means that any character after that is also included. For more details about regular expressions, use an online search engine such as Google for the following sentence:
Code:
linux introduction to regular expressions
wyldckat is offline   Reply With Quote

Old   December 28, 2016, 02:55
Default
  #6
Senior Member
 
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13
harsha_kulkarni is on a distinguished road
while using autoPatch utility, when I use angle 0-90 it generate around 319 patches
on the other hand when I use angle >90 it generate only 1 patches so it's becomming complecated for layer additon as well as giving boundary condition.

for T-junction the number of patches should be generate is equal to five

should I submite case and stl

Thanks and Regards

Harshawardhan
harsha_kulkarni is offline   Reply With Quote

Old   December 28, 2016, 19:02
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: At least the STL file would come in handy to test and diagnose. It's possible that the STL file is not properly sorted or something like that... or maybe it's the numerical precision of the vertices...

What does surfaceCheck give you?
Code:
surfaceCheck filename.stl
wyldckat is offline   Reply With Quote

Old   December 29, 2016, 02:09
Default
  #8
Senior Member
 
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13
harsha_kulkarni is on a distinguished road
Reading surface from "wall_1.stl" ...

Statistics:
Triangles : 86
Vertices : 84
Bounding Box : (-127 -12.7 -12.5999) (127 12.7 12.7)

Region Size
------ ----
solid 86


Surface has no illegal triangles.

Triangle quality (equilateral=1, collapsed=0):
0 .. 0.05 : 1
0.05 .. 0.1 : 0
0.1 .. 0.15 : 0
0.15 .. 0.2 : 0
0.2 .. 0.25 : 0
0.25 .. 0.3 : 0
0.3 .. 0.35 : 0
0.35 .. 0.4 : 0
0.4 .. 0.45 : 0
0.45 .. 0.5 : 0
0.5 .. 0.55 : 0
0.55 .. 0.6 : 0
0.6 .. 0.65 : 0
0.65 .. 0.7 : 0
0.7 .. 0.75 : 0
0.75 .. 0.8 : 0
0.8 .. 0.85 : 0
0.85 .. 0.9 : 0
0.9 .. 0.95 : 0
0.95 .. 1 : 0

min 2.05166e-05 for triangle 62
max 0.0428367 for triangle 27

Edges:
min 1.35491 for edge 113 points (-12.7 3.1106e-15 12.7)(-12.6279 1.35107 12.6279)
max 254.02 for edge 5 points (127 -7.46487 -10.2745)(-127 -9.78552 -8.09529)

Checking for points less than 1e-6 of bounding box ((254 25.4 25.2999) metre) apart.
Found 0 nearby points.

Surface is not closed since not all edges connected to two faces:
connected to one face : 84
connected to >2 faces : 0
Conflicting face labels:84
Dumping conflicting face labels to "problemFaces"
Paste this into the input for surfaceSubset

Number of unconnected parts : 1

Number of zones (connected area with consistent normal) : 1


End
harsha_kulkarni 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
autoPatch creates too many patches on O-mesh klausb OpenFOAM Pre-Processing 8 August 20, 2019 04:15
[mesh manipulation] ExtrudeMesh and autoPatch, need help! ic3wall OpenFOAM Meshing & Mesh Conversion 2 July 16, 2019 02:06
[mesh manipulation] is autoPatch usage the right way to solve empty patches issue? Metti OpenFOAM Meshing & Mesh Conversion 2 June 9, 2014 10:12
autoPatch error, mesh quality related...? Alexvader OpenFOAM 0 October 6, 2011 18:57
Mesh to points cells faces and boundaries files billy OpenFOAM Pre-Processing 19 April 18, 2006 16:38


All times are GMT -4. The time now is 22:04.