Skip to content

Commit

Permalink
Fix git conflicts and mesh/subdomains/boundaries paths
Browse files Browse the repository at this point in the history
  • Loading branch information
gmkoeb committed Jan 15, 2024
1 parent 12881e4 commit e143305
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions laplace-solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import matplotlib.pyplot as plt
# Create mesh and define function space
# Define boundary condition
mesh = Mesh("Te3.xml")
subdomains = MeshFunction("size_t", mesh, "Te3_physical_region.xml")
boundaries = MeshFunction("size_t", mesh, "Te3_facet_region.xml")
mesh = Mesh("./mesh/Te3.xml")
subdomains = MeshFunction("size_t", mesh, "./mesh/Te3_physical_region.xml")
boundaries = MeshFunction("size_t", mesh, "./mesh/Te3_facet_region.xml")
V=FunctionSpace(mesh,'CG',2)

Etopleft = DirichletBC(V, -1, boundaries,2)
Expand All @@ -15,11 +15,7 @@
bc = [Etopleft,Etopright,Ebottomleft,Ebottomright]

u_D=Constant(0.0)
<<<<<<< HEAD
plot(mesh)
=======

>>>>>>> f84caab7e665c850ed6c16ea75a773bce64ad810
# Define variational problem
u = TrialFunction(V)
v = TestFunction(V)
Expand Down Expand Up @@ -49,10 +45,6 @@
E=project(-grad(u))
efieldfile = File('poisson/efield.pvd')
efieldfile << E
<<<<<<< HEAD
=======

>>>>>>> f84caab7e665c850ed6c16ea75a773bce64ad810
plt.figure(figsize=(12,7))
pp = plot(u, zorder=3)
plt.colorbar(pp)
Expand Down

0 comments on commit e143305

Please sign in to comment.