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/)
-   -   [Gmsh] Rotate and duplicate mesh! (https://www.cfd-online.com/Forums/openfoam-meshing/209983-rotate-duplicate-mesh.html)

tareqkh October 25, 2018 00:40

Rotate and duplicate mesh!
 
Hi All,

I would like to rotate and duplicate some surfaces retaining the
structured mesh created like ICEM in Ansys.
I tried to use:

Quote:

Geometry.CopyMeshingMethod = 1;
before the rotate{ duplicate..} command, but I got this error
message:

Quote:

'Only automatic transfinite surface specifications can be copied'
and then when I try to do the mesh this error:

'Surface 8 is transfinite but has 5 corners'

Here my .geo file:

Quote:

//Geometry.CopyMeshingMethod = 1;
Point(1) = {0,0,0,0.1};
Point(2) = {1,0,0,0.1};
Point(3) = {0,1,0,0.1};
Point(4) = {3,0,0,0.1};
Point(5) = {3,3,0,0.1};
Point(6) = {0,3,0,0.1};
Line(1) = {3,6};
Line(2) = {6,5};
Line(3) = {5,4};
Line(4) = {4,2};
Circle(5) = {2,1,3};
Line Loop(6) = {3,4,5,1,2};
Plane Surface(7) = {6};
Transfinite Line {1} = 40 Using Progression 1.2;
Transfinite Line {4} = 40 Using Progression 1./1.2;
Transfinite Line {3,2} = 20;
Transfinite Line {5} = 39;
Transfinite Surface {7} = {3,6,4,2};
Recombine Surface {7};
Rotate {{0, 1, 0}, {0, 0, 0}, Pi} {
Duplicata{ Surface{7};}
}
//Geometry.CopyMeshingMethod = 1;
Extrude {0, 0, 0.1} {
Surface{7,8};
Layers{1};
Recombine;
}
Is there any solution to this problem! Or do I need to transfinite each surface manually! Thanks for your help!

sabuj December 23, 2019 13:01

Did you find a solution to this?


All times are GMT -4. The time now is 15:34.