CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   could not run surfaceFeatureExtract command (https://www.cfd-online.com/Forums/openfoam-pre-processing/231106-could-not-run-surfacefeatureextract-command.html)

m.atifme20 October 21, 2020 13:21

could not run surfaceFeatureExtract command
 
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

DramaDrummer October 28, 2020 04:30

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


All times are GMT -4. The time now is 18:33.