Please clarify behavior of "exterior_facet_domains"
Hello -- I could not find documentation on how to use "exterior_
-------
from dolfin import *
msh = UnitSquare(2,2)
g = Constant(3.)
g1 = Constant(1.)
# boundary part
class Top(SubDomain):
def inside(self, x, on_boundary):
return on_boundary and abs(x[1]-1) < DOLFIN_EPS
boundary_parts = MeshFunction(
boundary_
Gamma = Top()
Gamma.mark(
# assemble a form
U = FunctionSpace(msh, 'Raviart-Thomas', 2)
v = TestFunction(U)
n = FacetNormal(msh)
L = g*ds + g1*ds(1)
# unfortunately, assembling L in 3 ways, we obtain 3 different values
b1 = assemble( L, exterior_
b2 = assemble( L, mesh=msh)
b3 = assemble( g*ds, mesh=msh) + \
assemble( g1*ds(1), exterior_
print (b1, b2, b3) # only b3 gives the correct value
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Johan Hake
- Solved:
- Last query:
- Last reply: