CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

features' edges with surfaceFeatureExtract

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

Like Tree1Likes
  • 1 Post By Pj.

Reply
 
LinkBack Thread Tools Display Modes
Old   May 13, 2013, 02:25
Default features' edges with surfaceFeatureExtract
  #1
Pj.
Member
 
Luca
Join Date: Mar 2013
Posts: 45
Rep Power: 3
Pj. is on a distinguished road
Hi everybody,

I'm trying to enhance my mesh using the surfaceFeatureExtract tool, but I can't find a proper guide/tutorial.
I tried to use $FOAM_TUTORIALS/incompressible/pimpleDyMFoam/propeller/Allrun.pre as a guide, but I'm still having some troubles.


I managed to run surfaceFeatureExtract correctly with this command:
Code:
#!/bin/sh

surfaces="
    B0
    spiresFilippo
    block_roughness
"

for s in $surfaces; do
    surfaceFeatureExtract -includedAngle 100 constant/triSurface/$s.stl $s
done
and it generates the .extendedFeatureEdgeMesh and the .eMesh for each surface.

But then what should i do with these files?

I tried to use the .eMesh files as input for snappyHexMesh in place of the .stl, but i receive the error
Code:
unknown file extension eMesh. Supported extensions are '.ftr', '.stl', '.stlb', '.gts', '.obj', '.ac', '.off', '.nas' and '.tri'
So actually I don't know how to proceed.


Moreover in my simulation i need to have different patches for the faces of the B0 volume (it's a box-shape volume). Before using surfaceFeatureExtract I had 5 different .stl for each face that were given to snappyHex as different surfaces. This way i had five different patches.

Now, if i try to use the same five files with surfaceFeatureExtract I receive the error
Code:
Feature line extraction is only valid on closed manifold surfaces.
So how can i keep separated surfaces while using the surfaceFeatureExtract? Can i use the file with the closed volume as input for surfaceFeatureExtract and the five separate surfaces as input for snappyHexMesh?

Thank you very much for the help.


PS: I use OF v2.1, since i saw that the surfaceFeatureExtract has slightly changed from 2.1 to 2.2
Pj. is offline   Reply With Quote

Old   May 13, 2013, 03:00
Default
  #2
Pj.
Member
 
Luca
Join Date: Mar 2013
Posts: 45
Rep Power: 3
Pj. is on a distinguished road
Ok, I looked for a solution for hours and then i found it few minutes after i decided to post here.

Anyway, i write the solution just for a future reference.

A) You can find a quite detailed description of how to use the .eMesh file here https://www.hpc.ntnu.no/display/hpc/...eometryandmesh

B) Yes, just use the joined geometry as input for surfaceFeatureExtract and then use the separated faces for snappyHexMesh. The .eMesh files don't have to be generated using exactly the same .stl files you will give to snappyHex


Sorry for the post. Bye!
atg likes this.
Pj. is offline   Reply With Quote

Reply

Tags
surfacefeatureextract, surfacefeatureextraction

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
No layers in a small gap bobburnquist OpenFOAM Native Meshers: snappyHexMesh and Others 2 November 25, 2012 08:54
snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Native Meshers: snappyHexMesh and Others 2 March 27, 2011 21:11
snappyHexMesh aborting Tobi OpenFOAM Native Meshers: snappyHexMesh and Others 0 November 10, 2010 03:23
SnappyHexMesh for internal Flow vishwa OpenFOAM 21 February 27, 2010 03:47
external flow with snappyHexMesh chelvistero OpenFOAM 11 January 15, 2010 19:43


All times are GMT -4. The time now is 05:08.