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
c2251a72
Commit
c2251a72
authored
9 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
df175cdd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tutorial/t1.geo
+6
-6
6 additions, 6 deletions
tutorial/t1.geo
tutorial/t3.geo
+2
-2
2 additions, 2 deletions
tutorial/t3.geo
with
8 additions
and
8 deletions
tutorial/t1.geo
+
6
−
6
View file @
c2251a72
...
...
@@ -67,18 +67,18 @@ Physical Point(1) = {1,2} ;
// both with the region number 1. The mechanism is identical for line or surface
// elements:
MY_
FIRST_
LINE
=
99
;
Physical
Line
(
MY_
FIRST_
LINE
)
=
{
1
,
2
}
;
MY_LINE
=
2
;
Physical
Line
(
MY_LINE
)
=
{
1
,
2
}
;
Physical
Line
(
"My second line (auto physical id)"
)
=
{
3
}
;
Physical
Line
(
"My third line (physical id
199
)"
,
199
)
=
{
4
}
;
Physical
Line
(
"My third line (physical id
5
)"
,
5
)
=
{
4
}
;
Physical
Surface
(
"My surface"
)
=
{
6
}
;
// All the line elements created during the meshing of lines 1 and 2 will be
// saved in the output mesh file with the physical id
99
. The elements from line
// saved in the output mesh file with the physical id
2
. The elements from line
// 3 will be saved in the output mesh file with an automatic physical id,
// associated with the label "My second line (auto physical id)". The elements
// from line 4 will be saved with physical id
199
, associated with the label "My
// third line (physical id
199
)". And finally, all the triangular elements
// from line 4 will be saved with physical id
5
, associated with the label "My
// third line (physical id
5
)". And finally, all the triangular elements
// resulting from the discretization of surface 6 will be given an automatic
// physical id associated with the label "My surface").
...
...
This diff is collapsed.
Click to expand it.
tutorial/t3.geo
+
2
−
2
View file @
c2251a72
...
...
@@ -28,7 +28,7 @@ Extrude {0,0,h} {
// ({0,1,0}), an axis point ({-0.1,0,0.1}) and a rotation angle (-Pi/2):
Extrude
{
{
0
,
1
,
0
}
,
{
-
0.1
,
0
,
0.1
}
,
-
Pi
/
2
}
{
Surface
{
12
2
};
Layers
{
7
};
Recombine
;
Surface
{
2
8
};
Layers
{
7
};
Recombine
;
}
// Note that a translation ({-2*h,0,0}) and a rotation ({1,0,0}, {0,0.15,0.25},
...
...
@@ -41,7 +41,7 @@ DefineConstant[ angle = {90, Min 0, Max 120, Step 1,
Name
"Parameters/Twisting angle"
}
];
out
[]
=
Extrude
{
{
-
2
*
h
,
0
,
0
},
{
1
,
0
,
0
}
,
{
0
,
0.15
,
0.25
}
,
angle
*
Pi
/
180
}
{
Surface
{
144
};
Layers
{
10
};
Recombine
;
Surface
{
50
};
Layers
{
10
};
Recombine
;
};
// In this last extrusion command we retrieved the volume number programatically
...
...
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