This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Jumps between intern interface

0 votes

I am trying so solve diffusion model using DG method. But my solution “u” between interfaces from sub domains are discontinuous. u(“+”) = function(u(“-”)) or u(“-”) = function(u(“+”)). For example u(“+”) = 10*(u(“-”)). I don't know how can I impose jump condition on the system. Is it possible?

I marked the line between domains by 3.

u(“+”) = 10*(u(“-”)) in interior line 3.

Follow DG formulation:

a = dot(D*S*grad(v), grad(u))*dx \
   - dot(avg(grad(v)), jump(u, n))*dS \
   - dot(jump(v, n), avg(grad(u)))*dS \
   + alpha/h_avg*dot(jump(v, n), jump(u, n))*dS \
   - dot(D*S*grad(v), u*n)*ds(1) - dot(v*n, D*S*grad(u))*ds(1)\
   - dot(D*S*grad(v), u*n)*ds(2) - dot(v*n, D*S*grad(u))*ds(2)\
+ (gamma/h)*v*u*ds(1) + (gamma/h)*v*u*ds(2)\

L = v*f*dx- u0*dot(D*S*grad(v), n)*ds(1) + (gamma/h)*u0*v*ds(1) \
    - u1*dot(D*S*grad(v), n)*ds(2) + (gamma/h)*u1*v*ds(2) \

How can i impose this jump condition?

asked Mar 22, 2017 by LeoCosta FEniCS User (1,190 points)
...