Generating Mesh using snappyHexMesh
Title
Question
hello every one, i ask you for a problem with the zip files downloaded, my command blockMesh work correctly, but it dont work, and show me this message
Usage: surfaceFeatureExtract [OPTIONS] <surface> <output set>
options:
-case <dir> specify alternate case directory, default i
-closeness <scalar>
span to look for surface closeness
-deleteBox <((x0 y0 z0)(x1 y1 z1))>
remove edges within specified bounding box
-featureProximity <scalar>
distance to look for close features
-includedAngle <degrees>
construct feature set from included angle [
-manifoldEdgesOnly
remove any non-manifold (open or more than
faces) edges
-minElem <int> remove features with fewer than the specifi
edges
-minLen <scalar> remove features shorter than the specified
-noFunctionObjects
do not execute functionObjects
-set <name> use existing feature set from file
-subsetBox <((x0 y0 z0)(x1 y1 z1))>
remove edges outside specified bounding box
-writeObj write extendedFeatureEdgeMesh obj files
-writeVTK write extendedFeatureEdgeMesh vtk files
-srcDoc display source code in browser
-doc display application documentation in browse
-help print the usage
extract and write surface features to file
Using: OpenFOAM-2.1 (see www.OpenFOAM.org)
Build: 2.1-88b2f2ae3a0b
--> FOAM FATAL ERROR:
Wrong number of arguments, expected 2 found 0
FOAM exiting
Then the command "snappyHexMesh -overwrite" will not work as i hope
Please help me.
Usage: surfaceFeatureExtract [OPTIONS] <surface> <output set>
options:
-case <dir> specify alternate case directory, default i
-closeness <scalar>
span to look for surface closeness
-deleteBox <((x0 y0 z0)(x1 y1 z1))>
remove edges within specified bounding box
-featureProximity <scalar>
distance to look for close features
-includedAngle <degrees>
construct feature set from included angle [
-manifoldEdgesOnly
remove any non-manifold (open or more than
faces) edges
-minElem <int> remove features with fewer than the specifi
edges
-minLen <scalar> remove features shorter than the specified
-noFunctionObjects
do not execute functionObjects
-set <name> use existing feature set from file
-subsetBox <((x0 y0 z0)(x1 y1 z1))>
remove edges outside specified bounding box
-writeObj write extendedFeatureEdgeMesh obj files
-writeVTK write extendedFeatureEdgeMesh vtk files
-srcDoc display source code in browser
-doc display application documentation in browse
-help print the usage
extract and write surface features to file
Using: OpenFOAM-2.1 (see www.OpenFOAM.org)
Build: 2.1-88b2f2ae3a0b
--> FOAM FATAL ERROR:
Wrong number of arguments, expected 2 found 0
FOAM exiting
Then the command "snappyHexMesh -overwrite" will not work as i hope
Please help me.
OpenFOAM Generating-Mesh-using-snappyHexMesh 07-08 min 50-60 sec
Answers:
This might be a problem arising because of version issues. I downloaded the Zip files and executed the steps on OpenFoam 4.1. surfaceFeatureExtract command is getting executed correctly.
I would suggest you to add arguments to the command, like
"surfaceFeatureExtract -includedAngle 100 constant/triSurface/flange.stl" (i.e. your .stl filepath)
Hope this helps.
I would suggest you to add arguments to the command, like
"surfaceFeatureExtract -includedAngle 100 constant/triSurface/flange.stl" (i.e. your .stl filepath)
Hope this helps.
Hi Mr Aashay thanks you, i downloaded the zip file too, but im using the OF 2.1 as in the tutorial video, but at this time the error differ from the past one, ill attach you it. Note the last line between this message and the last one.
Usage: surfaceFeatureExtract [OPTIONS] <surface> <output set>
options:
-case <dir> specify alternate case directory, default is the cwd
-closeness <scalar>
span to look for surface closeness
-deleteBox <((x0 y0 z0)(x1 y1 z1))>
remove edges within specified bounding box
-featureProximity <scalar>
distance to look for close features
-includedAngle <degrees>
construct feature set from included angle [0..180]
-manifoldEdgesOnly
remove any non-manifold (open or more than two connected
faces) edges
-minElem <int> remove features with fewer than the specified number of
edges
-minLen <scalar> remove features shorter than the specified cumulative length
-noFunctionObjects
do not execute functionObjects
-set <name> use existing feature set from file
-subsetBox <((x0 y0 z0)(x1 y1 z1))>
remove edges outside specified bounding box
-writeObj write extendedFeatureEdgeMesh obj files
-writeVTK write extendedFeatureEdgeMesh vtk files
-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.1 (see www.OpenFOAM.org)
Build: 2.1-88b2f2ae3a0b
--> FOAM FATAL ERROR:
Wrong number of arguments, expected 2 found 5
FOAM exiting
Usage: surfaceFeatureExtract [OPTIONS] <surface> <output set>
options:
-case <dir> specify alternate case directory, default is the cwd
-closeness <scalar>
span to look for surface closeness
-deleteBox <((x0 y0 z0)(x1 y1 z1))>
remove edges within specified bounding box
-featureProximity <scalar>
distance to look for close features
-includedAngle <degrees>
construct feature set from included angle [0..180]
-manifoldEdgesOnly
remove any non-manifold (open or more than two connected
faces) edges
-minElem <int> remove features with fewer than the specified number of
edges
-minLen <scalar> remove features shorter than the specified cumulative length
-noFunctionObjects
do not execute functionObjects
-set <name> use existing feature set from file
-subsetBox <((x0 y0 z0)(x1 y1 z1))>
remove edges outside specified bounding box
-writeObj write extendedFeatureEdgeMesh obj files
-writeVTK write extendedFeatureEdgeMesh vtk files
-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.1 (see www.OpenFOAM.org)
Build: 2.1-88b2f2ae3a0b
--> FOAM FATAL ERROR:
Wrong number of arguments, expected 2 found 5
FOAM exiting
thanks for help me, the last problem was solved using "surfaceFeatureExtract -includedAngle 150 -writeObj constant/triSurface/flange.stl flange_1" but i got a new error
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = 0
Read mesh in = 1.234 s
Overall mesh bounding box : (-0.03 -0.03 -0.03) (0.03 0.03 0.01)
Relative tolerance : 1e-006
Absolute matching distance : 9.38083e-008
Reading refinement surfaces.
Read refinement surfaces in = 0.204 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.125 s
Reading features.
Refinement level 0 for all cells crossed by feature "flange.eMesh" (767 points,
776 edges).
Detected 18 featurePoints out of 767 on feature flange.eMesh
Read features in = 0.031 s
Determining initial surface intersections
-----------------------------------------
--> FOAM FATAL ERROR:
Number of cells in mesh:8000 does not equal size of cellLevel:35656
This might be because of a restart with inconsistent cellLevel.
From function hexRef8::getLevel0EdgeLength() const
in file polyTopoChange/polyTopoChange/hexRef8.C at line 357.
FOAM aborting
Can you help me!
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = 0
Read mesh in = 1.234 s
Overall mesh bounding box : (-0.03 -0.03 -0.03) (0.03 0.03 0.01)
Relative tolerance : 1e-006
Absolute matching distance : 9.38083e-008
Reading refinement surfaces.
Read refinement surfaces in = 0.204 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.125 s
Reading features.
Refinement level 0 for all cells crossed by feature "flange.eMesh" (767 points,
776 edges).
Detected 18 featurePoints out of 767 on feature flange.eMesh
Read features in = 0.031 s
Determining initial surface intersections
-----------------------------------------
--> FOAM FATAL ERROR:
Number of cells in mesh:8000 does not equal size of cellLevel:35656
This might be because of a restart with inconsistent cellLevel.
From function hexRef8::getLevel0EdgeLength() const
in file polyTopoChange/polyTopoChange/hexRef8.C at line 357.
FOAM aborting
Can you help me!
Login to add comment