CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Generating appropriate blockMeshDict File

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2017, 12:28
Angry Generating appropriate blockMeshDict File
  #1
New Member
 
Jack Hanson
Join Date: Sep 2017
Posts: 5
Rep Power: 8
jhanson2 is on a distinguished road
I'm trying to run blockmesh but I keep getting an error. the below is my error message. I don't know what i'm doing wrong. If could get another pair of eyes to look at this I would greatly appreciate it.

Actual Error Message:

"FOAM FATAL IO ERROR:
Block hex (0 1 2 3 4 5 6 7) (10 10 10) simpleGrading (1(1) 1(1) 1(1)) is inside-out

file: /home/jackhansonjr/OpenFOAM/openfoam5/tutorials/incompressible/pimpleDyMFoam/Torpedo/system/blockMeshDict.blocks at line 34.
"

blockmeshdict file:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.305;

vertices
(
(-10 -1.84 -1.84) // 0 - Left Bottom Back
(-10 -1.84 1.84) // 1 - Left Bottom Front
(-10 1.84 1.84) // 2 - Left Top Front
(-10 1.84 -1.84) // 3 - Left Top Back
(10 -1.84 -1.84) // 4 - Right Bottom Back
(10 -1.84 1.84) // 5 - Right Bottom Front
(10 1.84 1.84) // 6 - Right Top Front
(10 1.84 -1.84) // 7 - Right Top Back
);

blocks
(
hex (0 1 2 3 4 5 6 7) (10 10 10) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
topAndBottom
{
type patch;
faces
(
(3 7 6 2)
(1 5 4 0)
);
}

inlet
{
type patch;
faces
(
(0 4 7 3)
);
}

outlet
{
type patch;
faces
(
(2 6 5 1)
);
}

symFront
{
type symmetryPlane;
faces
(
(4 5 6 7)
);
}

symBack
{
type symmetryPlane;
faces
(
(0 3 2 1)
);
}
);

mergePatchPairs
(
);

// ************************************************** *********************** //
jhanson2 is offline   Reply With Quote

Old   September 24, 2017, 16:07
Default
  #2
New Member
 
Denys Wickens
Join Date: Jan 2017
Posts: 7
Rep Power: 9
DenysW is on a distinguished road
Look up blockMesh in the openFoam instructions or a Wiki, and sketch and number your vertices. You've gone clockwise when blockMesh is expecting counter-clockwise or vice-versa, or not put in the lowest face as the first four vertices. Thus you think you're fine but blockMesh thinks your shape is inside-out.
After about 5 years of using blockMesh this is still my commonest error.
DenysW is offline   Reply With Quote

Reply

Tags
beginner, blockmeshdict block mesh


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
how to calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 104 February 16, 2021 08:46
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 10:03
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 11:46


All times are GMT -4. The time now is 18:36.