H2Lib  3.0
Data Structures | Typedefs | Functions
tri2dp1.h File Reference
#include "sparsematrix.h"
#include "tri2d.h"
#include "clustergeometry.h"

Go to the source code of this file.

Data Structures

struct  _tri2dp1
 Representation of a trial space with piecewise linear nodal basis functions on a two-dimensional triangular mesh. More...
 

Typedefs

typedef struct _tri2dp1 tri2dp1
 Representation of a trial space with piecewise linear nodal basis functions on a two-dimensional triangular mesh.
 
typedef tri2dp1ptri2dp1
 Pointer to a tri2p1 object.
 
typedef const tri2dp1pctri2dp1
 Pointer to a constant tri2p1 object.
 

Functions

ptri2dp1 new_tri2dp1 (pctri2d gr)
 Create a tri2p1 object using a tri2d mesh. More...
 
void del_tri2dp1 (ptri2dp1 dc)
 Delete a tri2p1 object. More...
 
psparsematrix build_tri2dp1_sparsematrix (pctri2dp1 dc)
 Create a sparsematrix with a sparsity pattern matching the nodal basis functions representing the system matrix. More...
 
psparsematrix build_tri2dp1_interaction_sparsematrix (pctri2dp1 dc)
 Create a sparsematrix with a sparsity pattern matching the nodal basis functions representing the interaction matrix. More...
 
psparsematrix build_tri2dp1_prolongation_sparsematrix (pctri2dp1 dfine, pctri2dp1 dcoarse, pctri2dref rf)
 Create a prolongation matrix. More...
 
void assemble_tri2dp1_laplace_sparsematrix (pctri2dp1 dc, psparsematrix A, psparsematrix Af)
 Assemble stiffness matrix. More...
 
void assemble_tri2dp1_mass_sparsematrix (pctri2dp1 dc, psparsematrix M, psparsematrix Mf)
 Assemble mass matrix. More...
 
void assemble_tri2dp1_dirichlet_avector (pctri2dp1 dc, field(*d)(const real *x, void *fdata), void *fdata, pavector dv)
 Discretize Dirichlet boundary values. More...
 
void assemble_tri2dp1_functional_avector (ptri2dp1 dc, field(*f)(const real *x, void *fdata), void *fdata, pavector fv)
 Discretize an $L^2$-functional. More...
 
real normmax_tri2dp1 (pctri2dp1 dc, field(*u)(const real *x, void *fdata), void *fdata, pavector xs)
 Compute the vertex-wise maximum norm of the discretization error. More...
 
real norml2_tri2dp1 (pctri2dp1 dc, field(*f)(const real *x, void *fdata), void *fdata, pcavector xs, pcavector xf)
 Compute the $L^2$-norm of the discretization error. More...
 
pclustergeometry build_tri2dp1_clustergeometry (pctri2dp1 p1, uint *idx)
 Create a clustergeometry object for a FEM-discretisation with p1-functions. More...
 

Detailed Description

Author
Nadine Albrecht