fm_collect: Make a collection function space

View source: R/collect.R

fm_collectR Documentation

Make a collection function space

Description

[Experimental] Collection function spaces. The interface and object storage model is experimental and may change.

Usage

fm_collect(x, ...)

Arguments

x

list of function space objects, such as fm_mesh_2d(), all of the same type.

...

Currently unused

Value

A fm_collect or fm_collect_list object. Elements of fm_collect:

fun_spaces

fm_list of function space objects

manifold

character; manifold type summary, obtained from the function spaces.

See Also

Other object creation and conversion: fm_as_collect(), fm_as_fm(), fm_as_lattice_2d(), fm_as_lattice_Nd(), fm_as_mesh_1d(), fm_as_mesh_2d(), fm_as_mesh_3d(), fm_as_segm(), fm_as_sfc(), fm_as_tensor(), fm_lattice_2d(), fm_lattice_Nd(), fm_mesh_1d(), fm_mesh_2d(), fm_segm(), fm_simplify(), fm_tensor()

Examples

m <- fm_collect(list(
  A = fmexample$mesh,
  B = fmexample$mesh
))
m2 <- fm_as_collect(m)
m3 <- fm_as_collect_list(list(m, m))
c(fm_dof(m$fun_spaces[[1]]) + fm_dof(m$fun_spaces[[2]]), fm_dof(m))
fm_basis(m, loc = tibble::tibble(
  loc = fmexample$loc_sf,
  index = c(1, 1, 2, 2, 1, 2, 2, 1, 1, 2)
), full = TRUE)
fm_basis(m, loc = tibble::tibble(
  loc = rbind(c(0, 0), c(0.1, 0.1)),
  index = c("B", "A")
), full = TRUE)
fm_evaluator(m, loc = tibble::tibble(loc = cbind(0, 0), index = 2))
names(fm_fem(m))
fm_diameter(m)

fmesher documentation built on June 12, 2025, 5:09 p.m.