rSPDE.fem2d {rSPDE} | R Documentation |
Finite element calculations for problems in 2D
Description
This function computes mass and stiffness matrices for a mesh in 2D, assuming Neumann boundary conditions.
Usage
rSPDE.fem2d(FV, P)
Arguments
FV |
Matrix where each row defines a triangle |
P |
Locations of the nodes in the mesh. |
Value
The function returns a list with the following elements
G |
The stiffness matrix with elements |
C |
The mass matrix with elements |
Cd |
The mass lumped matrix with diagonal elements |
Hxx |
Matrix with elements |
Hyy |
Matrix with elements |
Hxy |
Matrix with elements |
Hyx |
Matrix with elements |
Author(s)
David Bolin davidbolin@gmail.com
See Also
Examples
P <- rbind(c(0,0), c(1,0), c(1,1), c(0,1))
FV <- rbind(c(1,2,3), c(2,3,4))
fem <- rSPDE.fem2d(FV,P)
[Package rSPDE version 2.3.3 Index]