Create FunctionSpace object
Usage
FunctionSpace(mesh, fe_order)
# S4 method for Mesh,numeric
FunctionSpace(mesh, fe_order)
# S4 method for Mesh,missing
FunctionSpace(mesh)
Arguments
- mesh
A mesh object created by Mesh
:
- fe_order
Either '1' or '2'. It specifies the finite element order.
Value
A R6 object representing a Function Space.
Examples
if (FALSE) {
library(femR)
data("unit_square")
mesh <- Mesh(unit_square)
Vh <- FunctionSpace(mesh = mesh, fe_order = 1)
}
if (FALSE) {
library(femR)
data("unit_square")
mesh <- Mesh(unit_square)
Vh <- FunctionSpace(mesh)
}