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

[snappyHexMesh] Error: Feature line extraction is only valid on closed manifold surfaces?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 28, 2019, 14:52
Default Error: Feature line extraction is only valid on closed manifold surfaces?
  #1
New Member
 
anu
Join Date: Jun 2019
Posts: 9
Rep Power: 2
anu.raghun is on a distinguished road
Hi everyone,
I'm having trouble running surfaceFeatureExtract on an stl file? When I try to run it, I get the following error:


Quote:
Reading surfaceFeatureExtractDict

Surface : "deltaPlate30deg.stl"


Feature line extraction is only valid on closed manifold surfaces.


--> FOAM FATAL ERROR:
while error on line 1
expected but found '�@h�q(�B'

From function int STLLexer::lex()
in file triSurface/interfaces/STL/readSTLASCII.L at line 360.

FOAM exiting

I'm not sure what the error is here? Is it to do with my STL file?
Here is my surfaceFeatureExtractDict:


Quote:


// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

deltaPlate30deg.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 120;
}

// Write options

// Write features to obj format for postprocessing
writeObj yes;
}


surface2.nas
{
// How to obtain raw features (extractFromFile || extractFromSurface)
extractionMethod extractFromFile;

extractFromFileCoeffs
{
// Load from an existing feature edge file
featureEdgeFile "constant/triSurface/featureEdges.nas";
}

trimFeatures
{
// Remove features with fewer than the specified number of edges
minElem 0;

// Remove features shorter than the specified cumulative length
minLen 0.0;
}

subsetFeatures
{
// Use a plane to select feature edges
// (normal)(basePoint)
// Keep only edges that intersect the plane will be included
plane (1 0 0)(0 0 0);

// Select feature edges using a box
// (minPt)(maxPt)
// Keep edges inside the box:
insideBox (0 0 0)(1 1 1);
// Keep edges outside the box:
outsideBox (0 0 0)(1 1 1);

// Keep nonManifold edges (edges with >2 connected faces where
// the faces form more than two different normal planes)
nonManifoldEdges yes;

// Keep open edges (edges with 1 connected face)
openEdges yes;
}

addFeatures
{
// Add (without merging) another extendedFeatureEdgeMesh
name axZ.extendedFeatureEdgeMesh;

// Optionally flip features (invert all normals, making
// convex<->concave etc)
//flip false;
}

// Output the curvature of the surface
curvature no;

// Output the proximity of feature points and edges to each other
featureProximity no;
// The maximum search distance to use when looking for other feature
// points and edges
maxFeatureProximity 1;

// Out put the closeness of surface elements to other surface elements.
closeness no;

// Write options

// Write features to obj format for postprocessing
writeObj yes;

// Write surface proximity and curvature fields to vtk format
// for postprocessing
writeVTK no;
}


// ************************************************** *********************** //
I'd appreciate any advice!
anu.raghun is offline   Reply With Quote

Old   July 1, 2019, 06:46
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 386
Rep Power: 10
Antimony is on a distinguished road
Hi,

Is your STL file encoded in binary? Can you try running the same with an ASCII version of the STL file instead?

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   July 1, 2019, 11:03
Default
  #3
New Member
 
anu
Join Date: Jun 2019
Posts: 9
Rep Power: 2
anu.raghun is on a distinguished road
Thanks for your reply!
It already appears to be ASCII encoded. Is there something else I can do?
anu.raghun is offline   Reply With Quote

Old   July 2, 2019, 11:21
Default
  #4
New Member
 
anu
Join Date: Jun 2019
Posts: 9
Rep Power: 2
anu.raghun is on a distinguished road
Quick update: I used surfaceMeshConvert on my STL file. More bugs followed, but the STL file was able to be read. New thread here.
anu.raghun is offline   Reply With Quote

Reply

Tags
snappyhexmesh, snappyhexmesh 3d, surfacefeatureextract

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Gmsh] 3D Mesh conversion from gmsh-2.5.0 to OpenFOAM Ancioi OpenFOAM Meshing & Mesh Conversion 17 January 9, 2019 00:50
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 08:36
[blockMesh] BlockMeshmergePatchPairs polyTopoChanger benru OpenFOAM Meshing & Mesh Conversion 3 June 29, 2008 22:24
Problems of Duns Codes! Martin J Main CFD Forum 8 August 15, 2003 00:19
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


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