Weird minus sign in PDE discretization

27 Views Asked by At

Using the Finite Volume Method, one can discretise a PDE in the following way:

enter image description here

But what I don't understand is why the minus sign (highlighted with yellow) appears in the equation below. It feels that it should be the plus sign, yet it must be the minus sign. I would appreciate if someone could please clarify.

enter image description here

1

There are 1 best solutions below

0
On BEST ANSWER

I suspect that $u_j = g_j$ for $j\in n_i\cap m$. This term is moved to the rhs. The minus sign is the sign of $u_i$ in the red formula above.