CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

could not run surfaceFeatureExtract command

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By DramaDrummer
  • 1 Post By AtoHM

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 21, 2020, 12:21
Thumbs up could not run surfaceFeatureExtract command
  #1
New Member
 
Muhammad Atif
Join Date: Jul 2019
Posts: 4
Rep Power: 6
m.atifme20 is on a distinguished road
Hi I am a newbie in OpenFOAM. I am trying to run simpleFoam analysis of a tractor-trailer. I have copied the code from the university document which was working perfectly before. I followed all steps but used different software(solidworks) to create geometry. I placed .stl file in constant/trySurface folder. When I am using the command surfaceFeatureExtract it is giving the error below. It seems to me that the solver could not read the .stl file. I have checked the names in surfaceFeatureExtractDict which is same.
I have run the motorBike tutorial which was running fine. I am using openFOAM v7. Please find attached file of geometry and surfaceFeatureExtractDict.
Any help will be highly appreciated!

/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
Build : 7-3bcbaf946ae9
Exec : surfaceFeatureExtract
Date : Oct 21 2020
Time : 17:02:09
Host : "Atif-pc"
PID : 594
I/O : uncollated
Case : /mnt/c/Users/Admin/Documents/openFoam/practice/truckAnalysis
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Reading surfaceFeatureExtractDict

Surface : "Truck-Geometry.stl"


Feature line extraction is only valid on closed manifold surfaces.


--> FOAM FATAL ERROR:
Cannot read "/mnt/c/Users/Admin/Documents/openFoam/practice/truckAnalysis/constant/triSurface/Truck-Geometry.stl"

From function bool Foam::triSurface::read(const Foam::fileName&, const Foam::word&, bool)
in file triSurface/triSurface.C at line 304.

FOAM exiting

Last edited by m.atifme20; October 21, 2020 at 12:30. Reason: updating file
m.atifme20 is offline   Reply With Quote

Old   October 28, 2020, 03:30
Default
  #2
New Member
 
Kevin
Join Date: Nov 2019
Location: Bremen, Germany
Posts: 10
Rep Power: 6
DramaDrummer is on a distinguished road
Hi Muhammad!
Don't know if it still helps you, but I would have two possible solutions:
1. As far as I know, in newer versions of OF surfaceFeatureExtract was replaced by surfaceFeatures. For this you would need the surfaceFeaturesDict, which (I think) looks similar to the surfaceFeatureExtractDict. Just look into the tutorials
2. More likely, the problem is a miss spelling of your .stl file or this file being in the wrong folder. From the code triSurface.C at line 304 you can see that this error comes up when the software is unable to find the file.


Hope this helps out.
Kevin
njdyck likes this.
DramaDrummer is offline   Reply With Quote

Old   March 17, 2023, 17:11
Default
  #3
Member
 
West Midlands
Join Date: Aug 2022
Posts: 63
Rep Power: 3
R786 is on a distinguished road
Hello,
I am having a similar problem as follows, please can anyone help:
Note: Feature line extraction only valid on closed manifold surfaces

Reading surfaceFeatureExtractDict

Surfaces : body.stl
Output : body
Load options : offset
Write options: writeObj=off writeVTK=off

Statistics:
Triangles : 13754331 in 1 region(s)
Vertices : 6669391
Bounding Box : (0.0980459 0.0999999 -6e-05) (7.1459 7.5 1.45325)

Constructing feature set from included angle 150
Selecting edges based purely on geometric tests: no
Killed
R786 is offline   Reply With Quote

Old   March 20, 2023, 11:10
Default
  #4
New Member
 
Kevin
Join Date: Nov 2019
Location: Bremen, Germany
Posts: 10
Rep Power: 6
DramaDrummer is on a distinguished road
Hi there,


two notes that will probably help you:
  1. Change from surfaceFeatureExtract to surfaceFeatures, since this is the newer version.
  2. Looks like your problem could be the fact there are no features with an angle < 150° in the stl.
Best
Kevin
DramaDrummer is offline   Reply With Quote

Old   July 31, 2023, 18:55
Default
  #5
New Member
 
Georges Sainte-Rose
Join Date: Jul 2023
Posts: 2
Rep Power: 0
GeorgesSR is on a distinguished road



Greetings, I have a similar issue to run surfaceFeatureExtract, but I also can't seem to run the new command surfaceFeatures, would anyone please know why ?


Last edited by GeorgesSR; July 31, 2023 at 20:45. Reason: smaller images
GeorgesSR is offline   Reply With Quote

Old   August 1, 2023, 02:23
Default
  #6
Senior Member
 
M
Join Date: Dec 2017
Posts: 642
Rep Power: 12
AtoHM is on a distinguished road
An top, you run surfaceFeatureExtract which fails, because it is missing surfaceFeatureExtractDict to work with.


At the bottom, you try to run surfaceFeatures which is missing, because you are working with the ESI-branch of OpenFOAM (indicated by the numbering v2212, the foundation branch uses OpenFOAM 9, 10, 11 and so on as versioning). In the ESI branch the utility has not been renamed and is still called surfaceFeatureExtract. I use this syntax in surfaceFeatureExtractDict: surfaceFeatureExtract
DramaDrummer likes this.
AtoHM is offline   Reply With Quote

Old   August 1, 2023, 04:11
Default
  #7
New Member
 
Kevin
Join Date: Nov 2019
Location: Bremen, Germany
Posts: 10
Rep Power: 6
DramaDrummer is on a distinguished road
Thanks AtoHM for the detailed reply!

So for Georges to summarize: You just have to rename your surfaceFeaturesDict to surfaceFeatureExtractDict.
DramaDrummer is offline   Reply With Quote

Old   August 1, 2023, 16:52
Default
  #8
New Member
 
Georges Sainte-Rose
Join Date: Jul 2023
Posts: 2
Rep Power: 0
GeorgesSR is on a distinguished road
Thank you for both of your replies.
I fixed the issue but it told me my object was non-manifold, I tried to make a new/simpler one in blender, a very simple box (the basic blender box primitive) with a bit of thickness, 0 problem of manifold inside blender, then snappyHexMesh-GUI, but still... object non-manifold :'(

Last edited by GeorgesSR; August 2, 2023 at 16:45.
GeorgesSR is offline   Reply With Quote

Reply

Tags
.stl file, openfaom-7, surfacefeatureextract, trysurface


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
How to import and run command file (*.enc) using FlowSight automatically? brucecumt FLOW-3D 1 November 21, 2016 06:58
Working directory via command line Luiz CFX 4 March 6, 2011 20:02
Problem of compilation OF 14Allwmake command not found erik_d OpenFOAM Bugs 13 September 13, 2008 21:45
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 04:26
Problems of running the parallel computations lorraine FLUENT 17 July 6, 2007 08:08


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