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

[surface handling] surfaceFeatureExtract many many stl files

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 10, 2017, 16:39
Default surfaceFeatureExtract many many stl files
  #1
New Member
 
Blue8655's Avatar
 
Join Date: Jun 2015
Location: Montreal
Posts: 11
Rep Power: 11
Blue8655 is on a distinguished road
Hi,

is there a way to regroup filenames when writing surfaceFeatureExtractDict ?

I usually write something like this:
---------------------------------------------------------------------------------------------------------------
Nielsen1979All.stl
{
#include "surfaceFeatureExtractDictDefaults"
}
---------------------------------------------------------------------------------------------------------------
but I now have 20 surfaces. I could take the time to write 20 times the same lines but I wondered whether there was a more efficient way. With sHMDict I usually write something like:
---------------------------------------------------------------------------------------------------------------
"(walls|hotSurface)"
---------------------------------------------------------------------------------------------------------------
However this does not work in surfaceFeatureExtractDict:
---------------------------------------------------------------------------------------------------------------
"(walls.stl|hotSurface.stl)"
{
#include "surfaceFeatureExtractDictDefaults"
}
---------------------------------------------------------------------------------------------------------------
I hope my question is sufficiently clear. Thank you in advance,
Fred
Blue8655 is offline   Reply With Quote

Old   December 29, 2017, 15:17
Default
  #2
Senior Member
 
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 250
Rep Power: 17
peterhess is on a distinguished road
https://www.youtube.com/watch?v=ObsFQUiVi1U&t=482s
peterhess is offline   Reply With Quote

Old   January 5, 2018, 23:32
Default
  #3
New Member
 
Blue8655's Avatar
 
Join Date: Jun 2015
Location: Montreal
Posts: 11
Rep Power: 11
Blue8655 is on a distinguished road
Thank you for your reply Peterhess. I did watch this tutorial, however Calum Douglas does not regroup names. He uses the same method I use (see time 22:35 of the video).

When I think about it, it's not the end of the world. It only takes a few minutes to copy/paste for each stl file.

Fred
Blue8655 is offline   Reply With Quote

Old   January 9, 2018, 12:55
Default
  #4
Senior Member
 
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 250
Rep Power: 17
peterhess is on a distinguished road
I am not sure, if I understand the problem right...

you need to use:

splitMeshRegions -cellZones -overwrite

after

snappyHexMesh


if I understood you right!


Share your case please!

Regards

Peter
peterhess is offline   Reply With Quote

Old   January 9, 2018, 21:40
Default
  #5
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 16
Antimony is on a distinguished road
Hi,

Maybe I am missing something, but wouldn't the number of files essentially be controlled by the includedAngle that you specify?

In my view, the reason one uses surfaceFeatureExtract is because one wants to get separate files. Hence an option in sFE to combine files would seem redundant. Especially since you can reduce the number of features extracted (and hence the number of files) by reducing the feature angle.

Just my two cents worth.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   December 20, 2022, 09:42
Default
  #6
New Member
 
Liangyuan Wei
Join Date: Jun 2022
Location: Netherlands
Posts: 2
Rep Power: 0
Liangyuan is on a distinguished road
Hope the solution is useful for new foamers:
this works in surfaceFeatureExtractDict:
"walls.stl|walls02.stl|walls03.stl|hotSurface.stl" , just without the brackets for many stl files.
Liangyuan is offline   Reply With Quote

Reply

Tags
surfacefeatureextract


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] With FreeCAD: creating waterproof STL files? robob OpenFOAM Meshing & Mesh Conversion 11 April 29, 2018 12:33
[snappyHexMesh] cellzone defined by two stl files cbarmpar OpenFOAM Meshing & Mesh Conversion 0 March 15, 2015 11:55
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
[OpenFOAM] ParaView 3.6.1 & 3.7.0: Can't view STL files johannes ParaView 2 December 3, 2009 15:07
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21


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