Solution procedure
The finite element system of equations is

Let's assume that the mass matrix is diagonal. Let us also assume that we would like to solve this problem using an explicit method that uses central differencing.
Let the time step size be
. Let us also assume that the time step is constant. Then, at time step
, the time is
.
Let

Let us take a half step to compute the velocity at the middle of the
timestep. Then,

We will use this half-step velocity to compute the acceleration

Now,

Therefore,

Algorithm
- Initialize:
- Set
and
.
- Set the initial velocities (
) at the nodes.
- Set the initial accelerations (
) at the nodes.
- Set the initial stresses (
) at the element Gauss points.
- Compute the lumped mass
at the nodes.
- Set the displacements and velocities at the first time step:
- Displacement:

- Velocity:

- Apply essential BCs:
![{\displaystyle [\mathbf {v} ^{1/2}]_{\Gamma _{v}}={\bar {\mathbf {v} }}(\mathbf {x} ,\Delta t/2)~.}](../791f69446d59f31b7feb4e236db2e08fdb1d8822.svg)
- Update the nodal displacements:

- Set
and
.
- Loop through the following steps until
.
- For each element (at the Gauss points):
- Compute the strain measure:

- Compute the stress:

- For each node:
- Compute the internal force
.
- Compute the external force
.
- Compute the total force
.
- Compute the acceleration
: 
- Update the velocity
. 
- Apply the essential boundary conditions.
- Update the displacement
. 
- Update the counters:
,
.
Stability of the explicit algorithm
If the time step
is too large, the algorithm may not be stable and may give unreasonable results. To provide a check on the time step size, we use the CFL (Courant-Friedrichs-Lewy) condition to determine
. This condition (in 1-D) states that

where
is the initial length of the element, and
is speed of sound in the material (wavespeed) given by
