Hello i am trying to define the periodicity on a side composed of the side of a cube plus a side of a quarter sphere.
I firstly mesh the geometry with Gmsh and read it with FreeFem++ and I get this error:
read mesh ok 0Mesh3, num Tetra:= 1895, num Vertice:= 528 num boundary Triangles:= 970
Mesh3::meshS, num Triangles:= 970, num Vertice:= 461 num boundary Edges:= 161
— Warning manifold obj nb:72 adj 72 of dim =2
– Mesh3 : cubesphere0063.mesh, space dimension 3, num Tetrahedron elts 1895, num Vertice 528 num Bordary elts 970
– Mesh3:MeshS : cubesphere0063.mesh, space dimension 3, num Triangle elts 970, num Vertice 461 num Bordary elts 161
vertex : 409 -0.741661 -0.323528 -1 44 Abscisses: s = -0.741661 -0.323528 11 29
current line = 42
Exec error : periodic: Sorry one vertex of face is losted
– number :1
Exec error : periodic: Sorry one vertex of face is losted
– number :1
there is the code Gmsh:
‘’’
r=0.5;
h=0.1;
SetFactory(‘OpenCASCADE’);
Box(1) = {-1.0,-1.0,-1.0, 2, 2, 2};
Sphere(2) = {1,1,1, 0.5};
BooleanIntersection{ Volume{1}; }{Volume{2}; Delete;}
BooleanFragments{ Volume{1,2}; Delete; }{}
boundS45[] = Boundary{Surface 45;};
boundS40[] = Boundary{Surface 40;};
boundS19[] = Boundary{Surface 19;};
boundS29[] = Boundary{Surface 29;};
boundS23[] = Boundary{Surface 23;};
boundS9[] = Boundary{Surface 9;};
boundS11[] = Boundary{Surface 11;};
boundS37[] = Boundary{Surface 37;};
boundS15[] = Boundary{Surface 15;};
boundS32[] = Boundary{Surface 32;};
Periodic Surface 45 {boundS45[]} = 40 {boundS40[]};
Periodic Surface 19 {boundS19[]} = 29 {boundS29[]};
Periodic Surface 23 {boundS23[]} = 9 {boundS9[]};
Periodic Surface 11 {boundS11[]} = 37 {boundS37[]};
Periodic Surface 15 {boundS15[]} = 32 {boundS32[]};
Characteristic Length{ PointsOf{ Volume{11}; } } = h;
Characteristic Length{ PointsOf{ Volume{2}; } } = h;
Characteristic Length{ PointsOf{ Volume{3}; } } = h;
‘’’
and on the code FreeFem++ i add:
mesh3 Th = readmesh3(“cubesphere0063.mesh”);
fespace Vh(Th, P2,periodic=[[19,y,z],[29,y,z],[23,y,z],[9,y,z],[11,y,z],[37,y,z],[15,y,z],[32,y,z] ]);
thank you in advance for you response.