Do supernova simulation in 1D