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
be589ebf
Commit
be589ebf
authored
16 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
a7d45ce9
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/t6.geo
+20
-4
20 additions, 4 deletions
tutorial/t6.geo
with
20 additions
and
4 deletions
tutorial/t6.geo
+
20
−
4
View file @
be589ebf
...
...
@@ -10,26 +10,42 @@
// one
Include
"t1.geo"
;
// Put 20 equidistant points on curve 4
Transfinite
Line
{
4
}
=
20
;
// Delete the left line and create replace it with 3 new ones
Delete
{
Surface
{
6
};
Line
{
4
};
}
p1
=
newp
;
Point
(
p1
)
=
{
-
0.05
,
0.05
,
0
,
lc
};
p2
=
newp
;
Point
(
p2
)
=
{
-
0.05
,
0.1
,
0
,
lc
};
l1
=
newl
;
Line
(
l1
)
=
{
1
,
p1
};
l2
=
newl
;
Line
(
l2
)
=
{
p1
,
p2
};
l3
=
newl
;
Line
(
l3
)
=
{
p2
,
4
};
// Create surface
Line
Loop
(
1
)
=
{
2
,
-
1
,
l1
,
l2
,
l3
,
-
3
};
Plane
Surface
(
1
)
=
{
1
};
// Put 20 points with a refinement toward the extremities on curve 2
Transfinite
Line
{
2
}
=
20
Using
Bump
0.05
;
// Put 20 points total on combination of curves l1, l2 and l3
Transfinite
Line
{
l1
}
=
6
;
Transfinite
Line
{
l2
}
=
6
;
Transfinite
Line
{
l3
}
=
10
;
// Put 30 points following a geometric progression on curve 1
// (reversed) and on curve 3
Transfinite
Line
{
-
1
,
3
}
=
30
Using
Progression
1.2
;
// Define the Surface as transfinite, by specifying the four corners
// of the transfinite interpolation
Transfinite
Surface
{
6
}
=
{
1
,
2
,
3
,
4
};
Transfinite
Surface
{
1
}
=
{
1
,
2
,
3
,
4
};
// (Note that the list on the right hand side refers to points, not
// curves. The way triangles are generated can be controlled by
// appending "Left", "Right" or "Alternate" after the list.)
// Recombine the triangles into quads
Recombine
Surface
{
6
};
Recombine
Surface
{
1
};
// Apply an elliptic smoother to the grid
Mesh
.
Smoothing
=
100
;
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