How do I solve the Laplace equation using Robbin's Boundary Conditions?

3 replies · 2K views · last reply
shreddinglicks
Messages
225
Reaction score
7
Homework Statement
Equation

(d^2 u)/(dx^2 )+(d^2 u)/(dy^2 )=0

boundary conditions

u(0,y)=0
u(a,y)=50
u(x,0)=0
u^' (x,b)=-h[u(x,b)-70]
Relevant Equations
(d^2 u)/(dx^2 )+(d^2 u)/(dy^2 )=0
I've tried a few things. I did one method to try to accomplish the removal of the -70 in the derivative boundary condition. It came out as below. When plotting it however it gave a solution that didn't make sense.

Handwritten derivation of a Laplace equation problem: d2u/dx2 + d2u/dy2 = 0, boundary conditions u(0,y)=0, u(a,y)=50, u(x,0)=0, u'(x,b) = -h[u(x,b)-70], then substitution u = psi(y) + v(x,y), psi(y) = 70h y/(1+bh), and separated forms X(x) and Y(y) with new boundary conditions.


Handwritten separation of variables solution: Y(y) = c3 sin(λy), X(x) = c2 sinh(λx), and u(x, y) = 70h/(1 + bh) y + c5 sinh(λx) sin(λy).
 
Last edited:
What is the boundary condition at [itex]x = a[/itex]? What do you mean by the notation [itex]u'[/itex], since [itex]u[/itex] is a function of 2 varaibles? Do you mean [itex]\frac{\partial u}{\partial x}[/itex]? Is [itex]h[/itex] a constant?

If that is correct, then I would set [tex] u(x,y) = \frac{70h}{1 + ah}x + v(x,y)[/tex] where [itex]v[/itex] satisfies [tex]\begin{split}<br /> v(0,y) = 0, \\<br /> \frac{\partial v}{\partial x}(a,y) + hv(a,y) &= 0, \\<br /> v(x,0) &= -\frac{70h}{1 + ah}x, \\<br /> v(x,b) &= 50 - \frac{70h}{1 + ah}x. \end{split}[/tex]
 
pasmith said:
What is the boundary condition at [itex]x = a[/itex]? What do you mean by the notation [itex]u'[/itex], since [itex]u[/itex] is a function of 2 varaibles? Do you mean [itex]\frac{\partial u}{\partial x}[/itex]? Is [itex]h[/itex] a constant?

If that is correct, then I would set [tex] u(x,y) = \frac{70h}{1 + ah}x + v(x,y)[/tex] where [itex]v[/itex] satisfies [tex]\begin{split}<br /> v(0,y) = 0, \\<br /> \frac{\partial v}{\partial x}(a,y) + hv(a,y) &= 0, \\<br /> v(x,0) &= -\frac{70h}{1 + ah}x, \\<br /> v(x,b) &= 50 - \frac{70h}{1 + ah}x. \end{split}[/tex]
Yes, exactly as you said. du/dx and h is a constant.

I realized I made an error.

The conditions are actually

Four boundary conditions: u(0, y) = 0, u(a, y) = 50, u(x, 0) = 0, and u'(x, b) = -h[u(x, b) - 70].

I'll fix it also on the original post.

It's what you have but y instead of x.

Equation: 50 = (70h)/(1 + bh) y + c5 sinh(λa) sin(λy)

Displayed equation for u(x, y): 70hy/(1 + bh) + [integral from a to b of (50 - 70h/(1 + bh) y) sin(λy) dy] / [sinh(λa) times integral from a to b of sin(λy)^2 dy] times sinh(λx) sin(λy).


The problem is, this gives an answer where for all y when u(0,y)=0 when x should be zero, x does not equal zero.

The funny thing is if I manipulate the equation by multiplying the first term by x/a. I can plot a solution that makes sense.

Typeset formula for u(x, y) as a sum of two terms multiplied by sinh(lambda x) sin(lambda y), with an integral over y from a to b in the numerator and sinh(lambda a) in the denominator.
 
Attachments
  • Equation: 50 = (70h / (1 + bh)) y + c5 sinh(lambda x) sin(lambda y), with lambda written as λ.
    1730136289863.png
    2.4 KB · Views: 95
  • Typeset equation for u(x, y) = 70h/(1 + bh) y + [integral from a to b of (50 - 70h/(1 + bh) y) sin(λy) dy] / [integral from a to b of sin(λy)^2 dy] times sinh(λx) sin(λy).
    1730136397561.png
    4.8 KB · Views: 86
  • Solution formula u(x, y) = 70hy x/(1 + bh a) + [integral from a to b of (50 - 70h/(1 + bh) y) sin(λy) dy] / [integral from a to b of sin(λy)^2 dy] times sinh(λx) sin(λy).
    1730136876131.png
    2 KB · Views: 124
Last edited:
You're only satisfying the boundary condition at [itex]x = a[/itex]. No wonder you don't get the right value at [itex]x = 0[/itex].

Setting [itex]u(x,y) = \frac{70hy}{1 + bh} + v(x,y)[/itex] gives [tex]\begin{split} v(0,y) &= -\frac{70h}{1 + bh}y \\<br /> v(a,y) &= 50 - \frac{70h}{1 + bh}y \\<br /> v(x,0) &= 0 \\<br /> \left.\frac{\partial v}{\partial y}\right|_{(x,b)} + hv(x,b) &= 0. \end{split}[/tex] This gives you [tex] u(x,y) = \frac{70h}{1 + bh}y + \sum_{n=1}^\infty X_n(x) \sin k_n y.[/tex] Now [itex]X_n[/itex] is a linear combination of [itex]\cosh k_n x[/itex] and [itex]\sinh k_n x[/itex]. But instead of taking [itex]X_n(0) = 0[/itex], you must take [tex]\sum_{n=1}^\infty X_n(0) \sin k_n y + \frac{70h}{1 + bh}y = 0.[/tex] You can't just ignore the [itex]\cosh k_n x[/itex] solution, you need it to satisfy this condition.
It is, however, more convenient to take advantage of the fact that [tex]\sinh k_n(a- x) \equiv \sinh k_n a \cosh k_n x - \cosh k_n a \sinh k_n x[/tex] is a linear combination of [itex]\cosh k_n x[/itex] and [itex]\sinh k_n x[/itex] and set [tex] X_n(x) = \frac{A_n \sinh k_n(a-x) + B_n \sinh k_n x}{\sinh k_n a}[/tex] so that [tex]\begin{split}<br /> 0 &= u(0,y) = \frac{70h}{1 + bh}y + \sum_{n=1}^\infty A_n \sin k_n y \\<br /> 50 &= u(a,y) = \frac{70h}{1 + bh}y + \sum_{n=1}^\infty B_n \sin k_n y \end{split}[/tex]