fm_mesh_1d {fmesher} | R Documentation |
Make a 1D mesh object
Description
Create a fm_mesh_1d
object.
Usage
fm_mesh_1d(
loc,
interval = range(loc),
boundary = NULL,
degree = 1,
free.clamped = FALSE,
...
)
Arguments
loc |
B-spline knot locations. |
interval |
Interval domain endpoints. |
boundary |
Boundary condition specification. Valid conditions are
|
degree |
The B-spline basis degree. Supported values are 0, 1, and 2. |
free.clamped |
If |
... |
Additional options, currently unused. |
Value
An fm_mesh_1d
object
Author(s)
Finn Lindgren finn.lindgren@gmail.com
See Also
Other object creation and conversion:
fm_as_fm()
,
fm_as_lattice_2d()
,
fm_as_mesh_1d()
,
fm_as_mesh_2d()
,
fm_as_segm()
,
fm_as_sfc()
,
fm_as_tensor()
,
fm_lattice_2d()
,
fm_mesh_2d()
,
fm_segm()
,
fm_simplify()
,
fm_tensor()
Examples
if (require("ggplot2")) {
m <- fm_mesh_1d(c(1, 2, 3, 5, 8, 10),
boundary = c("neumann", "free"),
degree = 2
)
ggplot() +
geom_fm(data = m, xlim = c(0.5, 10.5))
}
[Package fmesher version 0.1.7 Index]