1: \begin{abstract}
2: We analyze the wave equation in mixed form, with periodic and/or
3: Dirichlet homogeneous boundary conditions, and nonconstant coefficients
4: that depend on the spatial variable. For the discretization, the weak
5: form of the second equation is replaced by a strong form, written in
6: terms of a projection operator. The system of equations is discretized
7: with B-splines forming a De Rham complex along with suitable commutative
8: projectors for the approximation of the second equation. The discrete
9: scheme is energy conservative when discretized in time with a
10: conservative method such as Crank-Nicolson.
11: We propose a convergence analysis of the method to study the dependence
12: with respect to the mesh size $h$, with focus on the consistency error.
13: Numerical results show optimal convergence of the error in energy norm,
14: and a relative error in energy conservation for long-time simulations of
15: the order of machine precision.
16: \end{abstract}
17: