[Gmsh] Refinement mesh of specific entities within volume
Sabrina Zacarias
szacarias at ikp.tu-darmstadt.de
Wed Dec 4 15:52:48 CET 2019
Dear gmsh team,
I Have a surface (which is a tube) embedded in a volume (a cylinder), and I have two questions regarding the meshing:
1. Is it possible/is there an easy way to define a finer mesh for the surface than for the volume?
2. I would also like a finer mesh in the surroundings of the surface. I explored the field Distance+threshold combination, but I was not able to make it work, yet. Is there a better way?
Here a test code I was using:
e1 = newl; Circle(e1) = {0, 0,0 , 109, 0, 2*Pi};
out[]=Extrude {0, 0, 10} { Curve{e1}; }; //+
Cylinder(1) = {0, 0, -10, 0, 0, 30, 120, 2*Pi};
els1=out[1];
Surface{els1} In Volume{1};
lc=1;
Field[1] = Distance;
Field[1].NNodesByEdge = 100;
Field[1].EdgesList = {1,2,3};
Field[2] = Threshold;
Field[2].IField = 1;
Field[2].LcMin = lc / 100;
Field[2].LcMax = lc;
Field[2].DistMin = 1.;
Field[2].DistMax = 3.;
Thank you so much for your advice.
Best regards,
Sabrina
--
Sabrina Zacarias
Institut für Kernphysik
Technische Universität Darmstadt
S2|14 / office 319
Schlossgartenstr. 9
64289 Darmstadt
Office: +49 6151 16 23589
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20191204/e44c5767/attachment.html>
More information about the gmsh
mailing list