CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[cfMesh] edge detection (solved!)

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 2 Post By zordiack
  • 3 Post By franjo_j

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 1, 2015, 09:15
Default edge detection (solved!)
  #1
Member
 
Pekka Pasanen
Join Date: Feb 2012
Location: Finland
Posts: 87
Rep Power: 14
zordiack is on a distinguished road
Hi, lately I've been having a lot of trouble with cfMesh edge detection. The mesh is fine otherwise, but sharp edges are not conformed or "snapped". I have the original geometry in a file whole.stl, and I'm using the following command to detect edges:

Code:
surfaceFeatureEdges -angle 120 whole.stl whole.fms
The file whole.fms is then used as an input for cfMesh meshDict. I've attached a picture to show the problem, where the surface file whole.stl and generated mesh are shown in paraview.



Any help? Is this the correct way to use edge detection with cfMesh or is there a better way? I don't recall having this problem before, but I might just have been lucky. I'm using OpenFOAM-dev with cfMesh 1.1.1.

Last edited by zordiack; December 1, 2015 at 09:55. Reason: corrected title
zordiack is offline   Reply With Quote

Old   December 1, 2015, 09:51
Default
  #2
Member
 
Pekka Pasanen
Join Date: Feb 2012
Location: Finland
Posts: 87
Rep Power: 14
zordiack is on a distinguished road
Okay this is (again) going to be one those post where I correct myself. It turns out I've been using the included angle option the wrong way around. It doesn't work the same way as in snappyHexMesh. So if you want to include i.e. all edges with at least 90 degree angle, you should use a SMALLER than 90 degrees angle specification with surfaceFeatureEdges, or just use the default (which is 45 degrees):

Code:
surfaceFeatureEdges whole.stl whole.fms
I'm happy to report that the edge detection is working again, when I use it correctly Here is the same mesh with correct edge detection:

Krapf and lukasf like this.
zordiack is offline   Reply With Quote

Old   December 5, 2015, 16:12
Default
  #3
Senior Member
 
Franjo Juretic
Join Date: Aug 2011
Location: Velika Gorica, Croatia
Posts: 124
Rep Power: 16
franjo_j is on a distinguished road
Send a message via Skype™ to franjo_j
You can inspect the feature edges by using:

FMSToSurface <inputSurfaceMesh>.fms <outputSurface> -exportFeatureEdges

-exportFeatureEdges writes feature edges in a vtk file, which you can visualize in ParaView.
zordiack, Krapf and lukasf like this.
__________________
Principal Developer of cfMesh and CF-MESH+
www.cfmesh.com
Social media: LinkedIn, Twitter, YouTube, Facebook, Pinterest, Instagram
franjo_j is offline   Reply With Quote

Old   February 4, 2016, 14:43
Default
  #4
New Member
 
Nila
Join Date: Oct 2014
Posts: 24
Rep Power: 11
zannatul is on a distinguished road
Can you please tell me why it is saying to me that surfaceFeatureEdges command not found?
zannatul is offline   Reply With Quote

Old   February 5, 2016, 06:31
Default
  #5
Senior Member
 
Franjo Juretic
Join Date: Aug 2011
Location: Velika Gorica, Croatia
Posts: 124
Rep Power: 16
franjo_j is on a distinguished road
Send a message via Skype™ to franjo_j
Hi,

Quote:
Originally Posted by zannatul View Post
Can you please tell me why it is saying to me that surfaceFeatureEdges command not found?
surfaceFeatureEdges is part of cfMesh. It seems to me that you do not have cfMesh available in your environment or your OF environment is not set up correctly.
__________________
Principal Developer of cfMesh and CF-MESH+
www.cfmesh.com
Social media: LinkedIn, Twitter, YouTube, Facebook, Pinterest, Instagram
franjo_j is offline   Reply With Quote

Old   February 5, 2016, 13:08
Smile
  #6
New Member
 
Nila
Join Date: Oct 2014
Posts: 24
Rep Power: 11
zannatul is on a distinguished road
Quote:
Originally Posted by franjo_j View Post
Hi,



surfaceFeatureEdges is part of cfMesh. It seems to me that you do not have cfMesh available in your environment or your OF environment is not set up correctly.
Yes may be that is the thing. Thank you for your response
zannatul 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
Meshing a Sphere Ajay FLUENT 10 September 3, 2016 14:18
Where's the singularity/mesh flaw? audrich FLUENT 3 August 4, 2009 01:07
Which trailing edge is correct for meshing of aerofoils for CFX LSC CFX 0 May 10, 2009 12:45
[Commercial meshers] Star mesh import problem chris1980 OpenFOAM Meshing & Mesh Conversion 20 May 8, 2006 01:07
trailing edge problem Kuo Wei-Jen Main CFD Forum 2 April 14, 1999 10:09


All times are GMT -4. The time now is 07:26.