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

Go to the source code of this file.

Data Structures

struct  _tet3dp1
 Representation of a trial space with piecewise linear nodal basis functions on a three-dimensional tetrahedral mesh. More...
 

Typedefs

typedef struct _tet3dp1 tet3dp1
 Representation of a trial space with piecewise linear nodal basis functions on a three-dimensional tetrahedral mesh.
 
typedef tet3dp1ptet3dp1
 Pointer to a tet3dp1 object.
 
typedef const tet3dp1pctet3dp1
 Pointer to a constant tet3dp1 object.
 

Functions

ptet3dp1 new_tet3dp1 (pctet3d gr)
 Create a tet3dp1 object using a tet3d mesh. More...
 
void del_tet3dp1 (ptet3dp1 dc)
 Delete a tet3dp1 object. More...
 
psparsematrix build_tet3dp1_sparsematrix (pctet3dp1 dc)
 Create a sparsematrix with a sparsity pattern matching the nodal basis functions. More...
 
psparsematrix build_tet3dp1_interaction_sparsematrix (pctet3dp1 dc)
 Create a sparsematrix with a sparsity pattern matching the nodal basis functions. More...
 
psparsematrix build_tet3dp1_prolongation_sparsematrix (pctet3dp1 dfine, pctet3dp1 dcoarse, pctet3dref rf)
 Create a prolongation matrix. More...
 
void assemble_tet3dp1_laplace_sparsematrix (pctet3dp1 dc, psparsematrix A, psparsematrix Af)
 Assemble stiffness matrix. More...
 
void assemble_tet3dp1_mass_sparsematrix (pctet3dp1 dc, psparsematrix M, psparsematrix Mf)
 Assemble mass matrix. More...
 
void assemble_tet3dp1_dirichlet_avector (pctet3dp1 dc, field(*f)(const real *x, void *fdata), void *fdata, pavector d)
 Discretize Dirichlet boundary values. More...
 
void assemble_tet3dp1_functional_avector (pctet3dp1 dc, field(*f)(const real *x, void *fdata), void *fdata, pavector b)
 Discretize an $L^2$-functional. More...
 
real normmax_tet3dp1 (pctet3dp1 dc, field(*f)(const real *x, void *fdata), void *fdata, pavector xs)
 Compute the vertex-wise maximum norm of the discretization error. More...
 
real norml2_tet3dp1 (pctet3dp1 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_tet3dp1_clustergeometry (pctet3dp1 p1, uint *idx)
 Create a clustergeometry object for a FEM-discretisation with p1-functions. More...
 

Detailed Description

Author
Steffen Börm