Temperature distribution of metallized capacitors