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

[blockMesh] Trouble using blockMesh for axisymmetric geometry

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 8, 2016, 20:41
Default Trouble using blockMesh for axisymmetric geometry
  #1
New Member
 
Tommy Mello
Join Date: Mar 2015
Posts: 17
Rep Power: 11
twinturbotom is on a distinguished road
All,
I'm having trouble using blockMesh for a simple axisymetric geometry. I have collapsed two edges per User Guide 5.3.3. I also rotated the geometry to straddle the XY plane. I am unable to generate a single cell thickness as shown in the image. Please note the angle here is set to 45 degrees for easy viewing, the issue shows up when a small angle is used (<5 degrees).

I am able to create an axisymmetric mesh using the Main ContribEample. However, my geometry should be along X and I prefer the vertex numbering from the user manual.

Where am I going wrong here? I am obviously missing something important when collapsing edges for an axisymmetric blockMesh.

Thanks!


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

convertToMeters 1;
 
vertices
(

    (0 0 0)
    (1.1 0 0)
    (1.1 0.095 -0.095)
    (0 0.095 -0.095)
    (0 0.095 0.095)
    (1.1 0.095 0.095)

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

edges
(
);

boundary
(

);

mergePatchPairs
(
);

// ************************************************************************* //
twinturbotom is offline   Reply With Quote

Old   February 8, 2016, 20:59
Default
  #2
New Member
 
Tommy Mello
Join Date: Mar 2015
Posts: 17
Rep Power: 11
twinturbotom is on a distinguished road
The issue is in the vertex numbering which influences the local coordinate system used by blockMesh.

The vertex numbers should be changed such that x3 (referenced below) of the local coordinate system is in the direction of the unit cell and not as shown in the user manual 5.3.3.



Code:
The local coordinate system is defined by the order in which the vertices are presented in the block definition according to:

the axis origin is the first entry in the block definition, vertex 0 in our example;
the x1 direction is described by moving from vertex 0 to vertex 1;
the x2 direction is described by moving from vertex 1 to vertex 2;
vertices 0, 1, 2, 3 define the plane x3 = 0;
vertex 4 is found by moving from vertex 0 in the x3 direction;
vertices 5,6 and 7 are similarly found by moving in the x3 direction from vertices 1,2 and 3 respectively.
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;
 
vertices
(

    (0 0 0)
    (1.1 0 0)
    (1.1 0.095 -0.09499999999999999)
    (0 0.095 -0.09499999999999999)
    (0 0.095 0.09499999999999999)
    (1.1 0.095 0.09499999999999999)

);
 
blocks
(
hex (0 4 3 0 1 5 2 1) (20 1 40) simpleGrading (1 1 1)
);

edges
(
);

boundary
(

);

mergePatchPairs
(
);

// ************************************************************************* //
twinturbotom is offline   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
[blockMesh] tutorial 2.2 Stress(...) trouble with blockMesh colinB OpenFOAM Meshing & Mesh Conversion 8 January 22, 2012 10:32
Problem Importing Geometry ProE to CFX fatb0y CFX 3 January 14, 2012 19:42
[snappyHexMesh] stl geometry trouble vaina74 OpenFOAM Meshing & Mesh Conversion 1 December 7, 2010 05:11
[blockMesh] Trouble with blockMesh kupiainen OpenFOAM Meshing & Mesh Conversion 40 January 10, 2009 17:44
BlockMesh trouble r2d2 OpenFOAM Pre-Processing 2 January 16, 2006 09:51


All times are GMT -4. The time now is 07:24.