Hi
I'm trying to define an expression to multiply a term of the bilinear form in which itegral is over the facets, but I'm having problems.
I think the expression should be defined differently than in the case where the integral is over the element where it works.
I show you a simplified retail of code to focus the problem.
mesh = BoxMesh(-5, -5, 0, 5, 5, 5, 10, 10, 5)
V = FunctionSpace(mesh, 'DG', 2)
I define the interface:
class crack (SubDomain):
def inside (self,x,on_boundary):
tol=1E-12
return (between(x[1],(-tol,tol)) and (x[2]< 2.+tol))
crack=crack()
interior = FacetFunction("size_t", mesh)
interior.set_all(0)
crack.mark(interior,1)
dS = Measure("dS")[interior]
n = FacetNormal(mesh)
here is my problem, I want to define R(x), for example:
R=Expression('10+x[2]*x[2]')
term of bilinear form where R is taking place
a3=R*dot(jump(u,n), jump(v, n))*dS(1)
I think that R has to be projected into the facets whith piecewises second order functions but I don't know the way.