> On 5 Oct 2018, at 11:16, Octavio Castillo Reyes <[email protected]> > wrote: > > Dear mesh users and gmsh team, > > I'm using gmsh to mesh a 3D domain (unstructured tetrahedral). My simulations > require a refinement over a line but I don't know how to obtain a specific > element size, namely, increase the element size from a given point P as > follows: > > |-----------------|-------------|------------|---------|------- P > -------|---------|------------|-------------|-----------------| > A/2 A/4 A/8 A/16 A/32 A/32 A/16 A/8 > A/4 A/2 > > where A is the characteristic length in the domain. Which is the correct way > to get the desired refinement? I'm not sure if a field attractor is a good > solution, if yes, how setup it?
You could use Field(MathEval) : you can prescribe any mathematical function you want as mesh size. See tutotial/t10.geo for an example. CG > > Best regards > O. > _______________________________________________ > gmsh mailing list > [email protected] > http://onelab.info/mailman/listinfo/gmsh — Prof. Christophe Geuzaine University of Liege, Electrical Engineering and Computer Science http://www.montefiore.ulg.ac.be/~geuzaine Free software: http://gmsh.info | http://getdp.info | http://onelab.info _______________________________________________ gmsh mailing list [email protected] http://onelab.info/mailman/listinfo/gmsh
