Temperature distribution simulations during electron beam freeform fabrication process based on the fully threaded tree