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
Analyze
Contributor 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
gmsh
gmsh
Commits
bb433170
Commit
bb433170
authored
4 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
ed36b692
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#6155
passed
4 years ago
Stage: test
Stage: .post
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
demos/api/adapt_mesh.py
+1
-1
1 addition, 1 deletion
demos/api/adapt_mesh.py
demos/api/view_combine.py
+1
-1
1 addition, 1 deletion
demos/api/view_combine.py
demos/api/volume.py
+1
-1
1 addition, 1 deletion
demos/api/volume.py
with
3 additions
and
3 deletions
demos/api/adapt_mesh.py
+
1
−
1
View file @
bb433170
...
@@ -29,7 +29,7 @@ def my_function(xyz):
...
@@ -29,7 +29,7 @@ def my_function(xyz):
def
compute_interpolation_error
(
nodes
,
triangles
,
f
):
def
compute_interpolation_error
(
nodes
,
triangles
,
f
):
uvw
,
weights
=
gmsh
.
model
.
mesh
.
getIntegrationPoints
(
2
,
"
Gauss2
"
)
uvw
,
weights
=
gmsh
.
model
.
mesh
.
getIntegrationPoints
(
2
,
"
Gauss2
"
)
jac
,
det
,
pt
=
gmsh
.
model
.
mesh
.
getJacobians
(
2
,
uvw
)
jac
,
det
,
pt
=
gmsh
.
model
.
mesh
.
getJacobians
(
2
,
uvw
)
numcomp
,
sf
=
gmsh
.
model
.
mesh
.
getBasisFunctions
(
2
,
uvw
,
"
Lagrange
"
)
numcomp
,
sf
,
_
=
gmsh
.
model
.
mesh
.
getBasisFunctions
(
2
,
uvw
,
"
Lagrange
"
)
sf
=
sf
.
reshape
((
weights
.
shape
[
0
],
-
1
))
sf
=
sf
.
reshape
((
weights
.
shape
[
0
],
-
1
))
qx
=
pt
.
reshape
((
triangles
.
shape
[
0
],
-
1
,
3
))
qx
=
pt
.
reshape
((
triangles
.
shape
[
0
],
-
1
,
3
))
det
=
np
.
abs
(
det
.
reshape
((
triangles
.
shape
[
0
],
-
1
)))
det
=
np
.
abs
(
det
.
reshape
((
triangles
.
shape
[
0
],
-
1
)))
...
...
This diff is collapsed.
Click to expand it.
demos/api/view_combine.py
+
1
−
1
View file @
bb433170
...
@@ -21,7 +21,7 @@ gmsh.view.addListData(t, "ST", 1, tri1)
...
@@ -21,7 +21,7 @@ gmsh.view.addListData(t, "ST", 1, tri1)
t2
=
gmsh
.
view
.
add
(
"
some other data
"
)
t2
=
gmsh
.
view
.
add
(
"
some other data
"
)
gmsh
.
view
.
addListData
(
t2
,
"
ST
"
,
1
,
tri2
)
gmsh
.
view
.
addListData
(
t2
,
"
ST
"
,
1
,
tri2
)
gmsh
.
view
.
combine
(
"
elements
"
,
"
all
"
)
gmsh
.
view
.
combine
(
"
elements
"
,
"
all
"
,
remove
=
False
)
# gmsh.view.write(t, "data.pos")
# gmsh.view.write(t, "data.pos")
...
...
This diff is collapsed.
Click to expand it.
demos/api/volume.py
+
1
−
1
View file @
bb433170
...
@@ -14,7 +14,7 @@ p = gmsh.model.addPhysicalGroup(2, [s])
...
@@ -14,7 +14,7 @@ p = gmsh.model.addPhysicalGroup(2, [s])
gmsh
.
model
.
mesh
.
generate
(
2
)
gmsh
.
model
.
mesh
.
generate
(
2
)
gmsh
.
plugin
.
setNumber
(
"
MeshVolume
"
,
"
Dimension
"
,
2
)
gmsh
.
plugin
.
setNumber
(
"
MeshVolume
"
,
"
Dimension
"
,
2
)
gmsh
.
plugin
.
setNumber
(
"
MeshVolume
"
,
"
Physical
"
,
p
)
gmsh
.
plugin
.
setNumber
(
"
MeshVolume
"
,
"
Physical
Group
"
,
p
)
gmsh
.
plugin
.
run
(
"
MeshVolume
"
)
gmsh
.
plugin
.
run
(
"
MeshVolume
"
)
_
,
_
,
data
=
gmsh
.
view
.
getListData
(
0
)
_
,
_
,
data
=
gmsh
.
view
.
getListData
(
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