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

[snappyHexMesh] snappyHexMesh does not snap to corner

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By SirWombat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 29, 2012, 11:58
Default snappyHexMesh does not snap to corner
  #1
New Member
 
Matthias
Join Date: Jun 2011
Posts: 8
Rep Power: 14
aeroMatze is on a distinguished road
Dear all,

apologies for this noob question right away, but I've been working on solving this problems for some days now and I can't come to a solution.
I try to mesh a simple rectangular nozzle and I run into problems on the intersection of the outer shape and the outlet. (--> see attached images)
Strangely enough the intersection of Inlet and outer shape is meshed just fine.

snappyHexMeshDict and blockMeshDict:

snappyHexMeshDict.txt

blockMeshDict.txt


nozzle.jpg

front_view.jpg

rear_view.jpg



I wonder if anyone can come up with some ideas where my mistake might be.

Thanks in advance for any input.

Matze
aeroMatze is offline   Reply With Quote

Old   August 30, 2012, 07:08
Default
  #2
Member
 
Jan
Join Date: Dec 2009
Location: Berlin
Posts: 50
Rep Power: 19
SirWombat is on a distinguished road
Send a message via Skype™ to SirWombat
Try to use featureEdges. In case you did you may want to ease/alter your quality settings.

Compared to the rest of the domain your edges seem to have a very high cell resolution. If you use featureEdges you won't need to refine those as much.
__________________
~~~_/)~~~
SirWombat is offline   Reply With Quote

Old   August 30, 2012, 08:50
Default
  #3
New Member
 
Matthias
Join Date: Jun 2011
Posts: 8
Rep Power: 14
aeroMatze is on a distinguished road
Hi, thanks for the answer.
I'm using surfaceFeatureExtract, but the problem is that not all detected edges are also refined.
For illustration I have added a very simple geometry.

screen.jpg

When I run featureExtract it finds 8 points and 12 edges. 8 edges are marked 'region', one is marked 'external', three are marked 'internal'. Maybe that's a symptom of the problem, but neither know what that implies nor how to change it...

Any more ideas? Please ignore the high resolution along the edges. I'm aware of the fact that that's not necessary, but I don't believe it is the root of my problem.

Best regards,
Matze
aeroMatze is offline   Reply With Quote

Old   August 30, 2012, 09:51
Default
  #4
Member
 
Jan
Join Date: Dec 2009
Location: Berlin
Posts: 50
Rep Power: 19
SirWombat is on a distinguished road
Send a message via Skype™ to SirWombat
i see ... have you checked that all your feature edges are there?

to check using paraFoam you will have to convert the eMesh-File to an obj-File like this
Code:
  surfaceFeatureConvert /constant/triSurface/YOURFILE.eMesh  featurelines.obj
Then load the " featurelines.obj" in paraFOam and check whether the lines correspond to your edges.

Oh and by the way what version are you using? ... there were problems in 2.0.x so better head for 2.1.x ... i just saw that your files say 2.1.1. so that should be OK.
__________________
~~~_/)~~~
SirWombat is offline   Reply With Quote

Old   August 30, 2012, 10:03
Default
  #5
New Member
 
Matthias
Join Date: Jun 2011
Posts: 8
Rep Power: 14
aeroMatze is on a distinguished road
I'm using OF 2.1.1 ... and yep, all 8 feature lines are visible when importing them in paraview. The eMesh file for this case is very short, so I also checked it in an editors and again: all 12 edges are there...
aeroMatze is offline   Reply With Quote

Old   August 30, 2012, 10:23
Default
  #6
Member
 
Jan
Join Date: Dec 2009
Location: Berlin
Posts: 50
Rep Power: 19
SirWombat is on a distinguished road
Send a message via Skype™ to SirWombat
hmm ... too bad ...

There is this thread here, but the issue should have been resolved: http://www.cfd-online.com/Forums/ope...ain-edges.html

If those feature-edges dont work you can edit them in Blender (www.blender.org). Try to make them longer/shorter. You can even create other feature edges in blender an export them as "obj".

when ready exporting from blender you will have to change the character "f" to an "l" for all eges in the obj-file. (migh be a german issue).

Code:
sed -i 's/f /l /' features_from_blender.obj
then convert the obj to an eMesh

Code:
surfaceFeatureConvert features_from_blender.obj constant/triSurface/features_from_blender.eMesh

I am using that method quite frequently as for a lot of geometries that i use (mainly ship hulls) i get a lot of feature lines that I don't want. So I delete those unwanted lines using blender. Works quite nicely

G Jan
Thom likes this.
__________________
~~~_/)~~~
SirWombat is offline   Reply With Quote

Old   January 26, 2013, 12:37
Default
  #7
sda
New Member
 
Join Date: Apr 2010
Posts: 16
Rep Power: 15
sda is on a distinguished road
Mattias,

Did you ever solve your edge resolution problem?

Saif
sda is offline   Reply With Quote

Old   June 24, 2013, 05:44
Default
  #8
New Member
 
Thomas Smyth
Join Date: Apr 2010
Posts: 14
Rep Power: 15
Thom is on a distinguished road
Quote:

when ready exporting from blender you will have to change the character "f" to an "l" for all eges in the obj-file. (migh be a german issue).

Thank you very much for that advice. Been banging my head (literally at times) against a wall all day trying find what the problem was!
Thom is offline   Reply With Quote

Reply

Tags
corners, edges, snappyhexmesh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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] Run snappyHexMesh steps (castellated, snap, addlayer) separately Glc OpenFOAM Meshing & Mesh Conversion 6 October 8, 2021 03:50
[snappyHexMesh] snappyHexMesh Boundary Layer at Corner panpanzhong OpenFOAM Meshing & Mesh Conversion 5 July 3, 2018 06:53
[snappyHexMesh] SnappyHexMesh refine but does not snap malaboss OpenFOAM Meshing & Mesh Conversion 6 December 10, 2014 06:31
[snappyHexMesh] snappyHexMesh failure to snap to geometry Yadasol OpenFOAM Meshing & Mesh Conversion 1 November 17, 2014 06:00
snappyHexMesh: cell lower corner instead of cell centre andrea.pasquali OpenFOAM Programming & Development 4 February 11, 2013 07:22


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