The sine-Gordon equation is a semilinear wave equation used to model many physical phenomenon like seismic events that includes earthquakes, slow slip and after-slip processes, dislocation in solids etc. Solution of homogeneous sine-Gordon equation exhibit soliton like structure that propagates without change in its shape and structure. The question whether solution of sine-Gordon equation still exhibit soliton like behavior under an external forcing has been challenging as it is extremely difficult to obtain an exact solution even under simple forcing like constant. In this study solution to an inhomogeneous sine-Gordon equation with Heaviside forcing function is analyzed. Various one-dimensional test cases like kink and breather with no flux and non-reflecting boundary conditions are studied. (C) 2017 Elsevier B.V. All rights reserved.