|
[Sponsors] |
November 22, 2018, 11:38 |
Meshing a cylinder
|
#1 |
Member
ssa
Join Date: Sep 2018
Posts: 93
Rep Power: 8 |
Hi all,
I want to do a simulation of flow through pipe. I created the cylinder using blockMesh. The mesh looks different. I need an axisymmetric mesh. How to achieve this using openfoam.?? Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 4.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // convertToMeters 1; vertices ( (0.25 0 0) //0 (0 0.25 0) //1 (-0.25 0 0) //2 (0 -0.25 0) //3 (0.25 0 1) //4 (0 0.25 1) //5 (-0.25 0 1) //6 (0 -0.25 1) //7 ); blocks ( hex (0 1 2 3 4 5 6 7) (50 50 50) simpleGrading (1 1 1) ); edges ( arc 0 1 (0.17677 0.17677 0) arc 1 2 (-0.17677 0.17677 0) arc 2 3 (-0.17677 -0.17677 0) arc 3 0 (0.17677 -0.17677 0) arc 4 5 (0.17677 0.17677 1) arc 5 6 (-0.17677 0.17677 1) arc 6 7 (-0.17677 -0.17677 1) arc 7 4 (0.17677 -0.17677 1) ); boundary ( inlet { type patch; faces ( (3 2 1 0) ); } outlet { type patch; faces ( (4 5 6 7) ); } walls { type wall; faces ( (0 1 5 4) (1 2 6 5) (2 3 7 6) (3 0 4 7) ); } ); mergePatchPairs ( ); // ************************************************************************* // |
|
November 26, 2018, 06:08 |
|
#2 |
Senior Member
Zander Meiring
Join Date: Jul 2018
Posts: 125
Rep Power: 8 |
To make an axi-symmetric mesh for a cylinder in blockmesh, the best block structure to use is something like what is shown in the attached figure
|
|
November 26, 2018, 06:19 |
|
#3 |
Member
ssa
Join Date: Sep 2018
Posts: 93
Rep Power: 8 |
hi yambanshee,
I already made it using four hex blocks. Thanks for your reply. |
|
July 6, 2023, 01:17 |
|
#4 |
New Member
FOAMraj
Join Date: Apr 2021
Posts: 19
Rep Power: 5 |
Hi ssa_cfd, can you share me the blockMesh file of axisymmetric mesh in cylinder? Thank you
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] Meshing inclined cylinder with PBC tetra mesh ICEM | shashi_soman | ANSYS Meshing & Geometry | 0 | September 26, 2015 19:27 |
Meshing inclined cylinder with PBC tetra mesh ICEM | shashi_soman | Mesh Generation & Pre-Processing | 1 | September 26, 2015 19:05 |
[blockMesh] meshing a cylinder | Nico A. | OpenFOAM Meshing & Mesh Conversion | 0 | April 7, 2011 12:09 |
[snappyHexMesh] SnappyHexMesh Meshing inside a cylinder | nammari | OpenFOAM Meshing & Mesh Conversion | 5 | March 11, 2011 20:49 |
Best Meshing scheme for Cylinder | Nutrex | Main CFD Forum | 4 | July 29, 2008 12:03 |