CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Other] file modification (https://www.cfd-online.com/Forums/openfoam-meshing/118462-file-modification.html)

belkadi May 28, 2013 07:45

file modification
 
1 Attachment(s)
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

nimasam June 3, 2013 14:03

you can create a base mesh ;)(a slice of domain), then use extrudeMesh utility at OpenFOAM to create the whole domain :D


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