A numerical model for laser targets