Lets assume I have a one dimensional differential equation
-\frac{d}{dx}\left(a(x)\frac{du}{dx}\right)=f(x) \quad on \quad x\in(x_L,x_R)
One term of the weak form would be -a(x_R)\frac{du}{dx}(x_R)v(x_R)+a(x_L)\frac{du}{dx}(x_L)v(x_L). How could that additional term be formulated in the weak form in dolfinx.
The current weak form looks like
a*ufl.Dx(u,0)*ufl.Dx(v,0)*ufl.dx
and works fine with dirichlet boundary conditions.
thanks. As your example is two dimensional I did not try that.
Does that mean that e.g. ds =ufl.Measure(“ds”,…) in connection with e.g. uvds in a one dimensional mesh reduces to a point like evaluation at start and endpoint? Does the ufl library provide also a “Evaluate at point” Operator?