refine specific volumes after boolean operation
Hello. I am using GMSH to generate conformal meshes for FSI simulations. I have two volumes cylinder1 and cylinder2. I perform boolean fragment operation to get a conformal mesh as shown, (green volume is intentionally made thinner, so that it is close to my actual case)
Here is my .geo script,
// Gmsh project created on Thu Oct 12 14:09:03 2023
SetFactory("OpenCASCADE");
//+
Cylinder(1) = {0, 0, 0, 5, 0, 0, 0.5, 2*Pi};
//+
Cylinder(2) = {0.2, -0, 0, 4.8, 0, 0, 0.4, 2*Pi};i};
//+
BooleanFragments{ Volume{1}; Delete; }{ Volume{2}; Delete; }
//+
Mesh.AngleToleranceFacetOverlap = 0.1;
I would like to get a mesh that has more elements on the thin volume (in green). Can someone help me how to do this?
I have tried following,
// Gmsh project created on Thu Oct 12 14:09:03 2023
SetFactory("OpenCASCADE");
//+
Cylinder(1) = {0, 0, 0, 5, 0, 0, 0.5, 2*Pi};
//+
Cylinder(2) = {0.2, -0, 0, 4.8, 0, 0, 0.4, 2*Pi};i};
//+
BooleanFragments{ Volume{1}; Delete; }{ Volume{2}; Delete; }
//+
Mesh.AngleToleranceFacetOverlap = 0.1;
//+
pts_vol[] = PointsOf{Volume{3};};
//+
Characteristic Length{pts_vol[]} = 0.01;
The above code resulted in following, (refined all over). But i would like the refinement to be only in green colored volume.
My actual case involves very complex geometries, but is very similar problem I describe here.