Computation of lightning protection