|
[Sponsors] |
[snappyHexMesh] Problem with snappyHexMesh: do not work |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 17, 2013, 16:01 |
Problem with snappyHexMesh: do not work
|
#1 |
New Member
jingjing cao
Join Date: Dec 2013
Posts: 15
Rep Power: 13 |
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 |
|
December 23, 2013, 12:39 |
Same problem
|
#2 |
New Member
Guillaume Ducrue
Join Date: Dec 2013
Posts: 9
Rep Power: 12 |
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 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 Thanks. |
|
December 23, 2013, 13:22 |
eMesh file
|
#3 |
New Member
Guillaume Ducrue
Join Date: Dec 2013
Posts: 9
Rep Power: 12 |
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? |
|
December 23, 2013, 13:32 |
|
#4 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
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.
|
|
February 5, 2014, 21:47 |
|
#5 |
New Member
Steven
Join Date: Dec 2013
Location: Perth
Posts: 15
Rep Power: 13 |
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 |
|
February 6, 2014, 14:13 |
|
#6 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
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
|
|
February 7, 2014, 05:42 |
|
#7 | |
New Member
Steven
Join Date: Dec 2013
Location: Perth
Posts: 15
Rep Power: 13 |
Quote:
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 |
||
February 7, 2014, 12:42 |
|
#8 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
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.
|
|
February 8, 2014, 02:13 |
|
#9 |
New Member
Steven
Join Date: Dec 2013
Location: Perth
Posts: 15
Rep Power: 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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Problem with snappyHexMesh command | zino12 | OpenFOAM Meshing & Mesh Conversion | 0 | February 18, 2016 09:02 |
[snappyHexMesh] SnappyHexMesh in Parallel problem | swifty | OpenFOAM Meshing & Mesh Conversion | 10 | November 6, 2015 05:40 |
[snappyHexMesh] Problem with snappyHexMesh | giack | OpenFOAM Meshing & Mesh Conversion | 0 | March 7, 2014 10:40 |
[snappyHexMesh] snappyHexMesh: problem meshing baffle (surface with zero thickness) | julien.decharentenay | OpenFOAM Meshing & Mesh Conversion | 7 | June 16, 2012 09:12 |
[snappyHexMesh] snappyHexMesh memory or install problem? | carowjp | OpenFOAM Meshing & Mesh Conversion | 0 | April 12, 2010 10:50 |