Multiple Boundary conditions on one boundary
Hi folks,
My question is that how we can apply both Neumann and Dirichlet boundary conditions on one boundary. I am solving a second order one dimensional PDE with two Neumann boundary conditions (zero flux on boundaries). Since we do not have a Dirichlet boundary, the solution does not have a unique solution. To overcome this issue, I apply a Dirichlet boundary condition on one the boundaries. But I still need zero net flux on both boundaries. By applying Dirichlet boundary condition on one of the boundaries, automatically, the Neumann boundary condition cancels out and lead to an incorrect solution (no more zero slope on this boundary). How can I apply the Dirichlet boundary condition by not canceling out the Neumann boundary condition.
Any help is deeply appreciated.
Best,
Mohammad
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Anders Logg
- Solved:
- Last query:
- Last reply: