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/)
-   -   SnappyHexMesh& extrudeMesh (https://www.cfd-online.com/Forums/openfoam-pre-processing/118486-snappyhexmesh-extrudemesh.html)

Dadou January 29, 2014 05:17

Quote:

Originally Posted by nimasam (Post 472263)
well, you may want to add surfaceFeatureExtractDict to your system folder, and edit it appropriately

Hi again,

I'm sorry to bother you again but it's not working. I edit the surfaceFeatureExtractDict, it takes care of 3 .STL files but still the same error : " FOAM FATAL ERROR :
Wrong number of arguments, expected 0 found3
Invalid option: -includedAngle

FOAM exittimg"

Best Regards,

Dadou

Dadou January 29, 2014 08:50

Quote:

Originally Posted by Dadou (Post 472304)
Hi again,

I'm sorry to bother you again but it's not working. I edit the surfaceFeatureExtractDict, it takes care of 3 .STL files but still the same error : " FOAM FATAL ERROR :
Wrong number of arguments, expected 0 found3
Invalid option: -includedAngle

FOAM exittimg"

Best Regards,

Dadou


I just figured out the problem.
I'm using OpenFOAM 2.2.2 and the option -includedAngle doesn't exist anymore. You just have to write surfaceFeatureExtract and you will have your extrudeMesh.

Dadou

Anuj1411 August 5, 2016 06:20

Dear immortality
 
Quote:

Originally Posted by immortality (Post 431486)
dear Saideh in doing this command:
Code:

surfaceFeatureExtract -includedAngle 150 -writeObj constant/triSurface/airfoil.stl airfoil
this error displayed:
Code:

Create time

Reading surfaceFeatureExtractDict



--> FOAM FATAL IO ERROR:
cannot open file

file: /home/ehsan/Desktop/airfoil_snappyHexMesh_modified/system/surfaceFeatureExtractDict at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 87.

FOAM exiting

ehsan@Ehsan-com:~/Desktop/airfoil_snappyHexMesh_modified$ surfaceFeatureExtract -includedAngle 150 -writeObj constant/triSurface/airfoil.stl airfoil

Usage: surfaceFeatureExtract [OPTIONS]
options:
  -case <dir>      specify alternate case directory, default is the cwd
  -dict <file>      read control dictionary from specified location
  -noFunctionObjects
                    do not execute functionObjects
  -srcDoc          display source code in browser
  -doc              display application documentation in browser
  -help            print the usage

extract and write surface features to file

Using: OpenFOAM-2.2.0 (see www.OpenFOAM.org)
Build: 2.2.0-b363e8d14789



--> FOAM FATAL ERROR:
Wrong number of arguments, expected 0 found 3
Invalid option: -writeObj
Invalid option: -includedAngle


FOAM exiting

I'm totally unfamiliar with snappyHexMesh commands if I have run it mistakenly.

.................I have been facing a similar problem and for the same problem for airfoil, where the command line returns:
--> FOAM FATAL ERROR:
Wrong number of arguments, expected 0 found 3
Invalid option: -writeObj
Invalid option: -includedAngle

Please could you share the solution to this problem with me??

Anuj1411 August 11, 2016 04:16

surfaceFeatureExtract
 
Quote:

Originally Posted by s.m (Post 431489)
Dear ehsan, thank you very much for your kind attention.:)
i put in the attachment the airfoil_snappyHexMesh_modified2 , please open the allrun in this folder, i write in it that you just should run blockMesh and after that snappyHexMesh in two steps as you see in the allrun.txt.

.................I have been facing a similar problem and for the same problem for airfoil, where the command line returns:
--> FOAM FATAL ERROR:
Wrong number of arguments, expected 0 found 3
Invalid option: -writeObj
Invalid option: -includedAngle

Please could you share the solution to this problem with me??

nimasam September 1, 2016 03:21

you should define the surfaceFeatureExtractDict in system folder, then run the command surfaceFeatureExtract on terminal.
There is no need for extra options.


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