Modeling of cast iron materials related to machining