Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
b12d3cfd
Commit
b12d3cfd
authored
22 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
small fixes
parent
02e5cf20
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tutorial/t2.geo
+5
-5
5 additions, 5 deletions
tutorial/t2.geo
tutorial/t3.geo
+4
-4
4 additions, 4 deletions
tutorial/t3.geo
tutorial/t4.geo
+4
-5
4 additions, 5 deletions
tutorial/t4.geo
with
13 additions
and
14 deletions
tutorial/t2.geo
+
5
−
5
View file @
b12d3cfd
...
@@ -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 o
n
the left with:
// the point 3 can be moved by 0.05 units
t
o 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
specif
y
// elementary entities. The following command permits to
manuall
y
//
manuall
y a characteristic length for some of the new points:
//
specif
y 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
;
...
...
This diff is collapsed.
Click to expand it.
tutorial/t3.geo
+
4
−
4
View file @
b12d3cfd
...
@@ -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.
This diff is collapsed.
Click to expand it.
tutorial/t4.geo
+
4
−
5
View file @
b12d3cfd
...
@@ -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 contain
in
g 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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment