Physics informed neural network for dynamic stress prediction