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
4d89df23
Commit
4d89df23
authored
23 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
1ef7a439
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tutorial/tutorial.html
+23
-21
23 additions, 21 deletions
tutorial/tutorial.html
with
23 additions
and
21 deletions
tutorial/tutorial.html
+
23
−
21
View file @
4d89df23
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<H1>
README 1/10
</H1>
<H1>
README 1/10
</H1>
[
<A
HREF=
"#top"
>
top
</A>
][prev][
<A
HREF=
"#file2"
>
next
</A>
]
[
<A
HREF=
"#top"
>
top
</A>
][prev][
<A
HREF=
"#file2"
>
next
</A>
]
<PRE>
<PRE>
$Id: tutorial.html,v 1.2
1
2001-0
8-31 07:08
:4
7
geuzaine Exp $
$Id: tutorial.html,v 1.2
2
2001-0
9-01 09:19
:4
3
geuzaine Exp $
Here are the examples in the Gmsh tutorial. These examples are
Here are the examples in the Gmsh tutorial. These examples are
commented (both C and C++-style comments can be used in Gmsh input
commented (both C and C++-style comments can be used in Gmsh input
...
@@ -250,8 +250,8 @@ Physical Surface(100) = {6} ;
...
@@ -250,8 +250,8 @@ Physical Surface(100) = {6} ;
*
*
* Gmsh tutorial 2
* Gmsh tutorial 2
*
*
* Includes, Geometrical transformations, E
lementary entit
ies
* Includes, Geometrical transformations, E
xtruded geometr
ies
,
* (Volumes), Physical entities (Volumes)
*
Elementary entities
(Volumes), Physical entities (Volumes)
*
*
*********************************************************************/
</FONT></I>
*********************************************************************/
</FONT></I>
...
@@ -464,7 +464,7 @@ Lc2 = 0.003 ;
...
@@ -464,7 +464,7 @@ Lc2 = 0.003 ;
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// Grouping is done, as usual, with parentheses.
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// Grouping is done, as usual, with parentheses.
</FONT></I><I><FONT
COLOR=
"#B22222"
>
//
</FONT></I><I><FONT
COLOR=
"#B22222"
>
//
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// In addition to these operators, all C mathematical functions can
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// In addition to these operators, all C mathematical functions can
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// also be used (note the first capital letter)
:
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// also be used (note the first capital letter)
, i.e.
</FONT></I><I><FONT
COLOR=
"#B22222"
>
//
</FONT></I><I><FONT
COLOR=
"#B22222"
>
//
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// Exp(x)
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// Exp(x)
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// Log(x)
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// Log(x)
...
@@ -484,11 +484,11 @@ Lc2 = 0.003 ;
...
@@ -484,11 +484,11 @@ Lc2 = 0.003 ;
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// Floor(x)
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// Floor(x)
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// Ceil(x)
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// Ceil(x)
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// Fmod(x,y)
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// Fmod(x,y)
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// Hypot(x,y)
</FONT></I><I><FONT
COLOR=
"#B22222"
>
//
</FONT></I>
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// as well as a series of other functions:
<I><FONT
COLOR=
"#B22222"
>
// An additional function 'Rand(x)' generates a random number in [0,x]
</FONT></I><I><FONT
COLOR=
"#B22222"
>
//
</FONT></I><I><FONT
COLOR=
"#B22222"
>
//
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// Rand(x)
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// Hypot(x,y) computes Sqrt(x^2+y^2)
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// Rand(x) generates a random number in [0,x]
</FONT></I><I><FONT
COLOR=
"#B22222"
>
//
</FONT></I><I><FONT
COLOR=
"#B22222"
>
//
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// The only predefined constant in Gmsh is Pi.
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// The only predefined constant in Gmsh is Pi.
</FONT></I>
</FONT></I>
...
@@ -583,8 +583,9 @@ lcar3 = .075;
...
@@ -583,8 +583,9 @@ lcar3 = .075;
<I><FONT
COLOR=
"#B22222"
>
// In order to change these lengths globally (without changing the
<I><FONT
COLOR=
"#B22222"
>
// In order to change these lengths globally (without changing the
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// file), a global scaling factor for all characteristic lengths can
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// file), a global scaling factor for all characteristic lengths can
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// be specified on the command line with the option '-clscale'. For
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// be specified on the command line with the option '-clscale' (or
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// example, with:
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// with the option Mesh.CharacteristicLengthFactor). For example,
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// with:
</FONT></I><I><FONT
COLOR=
"#B22222"
>
//
</FONT></I><I><FONT
COLOR=
"#B22222"
>
//
</FONT></I><I><FONT
COLOR=
"#B22222"
>
//
>
gmsh t5 -clscale 1
</FONT></I><I><FONT
COLOR=
"#B22222"
>
//
>
gmsh t5 -clscale 1
</FONT></I><I><FONT
COLOR=
"#B22222"
>
//
</FONT></I><I><FONT
COLOR=
"#B22222"
>
//
...
@@ -671,6 +672,11 @@ Function CheeseHole
...
@@ -671,6 +672,11 @@ Function CheeseHole
l7 = newreg; Line Loop(l7) = {c2,c7,c12}; Ruled Surface(newreg) = {l7};
l7 = newreg; Line Loop(l7) = {c2,c7,c12}; Ruled Surface(newreg) = {l7};
l8 = newreg; Line Loop(l8) = {-c6,-c9,c2}; Ruled Surface(newreg) = {l8};
l8 = newreg; Line Loop(l8) = {-c6,-c9,c2}; Ruled Surface(newreg) = {l8};
<I><FONT
COLOR=
"#B22222"
>
// Warning: surface meshes are generated by projecting a 2D mesh in
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// the mean plane of the surface. This gives nice results only if the
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// surface curvature is small enough. Otherwise you will have to cut
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// the surface in pieces.
</FONT></I>
<I><FONT
COLOR=
"#B22222"
>
// Arrays of variables can be manipulated in the same way as classical
<I><FONT
COLOR=
"#B22222"
>
// Arrays of variables can be manipulated in the same way as classical
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// variables. Warning: accessing an uninitialized element in an array
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// variables. Warning: accessing an uninitialized element in an array
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// will produce an unpredictable result. Note that whole arrays can
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// will produce an unpredictable result. Note that whole arrays can
...
@@ -1170,18 +1176,14 @@ EndFor
...
@@ -1170,18 +1176,14 @@ EndFor
</FONT></I>
</FONT></I>
Include
"
view3.pos
"
;
Include
"
view3.pos
"
;
<I><FONT
COLOR=
"#B22222"
>
// Plugins can be controlled as other options in Gmsh. For example,
<I><FONT
COLOR=
"#B22222"
>
// Plugins can be controlled in the same way as other options in
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// the CutMap plugin extracts an isovalue surface from a 3D scalar
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// Gmsh. For example, the CutMap plugin (which extracts an isovalue
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// view. The plugin can either be called from the graphical interface
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// surface from a 3D scalar view) can either be called from the
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// (right click on the view button, then Plugins-
>
CutMap), or from
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// graphical interface (right click on the view button, then
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// the command file, as is shown below.
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// Plugins-
>
CutMap), or from the command file:
</FONT></I>
<I><FONT
COLOR=
"#B22222"
>
// This sets the optional parameter A of the CutMap plugin to the
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// value 0.67 (see the About in the graphical interface for the
</FONT></I><I><FONT
COLOR=
"#B22222"
>
// documentation of each plugin), and runs the plugin:
</FONT></I>
</FONT></I>
Plugin(CutMap).A = 0.67 ;
Plugin(CutMap).A = 0.67 ;
<I><FONT
COLOR=
"#B22222"
>
// iso-value level
Plugin(CutMap).iView = 0 ;
<I><FONT
COLOR=
"#B22222"
>
//
select View[0] as the working view
</FONT></I>
Plugin(CutMap).iView = 0 ;
<I><FONT
COLOR=
"#B22222"
>
//
source view is View[0]
</FONT></I>
Plugin(CutMap).Run ;
</FONT></I>
Plugin(CutMap).Run ;
<I><FONT
COLOR=
"#B22222"
>
// The following runs the CutPlane plugin:
<I><FONT
COLOR=
"#B22222"
>
// The following runs the CutPlane plugin:
...
...
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