Based on mesoscopic damage mechanics, a numerical code RFPA2D (dynamic version) is developed to simulate the spallation process of inhomogeneous medium induced by reflection of stress wave, and the influence of duration of stress wave on spallation is discussed. For convenience of description and discussion, the failure area in the immediate vicinity of loading position of model is divided into two zones, i.e. comminution zone and fracture zone; and the failure area caused by spalling in model is defined as spalling zone. The comminution zone is affected little by the duration of stress wave, but the fracture zone and the spalling zone are affected to a greater extent by duration, also, the stability of specimen is affected by the duration of stress wave. Furthermore, if the duration becomes significantly long, the fracture zone corresponding to the maximum extension of the radial tensile cracks will be dominant in specimen. If the duration of stress wave becomes short to some extent, the spalling zone corresponding to the maximum extension of the tangential tensile cracks will be dominant in specimen. In addition, if the duration of stress wave is long enough, the specimen may lose stability.