CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [snappyHexMesh] Problem with snappyHexMesh: do not work (https://www.cfd-online.com/Forums/openfoam-meshing/127689-problem-snappyhexmesh-do-not-work.html)

CjjJoy December 17, 2013 15:01

Problem with snappyHexMesh: do not work
 
Hello, everyone!I'm new here. I try to simulate the flange case locate in the tutorial/mesh/snappyHexMesh
First, I run the blockMesh. Than I copy the flange.stl into the fold flange/consant/triSurface. Than I run snappyHexMesh, it reported problems like below:
Code:

Create time

Create mesh for time = 0

Read mesh in = 0.02 s

Overall mesh bounding box  : (-0.03 -0.03 -0.03) (0.03 0.03 0.01)
Relative tolerance        : 1e-06
Absolute matching distance : 9.38083e-08

Reading refinement surfaces.
Read refinement surfaces in = 0.03 s

Reading refinement shells.
Refinement level 3 for all cells inside refineHole
Read refinement shells in = 0 s

Setting refinement level of surface to be consistent with shells.
Checked shell refinement in = 0.02 s

Reading features.


--> FOAM FATAL ERROR:
Unknown file extension

Valid types are :

6
(
bdf
eMesh
inp
nas
obj
vtk
)


    From function edgeMesh<Face>::New(const fileName&, const word&) : constructing edgeMesh
    in file edgeMeshNew.C at line 45.

FOAM exiting

So anybody know how to fix it? Thank you very much!:)

Guimloute December 23, 2013 11:39

Same problem
 
Hello,

I meet the exact same problem.

I thought it might come from the fact that I do not have any features.eMesh file in my case directory.
I tried to build one using the tutorials command :
Code:

surfaceFeatureExtract -includedAngle 150 surface.stl features
but I get the following error message :
Code:

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.2 (see www.OpenFOAM.org)
Build: 2.2.2-9240f8b967db



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


FOAM exiting

Any idea?

Thanks.

Guimloute December 23, 2013 12:22

eMesh file
 
Apparently the surfaceFeatureExtractDict now uses a dictionary :
http://www.openfoam.org/mantisbt/view.php?id=929

That explains my problem in making an eMesh file from the command line.
Now it runs.

CjjJoy, do you have a .eMesh file in your constant/triSurface folder?
There should be one I think. Moreover, your snappyHexMeshDict should refer to this file in the "features" sub-dictionary. Is it the case?

mturcios777 December 23, 2013 12:32

The usage for surfaceFeatureExtract has changed, in that it now uses a dictionary. You can see as the error message says that it expected zero arguments. If you look in system there should be surfaceFeatureExtractDict.

crst15 February 5, 2014 20:47

I agree with Guimloute and mturcios777, and because of that I met a problem. So far since the beginning I have used OpenFOAM 2.2.2 installed in my laptop which does not need any additional argument for surfaceFeatureExtract. Now, I have to run my case in a supercomputer with OpenFOAM 2.1.1 which surfaceFeatureExtract needs 2 arguments instead of 0. I don't know what I should include.. Any clue?

Thanks

mturcios777 February 6, 2014 13:13

If you run with the -help option you will see what the arguments are. Off the top of my head I think its the includedAngle and the filename of the feature

crst15 February 7, 2014 04:42

Quote:

Originally Posted by mturcios777 (Post 473794)
If you run with the -help option you will see what the arguments are. Off the top of my head I think its the includedAngle and the filename of the feature

Hi mturcios777,

Suppose if I have more than one files of features, how can I incorporate all of them? In fact, I put each feature in a file, so that I have a lot of files just for one simulation.

Cheers

mturcios777 February 7, 2014 11:42

If you are running 2.1.x or older, you will need to run surfaceFeatureExtract once for each file. 2.2.x allows you to process all the files at once via the dictionary.

crst15 February 8, 2014 01:13

Hi Marco,

Cool. Thanks for your reply.

Currently I face a problem when trying to run my simulation in parallel. Everything run smoothly in series, but problem occurs in parallel. I got the following error messages every time I run the code:


--> FOAM FATAL IO ERROR:
wrong token type - expected Scalar, found on line 3 the punctuation token '-'

file: /scratch/interns2013/schristian/coba48Procs/processor10/system/data::solverPerformance::epsilon at line 3.

From function operator>>(Istream&, Scalar&)
in file lnInclude/Scalar.C at line 91.

FOAM parallel run exiting


I have tried several things, but didn't work. When I tried to search for /system/data::solverPerformance::epsilon at line 3 I couldn't find that such file. Similarly for lnInclude/Scalar.C at line 91, which doesn't exits.

Is it because of a problem with MPI or OpenMPI? Do you have any clue on how to fix this problem?


Cheers


All times are GMT -4. The time now is 05:19.