2.2. Space-time methods vs. the method of lines#
The first decision that has to be made when deciding on a numerical method for approximately solving the PDEs from Section 1 is whether to discretize the whole space-time cylinder \([0,T]\times \Omega\subset \mathbb R^{d+1}\) or apply the space and time discretization one after another.
In the following we choose the latter approach which is known in the literature as method of lines and can be traced back to the 1960’s where it was used with finite-difference schemes as spacial discretization.
We present this approach in the context of Galerkin approximations.
Suppose we want to solve the homogeneous acoustic wave problem initial value problem
Up to this point we kept the space where we actually look for the solution \(u\) vague. Multiplying the first line of (2.1) by a test-function \(u'\in H^1(\Omega)\) integrating over the domain \(\Omega\) and using integration by parts we obtain the spacial weak formulation
By the boundary conditions we assume the boundary term above to vanish.
Next we pick a finite dimensional subspace \(V\subset H^1(\Omega)\) with a suitable basis \(b_0,\ldots, b_{N}\), i.e.,
and approximate the time-dependent solution \(u\) by
where \(\tilde u_j\in C^2([0,T])\). Inserting (2.3) and replacing \(u'\) by each basis function \(b_j\) respectively (the equality has to hold for every choice of test function) yields the system of \(N\) ordinary differential equations (ODEs)
If \(u_0\) is not by chance an element of \(V\) the initial condition \(u(0,\cdot)=u_0\) cannot be satisfied by our approximate solution \(\tilde u\) thus we have to use an approximate initial condition \(\tilde u(0,\cdot) = \tilde u^0\in V\) where \(\tilde u^0=\sum_{j=0}^{N}\tilde u^0_j b_j\approx u_0\) is usually chosen as an orthogonal projection or interpolation.
Using the vectors \(\mathbf u=(\tilde u_0,\ldots, \tilde u_{N})^\top\) and \(\mathbf u_0=(\tilde u^0_0,\ldots, \tilde u^0_{N})^\top\) and the matrices \(\mathbf M, \mathbf S\) defined by
we may rewrite the system (2.4) including initial conditions in the compact form
The solution of the semi-discrete system (2.5) may now be approximated using appropriate time-integration techniques for ordinary differential equations.
Thus, to obtain a full method it remains to pick the discrete basis \(b_j\) and the time-stepping scheme.