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

[blockMesh] Please helpme with this problem

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By arezayan87
  • 1 Post By John Philip

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 24, 2024, 06:43
Default Please helpme with this problem
  #1
New Member
 
John Philip
Join Date: Mar 2024
Posts: 2
Rep Power: 0
John Philip is on a distinguished road
Below is my code
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2312 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

scale 1;

vertices
(
(0 0 0) //0
(10 0 0) //1
(14 0 0) //2
(24 0 0) //3
(24 4 0) //4
(0 4 0) //5
(0 0 1) //6
(10 0 1) //7
(14 0 1) //8
(24 0 1) //9
(24 4 1) //10
(0 4 1) //11

);

blocks
(
//hex (0 1 2 3 4 5 6 7 8 9 10, 11) (20 20 1) simpleGrading (1 1 1)
);

edges
( arc 1 2 (12 2 0)
arc 7 8 (12 2 1)
);

boundary
(
/*movingWall
{
type wall;
faces
(
(3 7 6 2)
);
}
fixedWalls
{
type wall;
faces
(
(0 4 7 3)
(2 6 5 1)
(1 5 4 0)
);
}
frontAndBack
{
type empty;
faces
(
(0 3 2 1)
(4 5 6 7)
);
} */
);


// ************************************************** *********************** //
Attached Images
File Type: jpg Picture2.jpg (36.7 KB, 10 views)
John Philip is online now   Reply With Quote

Old   March 24, 2024, 14:19
Default check your vertex locations
  #2
New Member
 
Amirreza
Join Date: Mar 2020
Posts: 17
Rep Power: 6
arezayan87 is on a distinguished road
Hi dear

Your blockMeshDict file is not correct and lots of errors exist. I solved the errors and generate your desired geometry but the boundaries and spacing might not be ideal and you should revise them based on your problem.

The attachment can be implemented correctly but as I mentioned before, boundaries should be defined properly.

best regards
Amirreza
Attached Files
File Type: zip blockMeshDict.zip (767 Bytes, 2 views)
John Philip likes this.
arezayan87 is offline   Reply With Quote

Old   March 25, 2024, 03:54
Default Thank you
  #3
New Member
 
John Philip
Join Date: Mar 2024
Posts: 2
Rep Power: 0
John Philip is on a distinguished road
Thank you
arezayan87 likes this.
John Philip is online now   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
SU2-7.0.1 on ubuntu 18.04 hyunko SU2 Installation 7 March 16, 2020 04:37
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


All times are GMT -4. The time now is 06:48.