|
[Sponsors] |
[surface handling] Regular expression in surfaceFeatureExtractDict |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Join Date: Nov 2009
Posts: 65
Rep Power: 17 ![]() |
Dear All,
In order to specify many STL files, I'd like to use regular expression as bellow, but got error after sFE command. Does sFEDict allow regular expression ? Sincerely, waku2005 Code:
"(wing.*.stl)" // I want to specitfy wing0.stl, wing1.stl, ..... { // How to obtain raw features (extractFromFile || extractFromSurface) extractionMethod extractFromSurface; extractFromSurfaceCoeffs { // Mark edges whose adjacent surface normals are at an angle less // than includedAngle as features // - 0 : selects no edges // - 180: selects all edges includedAngle 180; } subsetFeatures { // Keep nonManifold edges (edges with >2 connected faces) nonManifoldEdges no; // Keep open edges (edges with 1 connected face) openEdges yes; } // Write options // Write features to obj format for postprocessing writeObj yes; } |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Lennart
Join Date: Feb 2016
Posts: 46
Rep Power: 11 ![]() |
I'd also be interested in this...
|
|
![]() |
![]() |
![]() |
![]() |
#3 | |
Senior Member
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 14 ![]() |
Mentioning in Regular Expressions in OF Config Files:
Quote:
So, this may mean that the usage of regular expressions is currently not possible in surfaceFeatureExtractDicts for geometry file names. |
||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 14 ![]() |
To update those who had an interest on this thread. I have raised a feature request:
Feature: Possibility for Regular Expressions in snappyHexMeshDict, surfaceFeatureExtractDict etc. for File Names |
|
![]() |
![]() |
![]() |
![]() |
#5 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 41 ![]() ![]() |
Quote:
At least for surfaceFeatureExtract, this was already in the OpenFOAM-1706 release. However, the regular expressions are not given via the keyword, but as a list of wordRe. For example, Code:
// Self intersection (single or multiple surfaces). // - Use 'surfaces' entry (a wordRe list) if it exists. // - If the dictionary name does not have an extension, 'surfaces' is mandatory. outputName1 { extractionMethod none; surfaces (surface1.stl surface2.nas "foo.*stl" ); // mm -> m scaling // scale 0.001; // Generate additional intersection features (none | self | region) intersectionMethod self; // Tolerance for surface intersections // tolerance 1e-3; } BTW: for OpenFOAM-1712 stitchMesh also got much better. Can now process multiple stitching via a dictionary. See the tutorials/mesh/stitchMesh/simple-cube1 |
||
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlet boundary condition in interFoam | Andrea_85 | OpenFOAM Running, Solving & CFD | 51 | July 20, 2017 13:31 |
writing execFlowFunctionObjects | immortality | OpenFOAM Post-Processing | 30 | September 15, 2013 06:16 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 18:44 |
CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 06:25 |
ParaView Compilation | jakaranda | OpenFOAM Installation | 3 | October 27, 2008 11:46 |