Current computation on complex structures by finite-element method