A unified constitutive material model with application to machining