[Gmsh] Varying the mesh inside the shape

Ghaiath Fadhil gafadhil1 at sheffield.ac.uk
Mon Jul 14 13:39:19 CEST 2014


Hi,

I am trying to draw a shape with a small mesh on the surface and a bigger 
mesh inside. The following code worked to an extent:
(Field[1] = MathEval;
Field[1].F = "1.0";
Field[2] = Restrict;
Field[2].IField = 1;
Field[2].RegionsList = {1:newv};

Field[3] = MathEval;
Field[3].F = "0.1";
Field[4] = Restrict;
Field[4].IField = 3;
Field[4].EdgesList = {1:newl};
Field[4].FacesList = {1:news};

Field[5] = Min;
Field[5].FieldsList = {2,4};
Background Field = 5;

Mesh.CharacteristicLengthExtendFromBoundary = 0.;

Coherence;)
but if I want to specify only one volume be (Field[2].RegionsList = {1};), 
it doesn't specify, it just applies it to all volumes.
The other thing, the inside mesh is varied as I look for, the shapes are 
mainly long thin triangles. Do you recommend another way?
Thank for your time.

Regards,
Ghaiath