|
[Sponsors] |
July 15, 2015, 20:51 |
face normal direction of a wedge
|
#1 |
New Member
Join Date: Jul 2015
Posts: 7
Rep Power: 11 |
I tried to create a wedge for a axial symmetrical problem. This figure is the geometry. Following is my blockMeshDict file. According to the user guide, the normal direction of any boundary face should point to outside of the computational zone. So I defined all the faces in this way. Error messages popped out when I run blockMesh, saying outlet and axi_symm-r don't have neighbor cell faces. I found that if I change the vertices in the reversed order (the quoted lines) I can generate the mesh successfully. But in this case, the normal directions of these two faces are actually pointing into the computational zone. I wonder what is wrong. Thanks convertToMeters 1; vertices ( (0 0 0) //0 (8 0 0) //1 (0 -0.0034905 0.099985) //2 (8 -0.0034905 0.099985) //3 (8 0.0034905 0.099985) //4 (0 0.0034905 0.099985) //5 ); blocks ( hex (0 1 1 0 2 3 4 5) (100 1 20) simpleGrading ( 1 1 ( (0.5 0.5 4) (0.5 0.5 0.25) ) ) ); edges ( arc 2 5 (0 0 0.1) arc 3 4 (8 0 0.1) ); patches ( patch inlet ( (0 2 5 0) ) patch outlet ( // (1 3 4 1) (1 4 3 1) ) wedge axi_symm-f ( (0 1 3 2) ) wedge axi_symm-r ( // (0 1 4 5) (0 5 4 1) ) wall wall ( (2 3 4 5) ) ); mergePatchPairs ( ); // ************************************************** *********************** // |
|
July 16, 2015, 05:48 |
|
#2 |
Member
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11 |
Hi popo, or kaka or whatever (I hope you aren't german )
You made an fault by defining your block. If you want to let collapse some points to create a prism... don't let the first 4 collapse, as they are used to define your local coordinate system of the block. I hope it helps regards Alex
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
July 16, 2015, 14:39 |
|
#3 | |
New Member
Join Date: Jul 2015
Posts: 7
Rep Power: 11 |
Thanks for the response.
I changed the geometry. So now it is like: Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.4.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // convertToMeters 0.01; vertices ( (-0.008026884 0 -1) //0 (0.008026884 0 -1) //1 (0.008026884 8.8 -1) //2 (-0.008026884 8.8 -1) //3 (0 0 0) //4 (0 8.8 0) //5 ); blocks ( hex (0 1 2 3 4 5 5 4) (1 100 20) simpleGrading ( 1 1 ( (0.5 0.5 4) (0.5 0.5 0.25) ) ) ); edges ( ); patches ( patch inlet ( (4 0 1 4) ) patch outlet ( (2 3 5 5) ) wedge axi_symm-f ( (1 2 5 4) ) wedge axi_symm-r ( (0 4 5 3) ) wall wall ( (0 3 2 1) ) ); mergePatchPairs ( ); // ************************************************************************* // --> FOAM FATAL ERROR: face 0 in patch 0 does not have neighbour cell face: 4(4 0 1 4) Quote:
|
||
July 16, 2015, 15:39 |
|
#4 | |
New Member
Join Date: Jul 2015
Posts: 7
Rep Power: 11 |
I didn't find it in the user guide. But does the symmetrical axis need to be one of the coordinate axis?
thanks Quote:
|
||
July 16, 2015, 18:23 |
|
#5 |
Member
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11 |
hmmm, looks good so far...
but I am not sure about your multi-grading-thing... never done that... I hope you are sure that there is no error. Furthermore I always rather describe the boundary than the patches. like here http://cfd.direct/openfoam/user-guide/blockmesh/ see under 5.3.1.5 The boundary I hope it helps Edit: Another possible error could be that you haven't defined the empty patch (4 5 5 4) . But I don't know it refers to the error message.
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
July 17, 2015, 11:45 |
|
#6 | |
New Member
Join Date: Jul 2015
Posts: 7
Rep Power: 11 |
I found this example:
https://openfoamwiki.net/index.php/M...s/AxiSymmetric But even in this case, the normal direction of the outlet is pointing to the computational domain. I am really confused... Quote:
|
||
July 17, 2015, 16:47 |
|
#7 | |
Member
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11 |
the rule to set the boundary is defined in the users guide as
Quote:
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
||
July 17, 2015, 17:30 |
|
#8 |
New Member
Join Date: Jul 2015
Posts: 7
Rep Power: 11 |
||
July 19, 2015, 14:13 |
|
#9 |
Member
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11 |
sorry, but I am at my wits end.
Have you defined the empty face?
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
July 20, 2015, 12:29 |
|
#10 |
New Member
Join Date: Jul 2015
Posts: 7
Rep Power: 11 |
I tried that as well.
Thanks for your help anyway |
|
July 20, 2015, 16:44 |
|
#11 |
Member
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11 |
there is no try... do it
I wanted to say that it's necessary to define the collapsed face explicitly. (as I read it in the guide) And one thing I wanted to say at first when I saw your dict (but I forgot it) : I think you have to write: Code:
inlet { type patch; faces ( (4 0 1 4) ); } Code:
patch inlet ( (4 0 1 4) )
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
July 30, 2015, 18:36 |
|
#12 | |
New Member
Join Date: Jul 2015
Posts: 7
Rep Power: 11 |
I did.
Take a look at this example: https://openfoamwiki.net/index.php/M...s/AxiSymmetric The normal direction of the outlet is in the "wrong direction". If you change that, the case won't work. Everything else you mentioned was in this case. The empty face. The way of defining faces for the new version of openFOAM Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to set periodic boundary conditions | Ganesh | FLUENT | 15 | November 18, 2020 07:09 |
how to get Face Normal vector and Face Center ? | kk415 | OpenFOAM Programming & Development | 1 | July 11, 2018 07:21 |
Exporting Face Normal of a patch and some other values | fredo490 | OpenFOAM Post-Processing | 7 | May 9, 2016 19:28 |
[snappyHexMesh] determining displacement for added points | CFDnewbie147 | OpenFOAM Meshing & Mesh Conversion | 1 | October 22, 2013 10:53 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |