meshing a cylinder
Hello at all,
my problem is the following: i want to simulate the flow around a cylinder. therefore i used the blockMeshDict of an openfoam tutorial ( /basic/potentialFoam/cylinder). i tried to create a full cylinder out of the existing mesh. this is what i tried for my blockMeshDict: Code:
vertices Code:
zero or negative pyramid volume: -0.0441942 for face 3 Code:
From function blockMesh::createTopology(IOdictionary&) with kind regards! |
Hi Nico,
there are some problems with the numbers order in block 12 up to 19. Here is the correction: Code:
/*--------------------------------*- C++ -*----------------------------------*\ Martin |
Hi Martin,
thanks for your quick reply. Everything works now ( of course :-) ) I am just getting used to OpenFoam. Greets Nico |
Cilindro - barra redonda - blockMesh
Olá, estou tentando fazer uma barra redonda de 20 mm de diâmetro por 900 mm de comprimento no blockMesh. Até então gerou a geometria mas a malha está com problemas. Segue código abaixo.
/*--------------------------------*- 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 0.001; vertices // Origem no centro ( (0 0 0) //0 (0 0 2.5) //1 (0 0 5) //2 (0 5 0) //3 (0 2.5 0) //4 (900 0 0) //5 (900 0 2.5) //6 (900 0 5) //7 (900 5 0) //8 (900 2.5 0) //9 (0 0 -2.5) //10 (0 0 -5) //11 (900 0 -2.5) //12 (900 0 -5) //13 (0 -2.5 0) //14 (0 -5 0) //15 (900 -2.5 0) //16 (900 -5 0) //17 ); blocks ( hex (0 1 4 0 5 6 9 5) (20 20 1) simpleGrading (1 1 1) hex (1 2 3 4 6 7 8 9) (20 20 1) simpleGrading (1 1 1) hex (0 4 10 0 5 9 12 5) (20 20 1) simpleGrading (1 1 1) hex (10 4 3 11 12 9 8 13) (20 20 1) simpleGrading (1 1 1) hex (0 10 14 0 5 12 16 5) (20 20 1) simpleGrading (1 1 1) hex (10 11 15 14 12 13 17 16) (20 20 1) simpleGrading (1 1 1) hex (0 14 1 0 5 16 6 5) (20 20 1) simpleGrading (1 1 1) hex (14 15 2 1 16 17 7 6) (20 20 1) simpleGrading ( 1 1 1) ); edges ( arc 1 4 (0 1.7677 1.7677) arc 2 3 (0 3.5355 3.5355) arc 6 9 (900 1.7677 1.7677) arc 7 8 (900 3.5355 3.5355) arc 10 4 (0 1.7677 -1.7677) arc 11 3 (0 3.5355 -3.5355) arc 12 9 (900 1.7677 -1.7677) arc 13 8 (900 3.5355 -3.5355) arc 10 14 (0 -1.7677 -1.7677) arc 11 15 (0 -3.5355 -3.5355) arc 12 16 (900 -1.7677 -1.7677) arc 13 17 (900 -3.5355 -3.5355) arc 1 14 (0 -1.7677 1.7677) arc 2 15 (0 -3.5355 3.5355) arc 6 16 (900 -1.7677 1.7677) arc 7 17 (900 -3.5355 3.5355) ); boundary // Fronteira ( left { type patch; faces ( (0 1 4 0) //bloco 0 (1 2 3 4) //bloco 1 (0 4 10 0) //bloco 2 (4 3 11 10) //bloco 3 (0 10 14 0) //bloco 4 (10 11 15 14) //bloco 5 (0 14 1 0) //bloco 6 (14 15 2 1) //bloco 7 ); } right { type patch; faces ( (5 9 6 5) //bloco 0 (7 6 9 8) //bloco 1 (5 12 9 5) //bloco 2 (12 13 8 9) //bloco 3 (5 16 12 5) //bloco 4 (16 17 13 12) //bloco 5 (5 6 16 5) //bloco 6 (6 7 17 16) //bloco 7 ); } frontandback { type empty; faces ( (2 7 8 3) (11 3 8 13) (15 11 13 17) (2 15 17 7) ); } ); mergePatchPairs ( ); mergePatchPairs ( ); // ************************************************** *********************** // Quote:
|
Ola Cássio,
Podes atopar reposta á túa cuestión no seguinte enlace: https://www.cfd-online.com/Forums/op...tml#post653898 Publiqueino nun thread aparte pra que todo o mundo o poida comprender. Un saúdo |
Olá, muito Obrigado!
Descompactei o arquivo no diretório system e rodei o blockMesh e beleza, funcionou bem o 1/4 do cilindro. Só quando estou fazendo a sequência para espelhar está dando erro. Estou usando a sequência que está no arquivo blockMeshDict. Quote:
|
Certamente. Cometín un erro ao copia-los comandos no post este mediodía, mais xa o editei.
Note for other visitors: Cássio mentioned some problems regarding the generation of a cylindical rod (length=900mm and diam.=20mm) with blockMesh. The suggested solution can be found in following link: https://www.cfd-online.com/Forums/op...blockmesh.html |
All times are GMT -4. The time now is 19:06. |