CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] problems with mesh generation for the motorBike case

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2013, 09:08
Default problems with mesh generation for the motorBike case
  #1
Member
 
Mizo
Join Date: Jan 2013
Posts: 34
Rep Power: 13
Ingenieur is on a distinguished road
Hello,

i got this Error message, while am trying to create the mesh by motorBike tuorial.
could any one help me to find the problem?
thanx in advance,

Monzer


that's the error message:


--> FOAM FATAL ERROR:
Specified illegal patch minZ in layer dictionary.
Valid patch names are
72
(
frontAndBack
inlet
outlet
lowerWall
upperWall
motorBike_frt-fairing:001%1
motorBike_windshield:002%2
motorBike_rr-wh-rim:005%5
motorBike_rr-wh-rim:010%10
motorBike_fr-wh-rim:011%11
motorBike_fr-wh-brake-disk:012%12
motorBike_frame:016-shadow%13
motorBike_rear-susp:014%14
motorBike_rear-susp:014-shadow%15
motorBike_frame:016%16
motorBike_rr-wh-rim:005-shadow%17
motorBike_rr-wh-chain-hub:022%22
motorBike_rearseat%24
motorBike_frt-fairing%25
motorBike_windshield%26
motorBike_headlights%27
motorBike_driversseat%28
motorBike_rear-body%29
motorBike_fuel-tank%30
motorBike_exhaust%31
motorBike_rr-wh-rim%32
motorBike_fr-mud-guard%33
motorBike_fr-wh-rim%34
motorBike_fr-wh-brake-disk%35
motorBike_fr-brake-caliper%36
motorBike_fr-wh-tyre%37
motorBike_hbars%38
motorBike_fr-forks%39
motorBike_chain%40
motorBike_rr-wh-tyre%41
motorBike_square-dial%42
motorBike_round-dial%43
motorBike_dial-holder%44
motorBike_rear-susp%45
motorBike_rear-brake-lights%46
motorBike_rear-light-bracket%47
motorBike_frame%48
motorBike_rear-mud-guard%49
motorBike_rear-susp-spring-damp%50
motorBike_fairing-inner-plate%51
motorBike_clutch-housing%52
motorBike_radiator%53
motorBike_water-pipe%54
motorBike_water-pump%55
motorBike_engine%56
motorBike_rear-shock-link%57
motorBike_rear-brake-fluid-pot-bracket%58
motorBike_rear-brake-fluid-pot%59
motorBike_footpeg%60
motorBike_rr-wh-chain-hub%61
motorBike_rear-brake-caliper%62
motorBike_rider-helmet%65
motorBike_rider-visor%66
motorBike_rider-boots%67
motorBike_rider-gloves%68
motorBike_rider-body%69
motorBike_frame:0%70
motorBike_frt-fairing:001-shadow%74
motorBike_windshield-shadow%75
motorBike_fr-mud-guard-shadow%81
motorBike_fr-wh-brake-disk-shadow%83
motorBike_rear-mud-guard-shadow%84
motorBike_rear-susp-spring-damp-shadow%85
motorBike_radiator-shadow%86
motorBike_rear-shock-link-shadow%87
motorBike_rear-brake-fluid-pot-bracket-shadow%88
motorBike_rr-wh-chain-hub-shadow%89
)

From function layerParameters::layerParameters(const dictionary&, const polyBoundaryMesh&)
in file autoHexMesh/autoHexMeshDriver/layerParameters/layerParameters.C at line 932.
FOAM exiting
Ingenieur is offline   Reply With Quote

Old   March 29, 2013, 20:28
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Monzer,

Please indicate which OpenFOAM version you are using and what were the exact steps you've taken to reach this error message.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 30, 2013, 07:26
Default
  #3
Member
 
Mizo
Join Date: Jan 2013
Posts: 34
Rep Power: 13
Ingenieur is on a distinguished road
Hello Bruno,

thank u for ur reply

am using for FOAMpro 2.1.2. (at the University)
i did the following steps:

1- i created the block mesh with out problems
2- i decomposed the mesh
3- i wanted to create the mesh parallel (mpirun -np 6 foamProMesh -parallel)

it began to create to mesh but at the end i got that Error.

i tried a lot of things to solve the problem but i couldn't so i deactivated the Layer generation in snappyHexMeshDict...after that i didn't get that error and i created the mesh and the solving also...but as u know the solving without Layers ist not good especially for the turbulent Modelling.

i dont know where is the Problem

i have a question Bruno: is there a problem if i used an OpenFoam version to simulate a modell with different version of the (Foam files)

my greetings

Monzer
Ingenieur is offline   Reply With Quote

Old   April 1, 2013, 07:40
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Monzer,

The error message seems self-explanatory... it's telling you that "minZ" cannot be used for adding layers to it.
For example, check layers part in the "snappyHexMeshDict" file from OpenFOAM 2.1.x: https://github.com/OpenFOAM/OpenFOAM...xMeshDict#L199

As for compatibility... in theory, they should be compatible. All I know is that ICON's variant of OpenFOAM has features that the original version didn't have at the time each one was released.

Last but not least, I suggest that you contact your system's administrator at the University about support for FOAMPro from ICON; or contact ICON directly to ask for help, telling them which University you go to... hopefully they'll guide you through the process of how you can get help from them.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 2, 2013, 13:12
Default
  #5
Member
 
Mizo
Join Date: Jan 2013
Posts: 34
Rep Power: 13
Ingenieur is on a distinguished road
Thanx Bruno for ur replay, i tried ur suggestion but it still not working, any way am grateful to u becuase ur replayed
mebay i have to ask the company a bout this problem.

my best greetigs to you

Monzer
Ingenieur is offline   Reply With Quote

Old   April 4, 2013, 13:05
Default
  #6
Member
 
Mizo
Join Date: Jan 2013
Posts: 34
Rep Power: 13
Ingenieur is on a distinguished road
[/PHP]hello Bruno,

could u help me to find the error. am trying to creat the mesh for the same example (a car in windtunnel), but i got this error message about the windtunnel boundaries:

--> FOAM FATAL IO ERROR:
wrong token type - expected word found on line 125 the label 0

file:/RUN/project2/system/autoHexMeshDict::surfaces::regions::name at line 125.
From function operator>>(Istream&, word&)
in file primitives/strings/word/wordIO.C at line 91.

FOAM exiting

u can see the Referred attachment (HexMeshDict)

thanx in advance

best greetings

Monzer



Attached Images
File Type: jpg HexMeshDict.jpg (28.5 KB, 16 views)
Ingenieur is offline   Reply With Quote

Old   April 4, 2013, 14:00
Default
  #7
Member
 
Mizo
Join Date: Jan 2013
Posts: 34
Rep Power: 13
Ingenieur is on a distinguished road
Hi Bruno,

i found the error and the mesh is correctly created , but i got an anther Error by solving (LES)

the Error is:

--> FOAM FATAL IO ERROR:
keyword surface is undefined in dictionary "::surfaces::surfaces"
file: ::surfaces::surfaces from line 194 to line 200.
From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 410.
FOAM exiting


my question is, is there a dictionary with this name ????
i didn't hear about this Dictionary, could u plz give me an advice?

my best greetings


Monzer
Ingenieur is offline   Reply With Quote

Old   April 6, 2013, 07:59
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Monzer,

What's above that message?
And which application did you run to get that error?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 8, 2013, 04:40
Default
  #9
Member
 
Mizo
Join Date: Jan 2013
Posts: 34
Rep Power: 13
Ingenieur is on a distinguished road
Hi Bruno,

am trying to solve a simulation (car in windtunnel).
i did at first the block mesh without problems, then a tried to create the mesh parallel into 8 processors, but i got this error message:

[3] --> FOAM FATAL ERROR:
[3] cell 22462 of level 0 does not seem to have 8 points of equal or lower level
cellPoints:6(2964 2981 1355 844 2404 2406)
pointLevels:6{0}
[3]
[3]
[3] From function hexRef8::setRefinement(const labelList&, polyTopoChange&)
[3] in file polyTopoChange/polyTopoChange/hexRef8.C at line 3638.
[3]
FOAM parallel run aborting
[3]
[3] #0 Foam::error:rintStack(Foam::Ostream&)--------------------------------------------------------------------------
An MPI process has executed an operation involving a call to the
"fork()" system call to create a child process. Open MPI is currently
operating in a condition that could result in memory corruption or
other system errors; your MPI job may hang, crash, or produce silent
data corruption. The use of fork() (or system() or other calls that
create child processes) is strongly discouraged.

The process that invoked fork was:
Local host: vumca348 (PID 20184)
MPI_COMM_WORLD rank: 3

If you are *absolutely sure* that your application will successfully
and correctly survive a call to fork(), you may disable this warning
by setting the mpi_warn_on_fork MCA parameter to 0.
--------------------------------------------------------------------------
in "/share/openfoam/icon/FOAMpro-2.1.2/FOAM-2.1.2/lib/linux64GccDPOpt/libOSspecific.so"
[3] #1 Foam::error::abort() in "/share/openfoam/icon/FOAMpro-2.1.2/FOAM-2.1.2/lib/linux64GccDPOpt/libFOAM.so"
[3] #2 Foam::hexRef8::setRefinement(Foam::List<int> const&, Foam:olyTopoChange&) in "/share/openfoam/icon/FOAMpro-2.1.2/FOAM-2.1.2/lib/linux64GccDPOpt/libdynamicMesh.so"
[3] #3 Foam::meshRefinement::refine(Foam::List<int> const&) in "/share/openfoam/icon/FOAMpro-2.1.2/FOAM-2.1.2/lib/linux64GccDPOpt/libautoMesh.so"
[3] #4 Foam::meshRefinement::refineAndBalance(Foam::strin g const&, Foam::decompositionMethod&, Foam::fvMeshDistribute&, Foam::List<int> const&, double) in "/share/openfoam/icon/FOAMpro-2.1.2/FOAM-2.1.2/lib/linux64GccDPOpt/libautoMesh.so"
[3] #5 Foam::autoRefineDriver::featureEdgeRefine(Foam::re finementParameters const&, Foam::PtrList<Foam::dictionary> const&, int, int) in "/share/openfoam/icon/FOAMpro-2.1.2/FOAM-2.1.2/lib/linux64GccDPOpt/libautoMesh.so"
[3] #6 Foam::autoRefineDriver::doRefine(Foam::dictionary const&, Foam::refinementParameters const&, bool, Foam::dictionary const&) in "/share/openfoam/icon/FOAMpro-2.1.2/FOAM-2.1.2/lib/linux64GccDPOpt/libautoMesh.so"
[3] #7 Foam::autoHexMeshDriver::doMesh() in "/share/openfoam/icon/FOAMpro-2.1.2/FOAM-2.1.2/lib/linux64GccDPOpt/libautoMesh.so"
[3] #8 main in "/share/openfoam/icon/FOAMpro-2.1.2/FOAM-2.1.2/applications/bin/linux64GccDPOpt/foamProMesh"
[3] #9 __libc_start_main in "/lib64/libc.so.6"
[3] #10 __gxx_personality_v0 in "/share/openfoam/icon/FOAMpro-2.1.2/FOAM-2.1.2/applications/bin/linux64GccDPOpt/foamProMesh"
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 3 in communicator MPI_COMM_WORLD
with errorcode 1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun has exited due to process rank 3 with PID 20184 on
node vumca348 exiting without calling "finalize". This may
have caused other processes in the application to be
terminated by signals sent by mpirun (as reported here).
--------------------------------------------------------------------------

do u have an idea about this error?
thank you in advance
best greetings
Monzer
Ingenieur is offline   Reply With Quote

Old   April 9, 2013, 05:20
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: try using the motorBike 2.1.x case from this page: http://code.google.com/p/bluecfd-sin...untimes202_211
It has the ability to run in serial or parallel, depending on your options.
Do not forget to edit the file "Allrun" and change "snappyHexMesh" to "foamProMesh".
__________________
wyldckat is offline   Reply With Quote

Old   April 9, 2013, 15:19
Default
  #11
Member
 
Mizo
Join Date: Jan 2013
Posts: 34
Rep Power: 13
Ingenieur is on a distinguished road
thanx Bruno for ur replay, i'll try it and tell u the results
Ingenieur is offline   Reply With Quote

Old   May 23, 2013, 11:51
Default
  #12
Member
 
Mizo
Join Date: Jan 2013
Posts: 34
Rep Power: 13
Ingenieur is on a distinguished road
Hello Bruno,

I have a question:

I generated 2 meshs for the same case (one with Star ccm+ und the another with OpenFoam), although I sat the same refinement levels for both, I got a difference number of cells (the mesh with Starccm+ generated 28 % more cells than with Openfoam)

do now any way to generate the same number of cells??

Thanx in advance

my best regards

Mizo

Last edited by Ingenieur; June 6, 2013 at 04:44.
Ingenieur is offline   Reply With Quote

Old   May 23, 2013, 19:32
Default
  #13
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Monzer,

It all depends on the kind of mesh you're trying to do on Star-CCM+. If I remember correctly, the similar method on Star-CCM+ to OpenFOAM's snappyHexMesh is the "trimmed mesh".

You didn't specify the reason why you want to do the meshes on both Star-CCM+ and on OpenFOAM, but if you want to compare solutions, then it's better to generate the mesh on OpenFOAM and export to Fluent mesh format and then import on Star-CCM+. For more information: http://openfoamwiki.net/index.php/FoamMeshToFluent

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 24, 2013, 05:01
Default
  #14
Member
 
Mizo
Join Date: Jan 2013
Posts: 34
Rep Power: 13
Ingenieur is on a distinguished road
thanx Bruno for your answer, actualy I want to compare the solution between OpenFoam and ccm+, but I will try your method

thank you again

best regards

Mizo

Last edited by Ingenieur; June 6, 2013 at 04:44.
Ingenieur is offline   Reply With Quote

Old   June 6, 2013, 04:43
Post
  #15
Member
 
Mizo
Join Date: Jan 2013
Posts: 34
Rep Power: 13
Ingenieur is on a distinguished road
hello Bruno,

I have a big problem with Layer-generation
I cann't get complet Layers on the outside surface of the car,

the layer settings are the following:

growUpPatches false;
dumpLayerQuality true;
featureAngleGrowAround 100;
featureAngleTerminate 180;
expansionRatio 1.3;
finalLayerRatio 0.4;
minThickness 0.2;
nGrow 8;
featureAngleMerge 180;
nSnap 10;
nRelaxIter 5;
nSmoothSurfaceNormals 10;
nSmoothNormals 3;
nSmoothThickness 10;
maxFaceThicknessRatio 0.5;
maxThicknessToMedialRatio 0.3;
minMedianAxisAngle 80;
nBufferCellsNoExtrude 0;
terminationStrategy 1;
nLayerIter 50;
truncateFromWall true;
growConvexEdge true;
growConcaveEdge true;
redistributeManifold true;
nLayerIter 50;
allowSharedEdgeExtrusion true;


you can see the result in the attached foto.

i will be grateful for any help

thanx in advance

Mizo
Attached Images
File Type: jpg 2.jpg (82.8 KB, 33 views)
File Type: jpg Ohne_Layer.jpg (48.1 KB, 32 views)
Ingenieur is offline   Reply With Quote

Old   June 9, 2013, 17:46
Default
  #16
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Mizo,

Sorry, unfortunately I don't know much about this topic. But I'll quote myself from yesterday:
Quote:
Originally Posted by wyldckat View Post
This tends to happen a lot with snappyHexMesh I personally end up not using layer addition by sHM and use refinement levels instead of layers.

Nonetheless, I suggest that you check the very useful presentation "A Comprehensive Tour of snappyHexMesh - 7th OpenFOAM Workshop (25 June 2012)" for more ideas: http://openfoamwiki.net/index.php/SnappyHexMesh
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[DesignModeler] DesignModeler Scripting: How to get Full Command Access ANT ANSYS Meshing & Geometry 53 February 16, 2020 16:13
On body-fitted cartesian mesh generation sbaffini Main CFD Forum 0 October 21, 2016 11:32
[snappyHexMesh] Boundary layer generation problems ivan_cozza OpenFOAM Meshing & Mesh Conversion 0 October 6, 2010 14:47
Model and Mesh generation Problems Anindya Main CFD Forum 1 May 19, 2001 03:02
Latest News in Mesh Generation Robert Schneiders Main CFD Forum 1 February 18, 2000 01:48


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