Interface conditions describe the behaviour of electromagnetic fields; electric field, electric displacement field, and the magnetic field at the interface of two materials. The differential forms of these equations require that there is always an open neighbourhood around the point to which they are applied, otherwise the vector fields and H are not differentiable. In other words, the medium must be continuous[no need to be continuous][This paragraph need to be revised, the wrong concept of "continuous" need to be corrected]. On the interface of two different media with different values for electrical permittivity and magnetic permeability, that condition does not apply.
However, the interface conditions for the electromagnetic field vectors can be derived from the integral forms of Maxwell's equations.
n12 x (E2-E1)=0
where:
n12
Therefore, the tangential component of E is continuous across the interface.
(D2-D1) ⋅ n12=\sigmas
n12
\sigmas
This can be deduced by using Gauss's law and similar reasoning as above.
Therefore, the normal component of D has a step of surface charge on the interface surface. If there is no surface charge on the interface, the normal component of D is continuous.
(B2-B1) ⋅ n12=0
where:
n12
Therefore, the normal component of B is continuous across the interface (the same in both media). (The tangential components are in the ratio of the permeabilities.)
n12 x (H2-H1)=js
where:
n12
js
Therefore, the tangential component of H is discontinuous across the interface by an amount equal to the magnitude of the surface current density. The normal components of H in the two media are in the ratio of the permeabilities.
There are no charges nor surface currents at the interface, and so the tangential component of H and the normal component of D are both continuous.
There are charges and surface currents at the interface, and so the tangential component of H and the normal component of D are not continuous.
The boundary conditions must not be confused with the interface conditions. For numerical calculations, the space where the calculation of the electromagnetic field is achieved must be restricted to some boundaries. This is done by assuming conditions at the boundaries which are physically correct and numerically solvable in finite time. In some cases, the boundary conditions resume to a simple interface condition. The most usual and simple example is a fully reflecting (electric wall) boundary - the outer medium is considered as a perfect conductor. In some cases, it is more complicated: for example, the reflection-less (i.e. open) boundaries are simulated as perfectly matched layer or magnetic wall that do not resume to a single interface.