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
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Romin Tomasetti
gmsh
Commits
def4f1a4
Commit
def4f1a4
authored
2 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
pp
parent
ee96647b
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
tutorials/c++/t10.cpp
+3
-3
3 additions, 3 deletions
tutorials/c++/t10.cpp
tutorials/fortran/t10.f90
+2
-2
2 additions, 2 deletions
tutorials/fortran/t10.f90
tutorials/python/t10.py
+3
-3
3 additions, 3 deletions
tutorials/python/t10.py
tutorials/t10.geo
+2
-2
2 additions, 2 deletions
tutorials/t10.geo
with
10 additions
and
10 deletions
tutorials/c++/t10.cpp
+
3
−
3
View file @
def4f1a4
...
@@ -102,7 +102,7 @@ int main(int argc, char **argv)
...
@@ -102,7 +102,7 @@ int main(int argc, char **argv)
// complete list. You can also create fields directly in the graphical user
// complete list. You can also create fields directly in the graphical user
// interface by selecting `Define->Size fields' in the `Mesh' module.
// interface by selecting `Define->Size fields' in the `Mesh' module.
// Let's use the minimum of all the fields as the background mesh field:
// Let's use the minimum of all the fields as the background mesh
size
field:
gmsh
::
model
::
mesh
::
field
::
add
(
"Min"
,
7
);
gmsh
::
model
::
mesh
::
field
::
add
(
"Min"
,
7
);
gmsh
::
model
::
mesh
::
field
::
setNumbers
(
7
,
"FieldsList"
,
{
2
,
3
,
5
,
6
});
gmsh
::
model
::
mesh
::
field
::
setNumbers
(
7
,
"FieldsList"
,
{
2
,
3
,
5
,
6
});
...
@@ -124,7 +124,7 @@ int main(int argc, char **argv)
...
@@ -124,7 +124,7 @@ int main(int argc, char **argv)
// geometrical points;
// geometrical points;
// 3) if `Mesh.MeshSizeFromCurvature' is positive, the mesh size based on
// 3) if `Mesh.MeshSizeFromCurvature' is positive, the mesh size based on
// curvature (the value specifying the number of elements per 2 * pi rad);
// curvature (the value specifying the number of elements per 2 * pi rad);
// 4) the background mesh field;
// 4) the background mesh
size
field;
// 5) any per-entity mesh size constraint;
// 5) any per-entity mesh size constraint;
//
//
// The value can then be further modified by the mesh size callback, if any,
// The value can then be further modified by the mesh size callback, if any,
...
@@ -134,7 +134,7 @@ int main(int argc, char **argv)
...
@@ -134,7 +134,7 @@ int main(int argc, char **argv)
// depending on the value of `Mesh.MeshSizeExtendFromBoundary' (which is set
// depending on the value of `Mesh.MeshSizeExtendFromBoundary' (which is set
// by default).
// by default).
//
//
// When the element size is fully specified by a
background mesh
(as it is in
// When the element size is fully specified by a
mesh size field
(as it is in
// this example), it is thus often desirable to set
// this example), it is thus often desirable to set
gmsh
::
option
::
setNumber
(
"Mesh.MeshSizeExtendFromBoundary"
,
0
);
gmsh
::
option
::
setNumber
(
"Mesh.MeshSizeExtendFromBoundary"
,
0
);
...
...
This diff is collapsed.
Click to expand it.
tutorials/fortran/t10.f90
+
2
−
2
View file @
def4f1a4
...
@@ -102,7 +102,7 @@ call gmsh%model%mesh%field%setNumber(6, "Thickness", 0.3d0)
...
@@ -102,7 +102,7 @@ call gmsh%model%mesh%field%setNumber(6, "Thickness", 0.3d0)
! complete list. You can also create fields directly in the graphical user
! complete list. You can also create fields directly in the graphical user
! interface by selecting `Define->Size fields' in the `Mesh' module.
! interface by selecting `Define->Size fields' in the `Mesh' module.
! Let's use the minimum of all the fields as the background mesh field:
! Let's use the minimum of all the fields as the background mesh
size
field:
ret
=
gmsh
%
model
%
mesh
%
field
%
add
(
"Min"
,
7
)
ret
=
gmsh
%
model
%
mesh
%
field
%
add
(
"Min"
,
7
)
call
gmsh
%
model
%
mesh
%
field
%
setNumbers
(
7
,
"FieldsList"
,
[
2d0
,
3d0
,
5d0
,
6d0
])
call
gmsh
%
model
%
mesh
%
field
%
setNumbers
(
7
,
"FieldsList"
,
[
2d0
,
3d0
,
5d0
,
6d0
])
...
@@ -128,7 +128,7 @@ call gmsh%model%mesh%setSizeCallback(c_funloc(meshSizeCallback))
...
@@ -128,7 +128,7 @@ call gmsh%model%mesh%setSizeCallback(c_funloc(meshSizeCallback))
! boundary mesh sizes are interpolated inside surfaces and/or volumes depending
! boundary mesh sizes are interpolated inside surfaces and/or volumes depending
! on the value of `Mesh.MeshSizeExtendFromBoundary' (which is set by default).
! on the value of `Mesh.MeshSizeExtendFromBoundary' (which is set by default).
!
!
! When the element size is fully specified by a
background mesh
(as it is in
! When the element size is fully specified by a
mesh size field
(as it is in
! this example), it is thus often desirable to set
! this example), it is thus often desirable to set
call
gmsh
%
option
%
setNumber
(
"Mesh.MeshSizeExtendFromBoundary"
,
0d0
)
call
gmsh
%
option
%
setNumber
(
"Mesh.MeshSizeExtendFromBoundary"
,
0d0
)
...
...
This diff is collapsed.
Click to expand it.
tutorials/python/t10.py
+
3
−
3
View file @
def4f1a4
...
@@ -95,7 +95,7 @@ gmsh.model.mesh.field.setNumber(6, "Thickness", 0.3)
...
@@ -95,7 +95,7 @@ gmsh.model.mesh.field.setNumber(6, "Thickness", 0.3)
# complete list. You can also create fields directly in the graphical user
# complete list. You can also create fields directly in the graphical user
# interface by selecting `Define->Size fields' in the `Mesh' module.
# interface by selecting `Define->Size fields' in the `Mesh' module.
# Let's use the minimum of all the fields as the
background mesh
field:
# Let's use the minimum of all the fields as the
mesh size
field:
gmsh
.
model
.
mesh
.
field
.
add
(
"
Min
"
,
7
)
gmsh
.
model
.
mesh
.
field
.
add
(
"
Min
"
,
7
)
gmsh
.
model
.
mesh
.
field
.
setNumbers
(
7
,
"
FieldsList
"
,
[
2
,
3
,
5
,
6
])
gmsh
.
model
.
mesh
.
field
.
setNumbers
(
7
,
"
FieldsList
"
,
[
2
,
3
,
5
,
6
])
...
@@ -115,7 +115,7 @@ gmsh.model.mesh.setSizeCallback(meshSizeCallback)
...
@@ -115,7 +115,7 @@ gmsh.model.mesh.setSizeCallback(meshSizeCallback)
# points;
# points;
# 3) if `Mesh.MeshSizeFromCurvature' is positive, the mesh size based on
# 3) if `Mesh.MeshSizeFromCurvature' is positive, the mesh size based on
# curvature (the value specifying the number of elements per 2 * pi rad);
# curvature (the value specifying the number of elements per 2 * pi rad);
# 4) the background mesh field;
# 4) the background mesh
size
field;
# 5) any per-entity mesh size constraint;
# 5) any per-entity mesh size constraint;
#
#
# The value can then be further modified by the mesh size callback, if any,
# The value can then be further modified by the mesh size callback, if any,
...
@@ -124,7 +124,7 @@ gmsh.model.mesh.setSizeCallback(meshSizeCallback)
...
@@ -124,7 +124,7 @@ gmsh.model.mesh.setSizeCallback(meshSizeCallback)
# boundary mesh sizes are interpolated inside surfaces and/or volumes depending
# boundary mesh sizes are interpolated inside surfaces and/or volumes depending
# on the value of `Mesh.MeshSizeExtendFromBoundary' (which is set by default).
# on the value of `Mesh.MeshSizeExtendFromBoundary' (which is set by default).
#
#
# When the element size is fully specified by a
background mesh
(as it is in
# When the element size is fully specified by a
mesh size field
(as it is in
# this example), it is thus often desirable to set
# this example), it is thus often desirable to set
gmsh
.
option
.
setNumber
(
"
Mesh.MeshSizeExtendFromBoundary
"
,
0
)
gmsh
.
option
.
setNumber
(
"
Mesh.MeshSizeExtendFromBoundary
"
,
0
)
...
...
This diff is collapsed.
Click to expand it.
tutorials/t10.geo
+
2
−
2
View file @
def4f1a4
...
@@ -100,8 +100,8 @@ Background Field = 7;
...
@@ -100,8 +100,8 @@ Background Field = 7;
// boundary mesh sizes are interpolated inside surfaces and/or volumes depending
// boundary mesh sizes are interpolated inside surfaces and/or volumes depending
// on the value of `Mesh.MeshSizeExtendFromBoundary' (which is set by default).
// on the value of `Mesh.MeshSizeExtendFromBoundary' (which is set by default).
//
//
// When the element size is fully specified by a
background
mesh size field (as
// When the element size is fully specified by a mesh size field (as
it is in
//
it is in
this example), it is thus often desirable to set
// this example), it is thus often desirable to set
Mesh
.
MeshSizeExtendFromBoundary
=
0
;
Mesh
.
MeshSizeExtendFromBoundary
=
0
;
Mesh
.
MeshSizeFromPoints
=
0
;
Mesh
.
MeshSizeFromPoints
=
0
;
...
...
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