//
SetFactory("OpenCASCADE");
a = 12.5; // cube half-length (cm)
b = 1.0; // source sheet
lc = a/12.5; // element characteristic length
Mesh.CharacteristicLengthMin = lc;
Mesh.CharacteristicLengthMax = lc;
Box (1) = {-(a+b), -a, -a, b, 2*a, 2*a};
Box (2) = {-a, -a, -a, 2*a, 2*a, 2*a};
Physical Surface("external") = {3,4,5,6,9,10,11,12,8};
Physical Surface("source_mirror") = {1};
Physical Surface("interface") = {2, 7};
Physical Volume("source") = {1};
Physical Volume("moderator") = {2};
Mesh.Optimize = 1;
Mesh.OptimizeNetgen = 0;
Mesh.Algorithm = 6;
// (1=MeshAdapt, 2=Automatic, 5=Delaunay, 6=Frontal, 7=BAMG, 8=DelQuad)
Mesh.Algorithm3D = 4;
// (1=Delaunay, 4=Frontal, 5=Frontal Delaunay, 6=Frontal Hex, 7=MMG3D, 9=R-tree)