CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

SnappyHexmesh error

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 12, 2013, 07:53
Default SnappyHexmesh error
  #1
New Member
 
yi Wang
Join Date: Feb 2011
Posts: 15
Rep Power: 6
yiwang25 is on a distinguished road
Hi, foamers:

Firstly, I used SnappyHexmeshDict to refine mesh and remove a small cylinder. And then I used toposet to define some faces. Allrun is:
#!/bin/sh
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Set application name
application=`getApplication`
rm -rf constant/polyMesh/*.gz
rm -rf constant/polyMesh/sets
rm -rf 0/polyMesh
rm -rf 0/*.gz
rm -f log.blockMesh
runApplication blockMesh
rm -f log.snappyHexMesh
runApplication snappyHexMesh -overwrite
rm -f log.topoSet
runApplication topoSet
rm -f log.createPatch
runApplication createPatch -overwrite


when I decompose, the errors occured as follows


........
Processor 31
Number of cells = 46723
Number of faces shared with processor 27 = 657
Number of faces shared with processor 29 = 1870
Number of faces shared with processor 30 = 1855
Number of processor patches = 3
Number of processor faces = 4382
Number of boundary faces = 4368
Number of processor faces = 86026
Max number of cells = 46723 (0.0131109% above average 46716.9)
Max number of processor patches = 6 (11.6279% above average 5.375)
Max number of faces between processors = 5875 (9.26929% above average 5376.62)
Time = 0

--> FOAM FATAL IO ERROR:
size 75000 is not equal to the given value of 67500
file: /home/ku47897/OpenFOAM/chjwang/fire/two_fuel/fireswirl/temp2/0/ccz::boundaryField::sides from line 1497479 to line 1497480.
From function Field<Type>::Field(const word& keyword, const dictionary&, const label)
in file /home/ku47897/OpenFOAM/OpenFOAM-2.1.y/src/OpenFOAM/lnInclude/Field.C at line 236.


would you like to tell me what is the problem? How to recitfy it?
Attached are the files including blockmeshdict, toposetdict, createPatchdict, snappyhexdict, Allrun.

Thanks

yiwang25
Attached Files
File Type: gz snappyHex.gz (4.8 KB, 4 views)
yiwang25 is offline   Reply With Quote

Old   June 12, 2013, 09:09
Default
  #2
Senior Member
 
Join Date: Mar 2010
Location: Germany
Posts: 117
Rep Power: 7
cutter is on a distinguished road
I might be wrong but I believe is this due to the presence of an old mesh with a different number of cells. Try to delete the old mesh (not the input files as blockMeshDict etc.; make a backup first!!!) and start your meshing script again.

Cutter
cutter is offline   Reply With Quote

Old   June 12, 2013, 10:28
Default
  #3
New Member
 
yi Wang
Join Date: Feb 2011
Posts: 15
Rep Power: 6
yiwang25 is on a distinguished road
Hi, Cutter, Thank you.
But I have done this many time. Cleaned all files every time and started again.
This problem is still there.

yiwang25
yiwang25 is offline   Reply With Quote

Old   June 16, 2013, 16:07
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

@ yiwang25: Run this command:
Code:
rm 0/cc*
It will remove the files "ccx", "ccy" and "ccz", which are created by snappyHexMesh, if I'm not mistaken, and are useless unless you want to do some debugging.

Best regards,
Bruno
wyldckat 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
GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM 300 October 29, 2014 19:00
c++ libraries and solver compiling vaina74 OpenFOAM Installation 13 February 3, 2012 18:43
Saving ParaFoam views and case sail OpenFOAM Paraview & paraFoam 9 November 25, 2011 16:46
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51
user defined function cfduser CFX 0 April 29, 2006 10:58


All times are GMT -4. The time now is 12:25.