Prediction And Control Of Thermal History In Laser Powder Bed Fusion