Modeling the heat treatment of superalloy forgings