Algorithm of the mould thermal parameters identification in the system casting–mould–environment