Mirror sphere mesh
Hello,
I have the following script to create a quarter sphere:
r = 1;
dr = 0.01;
nThetaElements = 40;
nPhiElements = 10;
Point(1) = {0.0,0.0,0.0,1.0};
Point(2) = {r+dr,0.0,0.0,1.0};
Point(3) = {0,r+dr,0.0,1.0};
Circle(1) = {2,1,3};
Point(4) = {0.0,0.0,0.0,1.0};
Point(5) = {r-dr,0.0,0.0,1.0};
Point(6) = {0,r-dr,0.0,1.0};
Circle(2) = {5,4,6};
Line(3) = {5, 2};
Line(4) = {6, 3};
Curve Loop(1) = {2, 4, -1, -3};
Surface(1) = {1};
Transfinite Curve {1, 2} = nThetaElements+1 Using Progression 1;
Transfinite Curve {4, 3} = 1 Using Progression 1;
Transfinite Surface {1};
Recombine Surface {1};
Extrude {{0, 1, 0}, {0, 0, 0}, Pi/2} {
Surface{1}; Layers{nPhiElements}; Recombine;
}
Extrude {{0, 1, 0}, {0, 0, 0}, Pi/2} {
Surface{21}; Layers{nPhiElements}; Recombine;
}
I would like to mirror the mesh along the x-z plane but don't know how to do this. Can anyone give me a hand with this?
Kind regards