| rSPDE.fem2d | R Documentation |
This function computes mass and stiffness matrices for a mesh in 2D, assuming Neumann boundary conditions.
rSPDE.fem2d(FV, P)
FV |
Matrix where each row defines a triangle |
P |
Locations of the nodes in the mesh. |
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 |
Bx |
Matrix with elements |
By |
Matrix with elements |
David Bolin davidbolin@gmail.com
rSPDE.fem1d()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.