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

[snappyHexMesh] nCellsBetweenLevels problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 28, 2013, 19:39
Default nCellsBetweenLevels problem
  #1
Member
 
laurentL
Join Date: Oct 2011
Location: new caledonia
Posts: 73
Rep Power: 14
laurent98 is on a distinguished road
hello Foamers,
i want to mesh a air-foil in 2d, i specify nCellsBetweenLevels 9 but SHM doesn't do it...
i can't find the reason, any ideas ???
laurent98 is offline   Reply With Quote

Old   April 9, 2013, 01:08
Default
  #2
Member
 
laurentL
Join Date: Oct 2011
Location: new caledonia
Posts: 73
Rep Power: 14
laurent98 is on a distinguished road
hi to all,
i have found the problem, it seems that SHM does'nt like non cubic cells! my blockmesh wasn't thick enough.
then, i play a little with featureAngle to obtain Layers... difficult in 3D and quiet stupid because the mesh will be extrude for 2D solving. so i try this trick
make a first SHM with only castelaned true
then extrude
then a second SHM to snap and add layer
here the shell script;

#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions


# Make 3D mesh only castellated slab of cells.
cd wingMotion_snappyHexMesh1
runApplication blockMesh
cp system/snappyHexMeshDict_init system/snappyHexMeshDict;
runApplication snappyHexMesh; #-overwrite
cp system/snappyHexMeshDict2 system/snappyHexMeshDict
runApplication extrudeMesh
rm log.snappyHexMesh;
rm -r 1

runApplication snappyHexMesh;

# Make a 2D mesh by extruding a patch and solve to steady state.
#cd ../wingMotion2D_simpleFoam1
#runApplication extrudeMesh
#runApplication createPatch -overwrite
#runApplication simpleFoam




# ----------------------------------------------------------------- end-of-file




my problem now is that simpleFoam doesn t work well because a "empty group" appear ....
to learn OF i fill that a lot of perseverance is needed... any help will be very welcome...
LL
Attached Images
File Type: jpg Screenshot at 2013-04-04 04:15:14.jpg (94.1 KB, 87 views)
laurent98 is offline   Reply With Quote

Old   April 11, 2013, 19:51
Default solved
  #3
Member
 
laurentL
Join Date: Oct 2011
Location: new caledonia
Posts: 73
Rep Power: 14
laurent98 is on a distinguished road
Hi
I send that just for information in case of someone got the same problem.
I just pass from OF 2.1 to 2.2
and to solve the problem i had just to change "mirror" to "empty" into the include files
lost of fun, with OF !!! LL
laurent98 is offline   Reply With Quote

Reply

Tags
ncellsbetweenlevels


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
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 14:52


All times are GMT -4. The time now is 11:10.