Skip to content

Commit 5a78c12

Browse files
committed
Remove Neumann bc from fenics-example
1 parent f36961d commit 5a78c12

File tree

10 files changed

+15
-14
lines changed

10 files changed

+15
-14
lines changed

benchmarks/linear-elasticity-plate-with-hole/data/output_003125_p0_000000.vtu

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

benchmarks/linear-elasticity-plate-with-hole/data/output_003125_p0_000001.vtu

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

benchmarks/linear-elasticity-plate-with-hole/data/output_0125_p0_000000.vtu

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

benchmarks/linear-elasticity-plate-with-hole/data/output_0125_p0_000001.vtu

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

benchmarks/linear-elasticity-plate-with-hole/data/output_025_p0_000000.vtu

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

benchmarks/linear-elasticity-plate-with-hole/data/output_025_p0_000001.vtu

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

benchmarks/linear-elasticity-plate-with-hole/run_simulation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import numpy as np
66
import ufl
77
from dolfinx.fem.petsc import LinearProblem
8+
from petsc4py.PETSc import ScalarType
89
from mpi4py import MPI
910
from pint import UnitRegistry
1011

@@ -180,8 +181,8 @@ def as_tensor(v):
180181
a = df.fem.form(ufl.inner(sigma(u_), eps(v_)) * dx)
181182

182183

183-
f = df.fem.form(ufl.inner(ufl.dot(stress_function, ufl.FacetNormal(mesh)), u_) * ufl.ds)
184-
#f = df.fem.form(ufl.inner(ufl.Constant(mesh, ((0.0),(0.0))), u_) * ufl.ds)
184+
# set rhs to zero
185+
f = df.fem.form(ufl.inner(df.fem.Constant(mesh, np.array([0.0,0.0])), u_) * ufl.ds)
185186

186187
bc_right = df.fem.dirichletbc(u_prescribed, dofs_right)
187188
bc_top = df.fem.dirichletbc(u_prescribed, dofs_top)

benchmarks/linear-elasticity-plate-with-hole/summary_003125.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"input": "data/input_003125.json",
55
"mesh": "data/mesh_003125.msh",
66
"output": "data/output_003125.vtk",
7-
"max_mises_stress": 299783353.3539022
7+
"max_mises_stress": 299783353.3384597
88
}

benchmarks/linear-elasticity-plate-with-hole/summary_0125.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"input": "data/input_0125.json",
55
"mesh": "data/mesh_0125.msh",
66
"output": "data/output_0125.vtk",
7-
"max_mises_stress": 300129622.7217106
7+
"max_mises_stress": 300129622.7217104
88
}

benchmarks/linear-elasticity-plate-with-hole/summary_025.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"input": "data/input_025.json",
55
"mesh": "data/mesh_025.msh",
66
"output": "data/output_025.vtk",
7-
"max_mises_stress": 299791507.5586348
7+
"max_mises_stress": 299791507.5586332
88
}

0 commit comments

Comments
 (0)