H2Lib
3.0
|
Representation of a trial space with piecewise linear nodal basis functions on a two-dimensional triangular mesh. More...
#include <tri2dp1.h>
Data Fields | |
pctri2d | t2 |
Triangular Mesh, represented by tri2d object. | |
uint | ndof |
Number of degrees of freedom. | |
uint | nfix |
Number of fixed vertices. | |
bool * | is_dof |
Determines whether a vertex is a degree of freedom. | |
uint * | idx2dof |
Consecutive indices for all degrees of freedom and all fixed vertices. | |
Representation of a trial space with piecewise linear nodal basis functions on a two-dimensional triangular mesh.
Since the mesh itself is represented by a tri2d object, we only have to keep track of which vertices are degrees of freedom and provide them with consecutive indices for the algebraic functions.
The remaining vertices are also provided with consecutive indices, allowing us to construct interaction matrices that describe how non-zero values in the fixed vertices influence the right-hand side of a variational equation. This mechanism is useful, e.g., for handling inhomogeneous Dirichlet boundary conditions.