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

Spotting errors in blockMeshDict

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

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   July 18, 2011, 04:05
Default Spotting errors in blockMeshDict
  #1
New Member
 
Rachit Prasad
Join Date: Jun 2011
Location: Blacksburg, Virginia
Posts: 29
Rep Power: 6
Rachit is on a distinguished road
Hi everyone!

I have been trying to mesh flow over the busemann's biplane.

http://en.wikipedia.org/wiki/Busemann%27s_Biplane

The blockMeshDict file I have written is as follows:

vertices
(
(-1.0 0.192 -0.01)
(-0.5 0.192 -0.01)
(0.5 0.192 -0.01)
(1.0 0.192 -0.01)
(-1.0 0.096 -0.01)
(-0.5 0.096 -0.01)
(0.5 0.096 -0.01)
(1.0 0.096 -0.01)
(0 0.0842 -0.01)
(0 -0.0842 -0.01)
(-1.0 -0.096 -0.01)
(-0.5 -0.096 -0.01)
(0.5 -0.096 -0.01)
(1.0 -0.096 -0.01)
(-1.0 -0.192 -0.01)
(-0.5 -0.192 -0.01)
(0.5 -0.192 -0.01)
(1.0 -0.192 -0.01)
(-1.0 0.192 0.01)
(-0.5 0.192 0.01)
(0.5 0.192 0.01)
(1.0 0.192 0.01)
(-1.0 0.096 0.01)
(-0.5 0.096 0.01)
(0.5 0.096 0.01)
(1.0 0.096 0.01)
(0 0.0842 0.01)
(0 -0.0842 0.01)
(-1.0 -0.096 0.01)
(-0.5 -0.096 0.01)
(0.5 -0.096 0.01)
(1.0 -0.096 0.01)
(-1.0 -0.192 0.01)
(-0.5 -0.192 0.01)
(0.5 -0.192 0.01)
(1.0 -0.192 0.01)
);

blocks
(
hex (22 23 5 4 18 19 1 0) (200 1 152) simpleGrading (1 1 1)
hex (23 24 6 5 19 20 2 1) (200 1 152) simpleGrading (1 1 1)
hex (24 25 7 6 20 21 3 2) (200 1 152) simpleGrading (1 1 1)
hex (28 29 11 10 22 23 5 4) (200 1 152) simpleGrading (1 1 1)
hex (29 27 9 11 23 26 8 5) (200 1 152) simpleGrading (1 1 1)
hex (27 30 12 9 26 24 6 8) (200 1 152) simpleGrading (1 1 1)
hex (26 8 5 23 24 6 6 24) (200 1 152) simpleGrading (1 1 1)
hex (27 9 11 29 30 12 12 30) (200 1 152) simpleGrading (1 1 1)
hex (30 31 13 12 24 25 7 6) (200 1 152) simpleGrading (1 1 1)
hex (32 33 15 14 28 29 11 10) (200 1 152) simpleGrading (1 1 1)
hex (33 34 16 15 29 30 12 11) (200 1 152) simpleGrading (1 1 1)
hex (34 35 17 16 30 31 13 12) (200 1 152) simpleGrading (1 1 1)
);

edges
(
);

patches
(

);

mergePatchPairs
(
);

However, I get an error of zero or negative pyramid volume at several faces. I do understand that probably there has been mistake on my part in defining the geometry. However, it is a tedious job going through such blockMesh files this long or even longer again and again.

Are there any other ways or techniques to spot such errors such as badly defined block or face, etc?

Thanks in advance,

Rachit
Rachit is offline   Reply With Quote

Old   July 19, 2011, 17:01
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Rachit,

If you are using OpenFOAM 2.0 with the official reader for ParaView, not just the internal one, then try the following command when inside your case folder:
Code:
paraFoam -block
This blew my mind just now... I thought this only showed the points, but when I saw the results for the tutorial "stressAnalysis/solidDisplacementFoam/plateHole"... See the image attached!! Notice that I picked the option "Wireframe" on that drop-down box on the top center-left of the window.

Best regards,
Bruno
Attached Images
File Type: jpg Screenshot-ParaView 3.10.1 64-bit.jpg (41.5 KB, 76 views)
romant likes this.
wyldckat is offline   Reply With Quote

Old   November 22, 2011, 18:01
Default
  #3
Member
 
wided
Join Date: Jul 2010
Posts: 54
Rep Power: 7
wiedangel is on a distinguished road
thank you for this option ... it is really f a big help for me. makes it easy to detect the errors
wiedangel 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
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 42 May 14, 2012 20:48
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 02:00.