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

[snappyHexMesh] jagged, ragged edges...

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 8, 2010, 09:45
Default
  #121
Member
 
Robert Ong
Join Date: Aug 2010
Posts: 86
Rep Power: 16
rob3rt 0ng is on a distinguished road
Hi,

I have a rather stupid question. When I type in snapEdge, it gives me an error message saying it can't read the designated stl file name. I'm sure the name of both the one in the snapEdgeDict and triSurface is the same. Sorry for posting up this question in this forum, as there is no other where else in the forum disccusing this matter.

Kind Regards,
Robert
rob3rt 0ng is offline   Reply With Quote

Old   December 8, 2010, 09:56
Default
  #122
Senior Member
 
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 18
Arnoldinho is on a distinguished road
For snapEdge, the stl files must be in the main case directory (together with 0, system, constant etc.). So just create a link to the triSurface folder, or simply copy the stl files.
Arnoldinho is offline   Reply With Quote

Old   December 20, 2010, 18:51
Default
  #123
New Member
 
Gonzalo Tampier
Join Date: Apr 2009
Location: Berlin, Germany
Posts: 9
Rep Power: 17
gtampier is on a distinguished road
Hi,

amazing tool. I've been working with several "tricks" trying to solve the snappy problem with sharp edges... but only very specific and time consuming solutions!
I've been trying to download snapEdge.tgz for many hours w/o success from the openfoamwiki.net link (http://openfoam.nequam.se/cases/snapEdge.tgz). Is it a temporary problem or is there a new link or mirror somewhere?
Thanks in advance,
Gonzalo Tampier
gtampier is offline   Reply With Quote

Old   December 21, 2010, 03:10
Default
  #124
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
The link is permanent.
Works fine for me.
niklas is offline   Reply With Quote

Old   December 30, 2010, 14:58
Default small orifice in a very large room
  #125
New Member
 
Join Date: Apr 2010
Posts: 18
Rep Power: 16
namCFD is on a distinguished road
Hello Niklas,

I am trying to use snappyHexMesh and snapEdge to insert a very small orifice (9mm diameter & 10 cm long) inside a very big room (20m L x 8 m H x 10 m W). My goal is to use dieselFoam to simulate water droplet distribution with incoming gas from the orifice (inlet) to increase the initial momentum of the droplets. Without the incoming gas, the initial/injection droplet velocity is about 6 m/sec. The incoming gas is about 340 m/sec. With the gas, the initial droplet velocity increases to about 160 m/sec. Improved momentum increases the distribution distance and area. I get this by placing the injector in front of the orifice/inlet. Basically, I combine your ammonium problem with aachenbomb.

I am new to all this snappyHexMesh and snapEdge, in particular, and OpenFOAM/dieselFoam in general. I have a few questions:

1) Is this a hopeless case since the orifice/inlet is sooo small as compared to the room dimensions that the mesh will never work out? Using checkMesh fails all the time.

2) What files after snappyHexMesh and snapEdge must I use to run the case?

3) Is there away to use dieselFoam solver and the injector to inject both gas and liquid at the same time? What must I modify if injecting both gas and liquid is possible?

Thank you for your help.

Nam
Attached Files
File Type: gz blockMeshDict.tar.gz (1.5 KB, 5 views)
File Type: gz cylinder.stl.tar.gz (32.7 KB, 6 views)
File Type: gz snapEdgeDict.tar.gz (1.2 KB, 19 views)
__________________
Nam

Last edited by namCFD; December 30, 2010 at 17:03.
namCFD is offline   Reply With Quote

Old   December 30, 2010, 15:04
Default Forget a file
  #126
New Member
 
Join Date: Apr 2010
Posts: 18
Rep Power: 16
namCFD is on a distinguished road
Oops, I forget to include the snappyHexMeshDict.
Attached Files
File Type: gz snappyHexMeshDict.tar.gz (3.5 KB, 8 views)
__________________
Nam
namCFD is offline   Reply With Quote

Old   March 10, 2011, 16:40
Default
  #127
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Great job! Thanks, Niklas.

Well, will snappyHexMesh next release includes your snapEdge feature?

I am meshing a building case, that is flow around building, and snapEdge works very good, though I still need help to improve the mesh quality.
mesh1.jpg
mesh2.jpg
mesh3.jpg
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   March 11, 2011, 02:39
Default
  #128
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
Quote:
Originally Posted by lakeat View Post
Well, will snappyHexMesh next release includes your snapEdge feature?
Nope, I would not recommend it either. Its by no means a finished product and it works
quite slow and only on 1 processor.
I am using it on a daily basis though for which it does exactly what I want and that is
to get a correct inflow/outflow area on pipe-flow simulations.
niklas is offline   Reply With Quote

Old   March 18, 2011, 12:21
Default snapEdge
  #129
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
Hi Nikalas,
Have you ever tried to addlayers after using snapEdge. I feel like I have a problem adding layers after snapEdge. I don't have much experience with sHM but my aim is to create a mesh that captures the edge features well.
Problem
: After using snapEdge when I try adding layers, I see a very strange kind of behavior. Like some kind of baffles being created on surfaces and some sort of hanging cells. I was curious if anyone has seen you have ever seen this kind of behavior before and found any solution.
Regards,
Awais
owayz is offline   Reply With Quote

Old   March 18, 2011, 12:38
Default
  #130
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Hmm, I forgot to report, that last time, a week ago, when I used snapEdge, and then, the simulation went wrong, floating points exaception, I think it is something related with snapEdge. But Im not sure
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   March 25, 2011, 13:40
Default SnapEdge and snappyHexMesh
  #131
Member
 
Join Date: Nov 2010
Posts: 54
Rep Power: 16
usergk is on a distinguished road
Hi

I am a new user of OpenFoam and am trying to generate a mesh for a slightly complicated geometry involving swirler blades.
I tried snappyHexMesh on the stl file, and it seemed to work fine; however, I am getting a floating point error with snapEdge.
The files are attached. Could someone more experienced look at it and suggest how I may improve the mesh (using both snappyHexMesh and snapEdge)?
I would like a coarser mesh (to reduce computation time), so perhaps snapEdge could be a useful tool.

Many thanks,
GK

[Edit: zip file modified]
Attached Files
File Type: zip OF_Trial.zip (51.7 KB, 9 views)

Last edited by usergk; March 25, 2011 at 18:51.
usergk is offline   Reply With Quote

Old   October 6, 2011, 17:45
Default snapEdge tested on OF 2.0.1?
  #132
New Member
 
Johannes N Theron
Join Date: Feb 2010
Location: Hamburg
Posts: 25
Rep Power: 16
jantheron is on a distinguished road
Has anybody tested snapEdge on OpenFOAM 2.0.1? I have a sparseimage distro on my Mac and have been happy with all functionality working. I'd like to check that snapEdge has been tested before risking mucking up my precompiled OF with a recompile...

Jan
www.kanoefabrik.com
jantheron is offline   Reply With Quote

Old   October 6, 2011, 18:06
Default
  #133
Senior Member
 
Join Date: Mar 2009
Location: My oyster
Posts: 124
Rep Power: 17
ziad is on a distinguished road
Quote:
Originally Posted by jantheron View Post
Has anybody tested snapEdge on OpenFOAM 2.0.1? I have a sparseimage distro on my Mac and have been happy with all functionality working. I'd like to check that snapEdge has been tested before risking mucking up my precompiled OF with a recompile...

Jan
www.kanoefabrik.com
You should not need to use snapEdge on OpenFOAM 2.x. The ragged edges bug is apparently fixed in snappyHexMesh now.

http://www.openfoam.com/news/snappyH...ature-edge.php
ziad is offline   Reply With Quote

Old   October 6, 2011, 18:52
Default
  #134
New Member
 
Johannes N Theron
Join Date: Feb 2010
Location: Hamburg
Posts: 25
Rep Power: 16
jantheron is on a distinguished road
Quote:
Originally Posted by ziad View Post
You should not need to use snapEdge on OpenFOAM 2.x. The ragged edges bug is apparently fixed in snappyHexMesh now.

http://www.openfoam.com/news/snappyH...ature-edge.php
Hmmm.. I must be doing something wrong, for my stl file and the resulting openfoam grid after snappyHexMesh are quite different. I attached pics of both as well as my snappyHexMeshDict. Is there something obvious you can pick up?
Attached Images
File Type: jpg canoe_bow.jpg (75.6 KB, 85 views)
File Type: jpg canoe_stl.jpg (61.3 KB, 91 views)
Attached Files
File Type: txt snappyHexMeshDict.txt (10.8 KB, 9 views)
jantheron is offline   Reply With Quote

Old   October 7, 2011, 04:42
Default
  #135
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18
openfoam_user is on a distinguished road
Hi Jan,

you can try the flange tutorial:

OpenFOAM-2.0.x/tutorials/mesh/snappyHexMesh/flange

Following lines are needed to capture sharp edges:


// Explicit feature edge refinement
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

// Specifies a level for any cell intersected by its edges.
// This is a featureEdgeMesh, read from constant/triSurface for now.
features
(
{
file "flange.eMesh";
level 0;
}
);

Then you have to run surfaceFeatureExtract before snappyHexMesh.

runApplication surfaceFeatureExtract -includedAngle 150 -writeObj constant/triSurface/flange.stl flange
runApplication snappyHexMesh -overwrite

Regards,
Stephane.
openfoam_user is offline   Reply With Quote

Old   October 9, 2011, 04:20
Default
  #136
New Member
 
Johannes N Theron
Join Date: Feb 2010
Location: Hamburg
Posts: 25
Rep Power: 16
jantheron is on a distinguished road
Stephane

Thank you! Lovely tip. Just one question: How would one visualize these edges that are produced?

Jan
jantheron is offline   Reply With Quote

Old   October 9, 2011, 07:59
Default
  #137
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Greetings to all!

@Jan: You can open the ".obj" files generated by surfaceFeatureExtract directly in ParaView, without any need for additional file conversion!

By the way, a thread where are already a few discussions about this new feature in OF 2.0 is this: http://www.cfd-online.com/Forums/ope...ture-edge.html

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   October 9, 2011, 19:50
Default
  #138
New Member
 
Johannes N Theron
Join Date: Feb 2010
Location: Hamburg
Posts: 25
Rep Power: 16
jantheron is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings to all!

@Jan: You can open the ".obj" files generated by surfaceFeatureExtract directly in ParaView, without any need for additional file conversion!

By the way, a thread where are already a few discussions about this new feature in OF 2.0 is this: http://www.cfd-online.com/Forums/ope...ture-edge.html

Best regards,
Bruno
Thanks, Bruno

Worked like a charm!

Jan
www.kanoefabrik.com
jantheron is offline   Reply With Quote

Old   July 24, 2012, 00:41
Default
  #139
New Member
 
Jongtae Kim
Join Date: Mar 2009
Location: Daejeon, Republic of Korea (South)
Posts: 8
Rep Power: 17
jkim is on a distinguished road
Hello Niklas,

SnapEdge works for obj file.
It is interesting.

///////////////////////////////////////////
Hello Niklas,

Do you have any idea to use obj files instead of stl files?
Currently I have obj files only.
If you help me to modify the code, I would like to use it.

Many thanks.
Tj

Last edited by jkim; July 24, 2012 at 00:58.
jkim is offline   Reply With Quote

Reply

Tags
edges, jagged edges, snappyhexmesh


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] snappyHexMesh sticking point natty_king OpenFOAM Meshing & Mesh Conversion 11 February 20, 2024 10:12
[snappyHexMesh] snappyHexMesh does not create any mesh except one for the reference cell Arman_N OpenFOAM Meshing & Mesh Conversion 1 May 20, 2019 18:16
[snappyHexMesh] sHM layer process keeps getting killed MBttR OpenFOAM Meshing & Mesh Conversion 4 August 15, 2016 04:21
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 22:11


All times are GMT -4. The time now is 15:06.