I am looking for a rigorous way to deal with discontinuous thermal conductivity $K(x)$ in the heat equation (e.g. on the boundary of two different materials)
$$ u' = \nabla_x\cdot (K(x)\nabla_x u) + \text{\{possible other terms\}},$$
where $u(t,x)$ is the temperature. Clearly the equation breaks down at discontinuity since the derivative of $K$ does not exist, what becomes the boundary condition of the non-discretized equation above to replace the discontinuity?
When the equation is discretized, for basic finite difference scheme at boundary it is possible to in a loose sense use the "average value" (is there a derivation somewhere?) $$K(x)\approx (1/2) (K(x+1)+K(x)).$$
For finite volume scheme not at the boundary $$Au' = \int\int\int (\nabla_x\cdot K\nabla_x u)dA$$ $$=\int\int (K\nabla_x u) \cdot \bar ndS$$ $$=K\int \int\nabla_xu \cdot \bar n dS$$ Let's say a finite difference scheme is applicable, although there could be more generality $$\approx K \sum_k (u(x_1,...,x_k+1,...,x_d) + u(x,...,x_k-1,...,x_d)-2u(x))$$
The average value approximation then yields $$\approx \sum_k \frac{1}{2}(K(x)+K(x_1,...,x_k+1,...,x_d)) \cdot (u(x_1,...,x_k+1,...,x_d) -u(x)) +...,$$ for the finite volume method, is it valid on the boundary? References to books are welcome.