laplace operator for Function class
divergence operator FunctionGrad
Value
A R6 class representing the laplace operator applied to the function passed as parameter.
A R6 class representing the diffusion term of a second order linear differential operator.
Examples
if (FALSE) {
library(femR)
data("unit_square")
mesh <- Mesh(unit_square)
Vh <- FunctionSpace(mesh)
f <- Function(Vh)
laplace_f <- laplace(f)
}
if (FALSE) {
library(femR)
data("unit_square")
mesh <- Mesh(unit_square)
Vh <- FunctionSpace(mesh)
f <- Function(Vh)
K <- matrix(c(1,2,1,0),nrow=2,ncol=2)
diffusion <- div(K*grad(f))
}