3.4 Mechanical properties3.4.1 Determination of residual stressResidual stress consists of thermal stress originating by the difference in the substrate and the coating thermal expansion coefficients, and the intrinsic stress caused by ion bombardment, lattice mismatch and chemical reactions of the layer. The residual stress in the thin films was calculated using the Stoney equation: