CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

Problem with snappyHexMesh: do not work

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

Like Tree1Likes
  • 1 Post By Guimloute

Reply
 
LinkBack Thread Tools Display Modes
Old   December 17, 2013, 16:01
Default Problem with snappyHexMesh: do not work
  #1
New Member
 
jingjing cao
Join Date: Dec 2013
Posts: 3
Rep Power: 3
CjjJoy is on a distinguished road
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!
CjjJoy is offline   Reply With Quote

Old   December 23, 2013, 12:39
Default Same problem
  #2
New Member
 
Guillaume Ducrue
Join Date: Dec 2013
Posts: 9
Rep Power: 3
Guimloute is on a distinguished road
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 is offline   Reply With Quote

Old   December 23, 2013, 13:22
Default eMesh file
  #3
New Member
 
Guillaume Ducrue
Join Date: Dec 2013
Posts: 9
Rep Power: 3
Guimloute is on a distinguished road
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?
peppino likes this.
Guimloute is offline   Reply With Quote

Old   December 23, 2013, 13:32
Default
  #4
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 688
Rep Power: 17
mturcios777 will become famous soon enough
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.
mturcios777 is offline   Reply With Quote

Old   February 5, 2014, 21:47
Default
  #5
New Member
 
Steven
Join Date: Dec 2013
Location: Perth
Posts: 15
Rep Power: 3
crst15 is on a distinguished road
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
crst15 is offline   Reply With Quote

Old   February 6, 2014, 14:13
Default
  #6
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 688
Rep Power: 17
mturcios777 will become famous soon enough
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
mturcios777 is offline   Reply With Quote

Old   February 7, 2014, 05:42
Default
  #7
New Member
 
Steven
Join Date: Dec 2013
Location: Perth
Posts: 15
Rep Power: 3
crst15 is on a distinguished road
Quote:
Originally Posted by mturcios777 View Post
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
crst15 is offline   Reply With Quote

Old   February 7, 2014, 12:42
Default
  #8
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 688
Rep Power: 17
mturcios777 will become famous soon enough
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.
mturcios777 is offline   Reply With Quote

Old   February 8, 2014, 02:13
Default
  #9
New Member
 
Steven
Join Date: Dec 2013
Location: Perth
Posts: 15
Rep Power: 3
crst15 is on a distinguished road
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
crst15 is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SnappyHexMesh in Parallel problem swifty OpenFOAM Meshing & Mesh Conversion 4 September 26, 2012 09:37
snappyHexMesh: problem meshing baffle (surface with zero thickness) julien.decharentenay OpenFOAM Native Meshers: snappyHexMesh and Others 7 June 16, 2012 09:12
Problem with skew faces in simpleFoam... HelloWorld OpenFOAM 7 May 14, 2010 12:28
Velocity profiles problem behind the elbow (3D problem) kabat73 FLUENT 8 May 9, 2010 05:26
snappyHexMesh memory or install problem? carowjp OpenFOAM Mesh Utilities 0 April 12, 2010 10:50


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