Three dimensional finite elements modeling of superconductors