Deriving the derivative boundary conditions from natural formulation

4 replies · 3K views · last reply
maistral
Messages
235
Reaction score
17
TL;DR
How to derive the finite difference derivative formulation from the natural boundary formulation?
PS: This is not an assignment, this is more of a brain exercise.

I intend to apply a general derivative boundary condition f(x,y). While I know that the boxed formulation is correct, I have no idea how to acquire the same formulation if I come from the general natural boundary condition formulation. I honestly do not know what am I doing wrong. Can someone check where am I incorrect?
Handwritten derivation on lined paper: a finite-difference expansion of the normal derivative dT/dx = f(x,y) at a boundary point, with the boxed result T(x-dx,y) = T(x+dx,y) - 2dx f(x,y), plus a side sketch of a circle with an arrow and the note cos(theta) dT/dx + sin(theta) dT/dy = f(x,y).
 
  • Like
Likes   Reactions: exln
Chestermiller said:
Looks OK. So what is the problem?

The left side and the right side have different results.
 
If ##q_x## is the heat flux in the x direction, then ##q_x## is always given by $$q_x=-k\frac{dT}{dx}$$irrespective of whether it is the left- or the right boundary. Of course, the sign of the flux in the x direction can be negative. So, at the fictitious point at the left boundary, you have:
$$T(-\Delta x)=T(+\Delta x)+q_x(0)\Delta x$$and, at the fictitious point at the right boundary, you have:
$$T(L+\Delta x)=T(L-\Delta x)-q_x(L)\Delta x$$