MassMatrix
Theory
Example 1
This example shows how to use the subroutine called MassMatrix
to create a mass matrix in space domain.
Here, we want to do the following.
rho
can be a constant, or a function of spatial coordinates, or some nonlinear function.
In this example, we use
- ReferenceLine element,
- QuadraturePoint are
GaussLegendre
- order of integrand is 2.
This type of mass matrix is useful in cases where is a constant.