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/)
-   -   [blockMesh] not able to arrange the arc 12 13 (https://www.cfd-online.com/Forums/openfoam-meshing/99099-not-able-arrange-arc-12-13-a.html)

Angelo2000 March 26, 2012 09:09

not able to arrange the arc 12 13
 
hello, I have a problem in the grid below, I am not able to arrange the arc 12 13, q may have something wrong before I am not able to check more.

thank you

http://img703.imageshack.us/img703/4125/problemxf.png


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

convertToMeters 1;

vertices
(
(0 0 0) // 0
(0 0 -1) // 1
(0 1 -1) // 2
(0 1 0) // 3
(10 0 0) // 4
(10 0 -1) // 5
(10 1 -1) // 6
(10 1 0) // 7

(0 -0.5 0.5) // 8
(0 1.5 0.5) // 9
(10 1.5 0.5) // 10
(10 -0.5 0.5) // 11

(0 -0.5 -1.5) // 12
(0 1.5 -1.5) // 13
(10 1.5 -1.5) // 14
(10 -0.5 -1.5) // 15

(0 -1 1) // 16
(0 2 1) // 17
(10 2 1) //18
(10 -1 1) //19

(0 -1 -2) //20
(0 2 -2) //21
(10 2 -2) //22
(10 -1 -2) //23

);

blocks
(
hex (0 1 2 3 4 5 6 7) (5 5 5) simpleGrading (1 1 1)

hex (0 3 9 8 4 7 10 11) (5 5 5) simpleGrading (1 1 1)

hex (1 12 13 2 5 15 14 6) (5 5 5) simpleGrading (1 1 1)

hex (2 13 9 3 6 14 10 7) (5 5 5) simpleGrading (1 1 1)

hex (1 0 8 12 5 4 11 15) (5 5 5) simpleGrading (1 1 1)




);

edges
(

arc 0 1 (0 1.414214 -1)
arc 1 2 (0 1 1.414214)
arc 2 3 (0 -1.414214 1)
arc 3 0 (0 1 -1.414214)

arc 4 5 (10 1.414214 -1)
arc 5 6 (10 1 1.414214)
arc 6 7 (10 -1.414214 1)
arc 7 4 (10 -1 -1.414214)

arc 8 12 (0 -0.707107 -1)
arc 12 13 (0 1 0.707107)
arc 13 9 (0 0.707107 1)
arc 9 8 (0 1 0.707107)

arc 11 15 (10 -0.707107 -1)
arc 15 14 (10 1 0.707107)
arc 14 10 (10 0.707107 1)
arc 10 11 (10 1 0.707107)




);

boundary
(
inlet
{
type patch;
faces
(


);
}
outlet
{
type patch;
faces
(


);
}
fixedWalls
{
type wall;
faces
(

);
}
frontAndBack
{
type empty;
faces
(

);
}
);

mergePatchPairs
(
);

// ************************************************** *********************** //

santos March 26, 2012 10:43

Hi Angelo,

Based on you figure, I would say you have inconsitent vertices and/or blocks.

Please double-check them.

Jose

Angelo2000 March 26, 2012 12:38

Quote:

Originally Posted by santos (Post 351540)
Hi Angelo,

Based on you figure, I would say you have inconsitent vertices and/or blocks.

Please double-check them.

Jose

Hello Jose, thanks for help, I already took a look, but I can not identify the errors, you could help.

thank you

Angelo

anon_a March 27, 2012 19:14

arc 3 0 (0 -1 -1.414214)
arc 12 13 (0 1 x)
arc 15 14 (10 1 x)

where x about equal to -1.6 (from testing, no time to check the exact geometrical value, you should do that)

Angelo2000 April 2, 2012 09:40

http://www.cfd-online.com/Forums/%3C.../cilindro2.pnghttp://imageshack.us/photo/my-images/39/cilindro2.png

Hello we managed to get the mesh, the more checkMesh says that the mesh is not orthogonal, can someone help with this part.

The mesh is below.

Thank you.

Angelo

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

convertToMeters 1;

vertices
(
(0 0 0) // 0
(0 0 -1) // 1
(0 1 -1) // 2
(0 1 0) // 3
(20 0 0) // 4
(20 0 -1) // 5
(20 1 -1) // 6
(20 1 0) // 7

(0 -0.5 0.5) // 8
(0 1.5 0.5) // 9
(20 1.5 0.5) // 10
(20 -0.5 0.5) // 11

(0 -0.5 -1.5) // 12
(0 1.5 -1.5) // 13
(20 1.5 -1.5) // 14
(20 -0.5 -1.5) // 15

);

blocks
(
hex (0 1 2 3 4 5 6 7) (5 5 5) simpleGrading (1 1 1)

hex (0 3 9 8 4 7 10 11) (5 5 5) simpleGrading (1 1 1)

hex (1 12 13 2 5 15 14 6) (5 5 5) simpleGrading (1 1 1)

hex (2 13 9 3 6 14 10 7) (5 5 5) simpleGrading (1 1 1)

hex (1 0 8 12 5 4 11 15) (5 5 5) simpleGrading (1 1 1)




);

edges
(

arc 0 1 (0 3 -1)
arc 1 2 (0 1 3)
arc 2 3 (0 -3 1)
arc 3 0 (0 -1 -3)

arc 4 5 (20 3 -1)
arc 5 6 (20 1 3)
arc 6 7 (20 -3 1)
arc 7 4 (20 -1 -3)

arc 8 12 (0 -0.8 -1)
arc 13 12 (0 -1 -0.8)
arc 13 9 (0 0.8 1)
arc 9 8 (0 -1 -0.8)

arc 11 15 (20 -0.8 -1)
arc 14 15 (20 -1 -0.8)
arc 14 10 (20 0.8 1)
arc 10 11 (20 -1 -0.8)


);

boundary
(
inlet
{
type patch;
faces
(
(0 1 2 3)
(0 3 9 8)
(1 12 13 2)
(2 13 9 3)
(1 0 8 12)

);
}
outlet
{
type patch;
faces
(
(4 5 6 7)
(4 7 10 11)
(5 15 14 6)
(6 14 10 7)
(5 4 11 15)

);
}
fixedWalls
{
type wall;
faces
(
(8 9 10 11)
(12 13 14 15)

);
}
frontAndBack
{
type empty;
faces
(
(9 13 14 10)
(8 12 15 11)

);
}
);

mergePatchPairs
(
);

// ************************************************** *********************** //
http://imageshack.us/photo/my-images/94/cilindro2.png/http://imageshack.us/photo/my-images/39/cilindro2.png
http://imageshack.us/photo/my-images/94/cilindro2.png/

http://imageshack.us/photo/my-images/94/cilindro2.png/

kid April 3, 2012 08:22

Friend,
Try using salomne tool to generate geometry save it in STL.binary and import that using discritizer tool and set up your case using it. Both Salomne and Discritizer are free tools ( OS linux).

Sorry, but could not help your issue directly.
Regards
CFDkid

Angelo2000 April 3, 2012 08:33

Quote:

Originally Posted by kid (Post 352891)
Friend,
Try using salomne tool to generate geometry save it in STL.binary and import that using discritizer tool and set up your case using it. Both Salomne and Discritizer are free tools ( OS linux).

Sorry, but could not help your issue directly.
Regards
CFDkid


Hello and thanks for helping, I have a friend who is already using more discritizer my teacher wants you to do in blockMesh.

how do you import the STL file OpenFoam? you can do a step by step?

Angelo

lovecraft22 April 3, 2012 08:40

I think this discussion goes against any forum rules… even if anybody was willing to help you, nobody can probably understand what's going on here…

Did you manage to get your mesh? Probably yes, but you're saying checkmesh is reporting some errors (or maybe just warning), so, why don't you post your errors instead of your blockmesh?

kid April 4, 2012 00:22

hello craft,
What you said is right, one needs to post error or warning message of OpenFOAM.
Also this is high time to bring to notice these facts given at bottom of this thread.

http://www.cfd-online.com/Forums/ope...-get-help.html

Another matter i would like to get informed about is that, should we discuss use of Salome, Discritizer ?
As these tools help to abstract some of the complications and once problem is set we are free to work in OpenFOAM.

regards,
CFDkid


All times are GMT -4. The time now is 12:27.