Simulation of Heat Assisted Magnetic Recording System