meaning of facet integrals in dg poisson
I am trying to implement a finite volume discretization to solve the drift-diffusion equations in semiconductor? I am assuming I have to use something similar to the dg-poisson demo.
What is the physical meaning for the extra terms in (ds, dS) in the dg-poisson demo? I am assuming they represent so type on conservation law. For example in 1D how can I write the fact that the current entering the cell is the same as the current exiting the cell. I define the current as J = grad(u). Do I add - dot(jump(v, n), avg(J))*dS to my form?
---------------from dg poisson demo---
# Define variational problem
a = dot(grad(v), grad(u))*dx \
- dot(grad(v), u*n)*ds \
- dot(v*n, grad(u))*ds \
+ gamma/h*v*u*ds \
- dot(avg(grad(v)), jump(u, n))*dS \
- dot(jump(v, n), avg(grad(u)))*dS \
+ alpha/h_
L = v*f*dx
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Chaffra Affouda for more information if necessary.