Numerical methods and its application in freezing process