Message Boards Message Boards

Add Neumann boundary conditions to seepage analysis

Posted 2 years ago

Laplacian Equation

I want to conduct seepage analysis in Mathematica. See the model in the screenshot and the attached notebook. The problem is to find the numerical solution of the Laplacian equation.

solution = NDSolveValue[{\!\(
\*SubsuperscriptBox[\(\[Del]\), \({x, y}\), \(2\)]\(u[x, y]\)\) == 
    NeumannValue[0, y == 0] + NeumannValue[0, x == 0] + 
     NeumannValue[0, x == width] + 
     NeumannValue[0, 
      y == height && (width/3 < x < (2 width)/3)], {dcond1, dcond2}}, 
  u, {x, y} \[Element] \[CapitalOmega]]

Model for seepage analysis

Neumann Boundary Condition

Note that the region is a rectangle. As shown in the screenshot, there is no flux through the left boundary, the right boundary and the bottom boundary. However, water can flow along these boundary. See the first screenshot.

Incorrect Results

The second screenshot shows incorrect results.Wrong U[x,y] I checked the gradient of u[x,y].

v = Grad[-solution[x, y], {x, y}]

I see the vector field is incorrect. The NeumannValue function is not working in the notebook. See the vector plot which presents the result of v. gradient v How should I add Neumann Boundary Conditions to produce similar results in the first screenshot.

POSTED BY: edison0613
Posted 2 years ago

Cross posted in Mma.SE. Solved there.

POSTED BY: xzczd  
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract