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

file modification

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 28, 2013, 07:45
Default file modification
  #1
Member
 
belkadi
Join Date: May 2013
Location: France
Posts: 31
Rep Power: 4
belkadi is on a distinguished road
Dear all,

I post this message in order to obtain a help.
I'm beginners with openfoam, I've just created a mesh for a basic structure (left image in the attached file).
I'm wondering if you can help to add some features to obtain the right image of the attached file .
Here my original code for the mesh

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

convertToMeters 0.001;

vertices
(
(0 -25.4 -15)
(0 -5 -15)
(0 0 -15)
(0 3 -15)
(0 12.7 -15)
(0 25.4 -15)
(206 -25.4 -15)
(206 -8.5 -15)
(206 0 -15)
(206 6.5 -15)
(206 17 -15)
(206 25.4 -15)
(290 -16.6 -15)
(290 -6.3 -15)
(290 0 -15)
(290 4.5 -15)
(290 11 -15)
(290 16.6 -15)
(0 -25.4 15)
(0 -5 15)
(0 0 15)
(0 3 15)
(0 12.7 15)
(0 25.4 15)
(206 -25.4 15)
(206 -8.5 15)
(206 0 15)
(206 6.5 15)
(206 17 15)
(206 25.4 15)
(290 -16.6 15)
(290 -6.3 15)
(290 0 15)
(290 4.5 15)
(290 11 15)
(290 16.6 15)
);

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

edges
(
arc 0 1 (-1 3 0.0)
arc 1 2 (-1 3 0.0)
arc 2 3 (-1 3 0.0)
arc 3 4 (-1 3 0.0)
arc 4 5 (-1 3 0.0)
);

patches
(
);

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

If you have any suggestions please contact me !

Many thanks

Kind regards

Belkadi
Attached Images
File Type: jpg scheme.JPG (8.2 KB, 5 views)
belkadi is offline   Reply With Quote

Old   June 3, 2013, 14:03
Default
  #2
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
you can create a base mesh (a slice of domain), then use extrudeMesh utility at OpenFOAM to create the whole domain
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam 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 in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM 22 August 26, 2013 11:06
problem on installing swak4Foam navid2 OpenFOAM Installation 2 May 30, 2012 04:32
error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Native Meshers: blockMesh 2 March 14, 2012 10:56
1.7.x Environment Variables on Linux 10.04 rasma OpenFOAM Installation 9 July 30, 2010 04:43
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11


All times are GMT -4. The time now is 04:34.