Skip to content
Snippets Groups Projects
Commit 75cb227f authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

don't change options that could affect other tutorials in weird ways

parent 03067e74
Branches
Tags
No related merge requests found
......@@ -29,7 +29,7 @@ Line Loop(5) = {1,2,3,4}; Plane Surface(6) = {5};
Field[1] = Attractor;
Field[1].NodesList = {5};
Field[1].NNodesByEdge = 100;
Field[1].EdgesList = {1};
Field[1].EdgesList = {2};
// We then define a Threshold field, which uses the return value of
// the Attractor Field[1] in order to define a simple change in
......@@ -89,5 +89,6 @@ Field[7] = Min;
Field[7].FieldsList = {2, 3, 5, 6};
Background Field = 7;
// Don't extend the elements sizes from the boundary inside the domain
Mesh.CharacteristicLengthExtendFromBoundary = 0;
// If the boundary mesh size was too small, we could ask not to extend the
// elements sizes from the boundary inside the domain:
// Mesh.CharacteristicLengthExtendFromBoundary = 0;
......@@ -44,5 +44,4 @@ Recombine Surface{100};
// "Delaunay for quads" (DelQuad) meshing algorithm: DelQuad is a
// triangulation algorithm that enables to create right triangles
// almost everywhere. Uncomment the following line to try DelQuad:
Mesh.Algorithm = 8; // DelQuad (experimental)
// Mesh.Algorithm = 8;
......@@ -58,13 +58,12 @@ out[] = Extrude { {-2*h,0,0}, {1,0,0} , {0,0.15,0.25} , angle * Pi / 180 } {
Physical Volume(101) = {1, 2, out[1]};
// Let us now change some options... Since all interactive options are
// accessible in Gmsh's scripting language, we can for example define
// a global characteristic length factor or redefine some colors
// directly in the input file:
// accessible in Gmsh's scripting language, we can for example make point tags
// visible or redefine some colors directly in the input file:
Mesh.CharacteristicLengthFactor = 4;
General.Color.Text = White;
Geometry.PointNumbers = 1;
Geometry.Color.Points = Orange;
General.Color.Text = White;
Mesh.Color.Points = {255,0,0};
// Note that all colors can be defined literally or numerically, i.e.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment