[Gmsh] Refinement mesh of specific entities within volume

Jeremy Theler jeremy at seamplex.com
Thu Dec 5 12:32:09 CET 2019


Have you tried FacesList instead of EdgesList?

On Wed, 2019-12-04 at 15:52 +0100, Sabrina Zacarias wrote:
> 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
> 
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> 
> http://onelab.info/mailman/listinfo/gmsh
> 
> 




More information about the gmsh mailing list