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

[Other] file modification

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 28, 2013, 08:45
Default file modification
  #1
Member
 
belkadi
Join Date: May 2013
Location: France
Posts: 31
Rep Power: 12
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, 15:03
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
you can create a base mesh (a slice of domain), then use extrudeMesh utility at OpenFOAM to create the whole domain
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 07:47
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23


All times are GMT -4. The time now is 15:37.