Text this: Numerical simulation on macrosegregation of ingots with dynamic shrinkage porosity and dendrite microstructure