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

[surface handling] Separate feature file per STL from surfaceFeatureExtract

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2023, 12:30
Default Separate feature file per STL from surfaceFeatureExtract
  #1
Senior Member
 
Join Date: Sep 2017
Posts: 246
Rep Power: 12
obscureed is on a distinguished road
I'm using surfaceFeatureExtract to extract feature edges from a collection of different STL files. Is there a slick way to specify multiple .stl file names, and get a separate .eMesh.gz file for each? The motivation is that different levels of refinement are used at different edges, so the STL names are a good way to keep track of them.

It is possible that I am abusing surfaceFeatureExtract, which gives a message about "only valid on closed manifold surfaces". I'm presuming it's OK to ignore that message? -- the workflow has been fine in Foundation-style OpenFOAM 10 (using surfaceFeatures).

In OF10, I can specify a list of surfaces. The controls seem to be just lying around in the file -- I presume they take effect (or maybe I have been using the defaults all these years).
Code:
FoamFile { version 8.0; format ascii; class dictionary; object surfaceFeaturesDict; }

surfaces (
  "w-floor.stl"
  "w-outside.stl"
  "w-sides.stl"
  );

includedAngle 150;
trimFeatures { minElem 1; }
writeObj yes;
In ESI-style OpenFOAM 2306, I can specify many files -- I can even match all the files with a wordRe, as below. Unlike in OF10, though, this generates only a single file, multiple123.eMesh.gz file. Is there a way to get a separate output file for each matching STL?

Code:
FoamFile { version 8.0; format ascii; class dictionary; object surfaceFeatureExtractDict; }

multiple123
{
  surfaces (".*stl");
  extractionMethod extractFromSurface;
  includedAngle 150;
  writeObj yes;
  trimFeatures{ minElem 1; minLen 0.01; }
  subsetFeatures{ openEdges yes; }
  loadingOption file;
}
While I'm here, can I also ask: what are the meanings of "offsetting" and "subsetting" in https://www.openfoam.com/documentati...xtract_8C.html -- where are they discussed in documentation?
obscureed 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
[snappyHexMesh] stringing of feature edges Hr_kules OpenFOAM Meshing & Mesh Conversion 0 July 22, 2022 09:30
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 18:34
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 04:23
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


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