Now, we will build our simulation model with Matlab. Go firstly to Matlab and then Simulink and open new project
We start with percussion piston by using {equation no. 1}. Our input will be the time and angular velocity and the output is S(t) according to our equation
The second step is modeling of air cushion force. Our input is X and Xs and the output is Fl according to {equation no. 3} and thus we get
Then the impact force and our input are Xs and Xs_dot {equation no. 5} we get
The next step is the friction force and here our input is Xs_dot according to {equation no. 2} thus
Now we can get
Xs_2dot (double dot) by adding the forces and dividing by mass
{equation no. 4} see the image below
Till now all our forces are completed but we missed some of the inputs, namely Xs_dot and Xs and we can get these two inputs implicitly by using two integration steps
Congradulation !! our model completed and what we have to do in the next few steps just extract our data