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

small fixes
parent 02e5cf20
No related branches found
No related tags found
No related merge requests found
...@@ -12,15 +12,15 @@ ...@@ -12,15 +12,15 @@
Include "t1.geo"; Include "t1.geo";
// We can then add new points and lines and surfaces in the same way // We can then add new points and lines in the same way as we did in
// as we did in `t1.geo': // `t1.geo':
Point(5) = {0, .4, 0, lc}; Point(5) = {0, .4, 0, lc};
Line(5) = {4, 5}; Line(5) = {4, 5};
// But Gmsh also provides tools to tranform (translate, rotate, etc.) // But Gmsh also provides tools to tranform (translate, rotate, etc.)
// elementary entities or copies of elementary entities. For example, // elementary entities or copies of elementary entities. For example,
// the point 3 can be moved by 0.05 units on the left with: // the point 3 can be moved by 0.05 units to the left with:
Translate {-0.05,0,0} { Point{3}; } Translate {-0.05,0,0} { Point{3}; }
...@@ -46,8 +46,8 @@ Plane Surface(11) = {10}; ...@@ -46,8 +46,8 @@ Plane Surface(11) = {10};
Extrude Surface { 11, {0, 0, h} }; Extrude Surface { 11, {0, 0, h} };
// All these geometrical transformations automatically generate new // All these geometrical transformations automatically generate new
// elementary entities. The following command permits to specify // elementary entities. The following command permits to manually
// manually a characteristic length for some of the new points: // specify a characteristic length for some of the new points:
Characteristic Length {6, 22, 2, 3, 16, 12} = lc * 2; Characteristic Length {6, 22, 2, 3, 16, 12} = lc * 2;
......
...@@ -69,16 +69,16 @@ General.TranslationX = -0.2; ...@@ -69,16 +69,16 @@ General.TranslationX = -0.2;
// Note that all colors can be defined literally or numerically, i.e. // Note that all colors can be defined literally or numerically, i.e.
// `General.Color.Background = Red' is equivalent to // `General.Color.Background = Red' is equivalent to
// `General.Color.Background = {255,0,0}'; and that, as with // `General.Color.Background = {255,0,0}'; and also note that, as with
// user-defined variables, the options can be used either as right or // user-defined variables, the options can be used either as right or
// left hand sides, so that the following command will set the // left hand sides, so that the following command will set the surface
// surface color to the same color as the points: // color to the same color as the points:
Geometry.Color.Surfaces = Geometry.Color.Points; Geometry.Color.Surfaces = Geometry.Color.Points;
// You can click on the `?' button in the status bar of the graphic // You can click on the `?' button in the status bar of the graphic
// window to see the current values of all options. To save all the // window to see the current values of all options. To save all the
// options to a file, you can use the `File->Save as->Gmsh options' // options in a file, you can use the `File->Save as->Gmsh options'
// menu. To save the current options as the default options for all // menu. To save the current options as the default options for all
// future Gmsh sessions, you should use the `Tools->Options->Save' // future Gmsh sessions, you should use the `Tools->Options->Save'
// button. // button.
...@@ -58,8 +58,7 @@ Line(2) = {17,16}; ...@@ -58,8 +58,7 @@ Line(2) = {17,16};
// Since not all curves are straight lines, Gmsh provides many other // Since not all curves are straight lines, Gmsh provides many other
// curve primitives: splines, B-splines, circle arcs, ellipse arcs, // curve primitives: splines, B-splines, circle arcs, ellipse arcs,
// etc. Here we define a new circle arc, starting at point 14 and // etc. Here we define a new circle arc, starting at point 14 and
// ending at point 16, and with the circle's center being the point // ending at point 16, with the circle's center being the point 15:
// 15:
Circle(3) = {14,15,16}; Circle(3) = {14,15,16};
...@@ -94,9 +93,9 @@ Plane Surface(22) = {21}; ...@@ -94,9 +93,9 @@ Plane Surface(22) = {21};
Line Loop(23) = {11,-12,13,14,1,2,-3,4,5,6,7,-8,9,10}; Line Loop(23) = {11,-12,13,14,1,2,-3,4,5,6,7,-8,9,10};
Plane Surface(24) = {23,21}; Plane Surface(24) = {23,21};
// Finally, we can add some comments by simply embedding a // Finally, we can add some comments by embedding a post-processing
// post-processing view containg some strings, and change the color of // view containing some strings, and change the color of some mesh
// some mesh entities: // entities:
View "comments" { View "comments" {
// 10 pixels from the left and 15 pixels from the top of the graphic // 10 pixels from the left and 15 pixels from the top of the graphic
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment