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

Go to the source code of this file.

Data Structures

struct  _tri2drt0
 Representation of a trial space with lowest order Raviart-Thomas basis functions on a two-dimensional triangular mesh. More...
 

Typedefs

typedef struct _tri2drt0 tri2drt0
 Representation of a trial space with Raviart-Thomas edge basis functions on a two-dimensional triangular mesh.
 
typedef tri2drt0ptri2drt0
 Pointer to tri2drt0 object.
 
typedef const tri2drt0pctri2drt0
 Pointer to a constant tri2drt0 object.
 

Functions

ptri2drt0 new_tri2drt0 (pctri2d rt)
 Create a tri2drt0 object using a tri2d mesh. More...
 
void update_tri2drt0 (ptri2drt0 rt0)
 Update the numbers of degrees of freedoms and fixed edges after mixed boundary conditions were set. More...
 
void del_tri2drt0 (ptri2drt0 dc)
 Delete a tri2drt0 object. More...
 
psparsematrix build_tri2drt0_A_sparsematrix (pctri2drt0 dc)
 Create a sparsematrix with a sparsity pattern matching the lowest order Raviart-Thomas functions and representing the upper left block of the saddle-point problem. More...
 
psparsematrix build_tri2drt0_B_sparsematrix (pctri2drt0 dc)
 Create a sparsematrix with a sparsity pattern matching the lowest order Raviart-Thomas functions for the flux and piecewise- constant functions for the pressure representing the lower left block of the saddle-point problem. More...
 
psparsematrix build_tri2drt0_A_interaction_sparsematrix (pctri2drt0 dc)
 Create a sparsematrix with a sparsity pattern matching the lowest order Raviart-Thomas functions and representing the upper left block of the saddle-point problem representing the interaction matrix. More...
 
psparsematrix build_tri2drt0_B_interaction_sparsematrix (pctri2drt0 dc)
 Create a sparsematrix with a sparsity pattern matching the lowest order Raviart-Thomas functions for the flux and piecewise- constant functions for the pressure representing the lower left block of the saddle-point problem representing the interaction matrix. More...
 
void assemble_tri2drt0_darcy_A_sparsematrix (pctri2drt0 dc, psparsematrix A, psparsematrix Af, pavector K)
 Assemble the upper left block of the system matrix. More...
 
void assemble_tri2drt0_darcy_B_sparsematrix (pctri2drt0 dc, psparsematrix A, psparsematrix Af)
 Assemble the lower left block of the system matrix. More...
 
void assemble_tri2drt0_b_D_avector (pctri2drt0 dc, field(*f)(const real *e, void *fdata), void *fdata, pavector d)
 Discretize Dirichlet boundary values. More...
 
void assemble_tri2drt0_b_f_avector (ptri2drt0 dc, field(*f)(const real *x, void *fdata), void *fdata, pavector fv)
 Discretize an $L^2$-functional. More...
 
void assemble_tri2drt0_g_N_avector (ptri2drt0 dc, field(*f)(const uint *e, void *data), void *data, pavector g)
 Discretize Neumann Boundary values. More...
 
real norml2_pressure_centroid_tri2drt0 (pctri2drt0 dc, field(*f)(const real *x, void *fdata), void *fdata, pcavector x2)
 Compute the $L^2$-norm of the discretization error for the pressure using the midpoint rule. More...
 
real norml2_pressure_edgemidpoint_tri2drt0 (pctri2drt0 dc, field(*f)(const real *x, void *fdata), void *fdata, pcavector x2)
 Compute the $L^2$-norm of the discretization error for the pressure using the edge midpoint rule. More...
 
real norml2_flux_centroid_tri2drt0 (pctri2drt0 dc, void(*f)(const real *x, void *fdata, pavector v), void *fdata, pcavector x1, pcavector g)
 Compute the $L^2$-norm of the discretization error for the flux using the midpoint rule. More...
 
real norml2_flux_edgemidpoint_tri2drt0 (pctri2drt0 dc, void(*f)(const real *x, void *fdata, pavector v), void *fdata, pcavector x1, pcavector g)
 Compute the $L^2$-norm of the discretization error for the flux using the edge midpoint rule. More...
 
pclustergeometry build_tri2drt0_A_clustergeometry (pctri2drt0 rt, uint *idx)
 Create a clustergeometry object for the clustering ofthe degrees of freedom (edges). More...
 
pclustergeometry build_tri2drt0_B_clustergeometry (pctri2drt0 rt, uint *idx)
 Create a clustergeometry object for the clustering of the triangles. More...
 

Detailed Description

Author
Nadine Albrecht