Skip to content

Commit 2596f5f

Browse files
authored
Update neumann_dirichlet_code.py to fix two typos
1 parent c9214c6 commit 2596f5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter3/neumann_dirichlet_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def boundary_D(x):
128128
bc = dirichletbc(u_bc, dofs_D)
129129
# -
130130

131-
# The next step is to define the Neumann condition. We first define $g$ uses `UFL`s `SpatialCoordinate`-function, and then in turn create a boundary integration measure `ds`. As the test function $v$ is zero on the boundary integrals over the Dirichlet boundary dissapears, and wee can integrate `g*v*ds` over the entire boundary.
131+
# The next step is to define the Neumann condition. We first define $g$ uses `UFL`s `SpatialCoordinate`-function, and then in turn create a boundary integration measure `ds`. As the test function $v$ is zero on the boundary integrals over the Dirichlet boundary disappears, and we can integrate `g*v*ds` over the entire boundary.
132132

133133
x = SpatialCoordinate(mesh)
134134
g = -4 * x[1]

0 commit comments

Comments
 (0)