CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [snappyHexMesh] Free edges - extraction (https://www.cfd-online.com/Forums/openfoam-meshing/128550-free-edges-extraction.html)

Aurelien Thinat January 15, 2014 09:12

Free edges - extraction
 
Hello everyone,

I have a cylinder, a baffle surface, which I import in snappyHexMesh as a .stl file. This cylinder is immerged in a box (stl file too).

Everything is going well with snappy except one thing : the cylinder presents few holes, each hole delimited by a "free edge". When I'm using the surfaceFeatureExtract tool, I'm not able to extract only these free edges in the eMesh file.
But when I activate the option "export obj files", there is one file with these edges only.

So my question is : is there any way to extract only the free edges ? By converting the obj file into eMesh maybe ?

Thank you.

NB : I'm using OpenFOAM-2.2.2.

Aurelien Thinat January 15, 2014 11:35

Well, if anyone is wondering the same thing, one can follow this :

1) enable the writing of obj files

2) call the surfaceFeatureExtractDict

3) launch this command :
Code:

surfaceFeatureConvert ./extendedFeatureEdgeMesh/mySTL_externalEdges.obj ./triSurface/myFile.eMesh
It will replace the "all-edges.eMesh" file by a "external-only-edges.eMesh" file. It does the job perfectly.


All times are GMT -4. The time now is 01:09.