H2Lib
3.0

Representation of a trial space with lowest order RaviartThomas basis functions on a twodimensional triangular mesh. More...
#include <tri2drt0.h>
Data Fields  
pctri2d  t2 
Triangular mesh, represented by tri2d object.  
uint  ndof 
Number of degrees of freedom (here: inner edges + Dirichlet edges).  
uint  nfix 
Number of fixed edges (here: Neumann edges).  
uint *  is_dof 
Determines whether an edge is a degree of freedom or fixed. More...  
uint *  idx2dof 
Consecutive indices for all degrees of freedom and all fixed edges.  
Representation of a trial space with lowest order RaviartThomas basis functions on a twodimensional triangular mesh.
Since the mesh itself is represented by a tri2d object, we only have to keep track of which edges are degrees of freedom and provide them with consecutive indices for the algebraic functions.
The remaining edges are also provided with consecutive indices, allowing us to construct interaction matrices that describe how nonzero values in the fixed edges influence the righthand side of a variational equation. This mechanism is useful, e.g., for handling inhomogeneous Dirichlet boundary conditions.
uint* is_dof 
Determines whether an edge is a degree of freedom or fixed.
After the call of new_tri2drt0 : 0 inner edge, 1 boundary edge. Use 1 Dirichlet edge and 2 Neumann edge for mixed boundary conditions