create.mesh.2.5D: Create a 'mesh.2.5D' object from the nodes locations and the...

Description Usage Arguments Value Examples

View source: R/mesh.R

Description

Create a mesh.2.5D object from the nodes locations and the connectivty matrix

Usage

1
create.mesh.2.5D(nodes, triangles, order = 1)

Arguments

nodes

A #nodes-by-3 matrix specifying the locations of each node.

triangles

A #triangles-by-3 (when order = 1) or #triangles-by-6 (when order = 2) matrix, specifying the indices of the nodes in each triangle.

order

Either '1' or '2'. It specifies wether each mesh triangle should be represented by 3 nodes (the triangle' vertices) or by 6 nodes (the triangle's vertices and midpoints). These are respectively used for linear (order = 1) and quadratic (order = 2) Finite Elements. Default is order = 1.

Value

An object of the class mesh.2.5D with the following output:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(fdaPDE)

## Upload the hub2.5D the data
data(hub2.5D)
hub2.5D.nodes = hub2.5D$hub2.5D.nodes
hub2.5D.triangles = hub2.5D$hub2.5D.triangles

## Create mesh from nodes and connectivity matrix:
mesh = create.mesh.2.5D(nodes = hub2.5D.nodes, triangles = hub2.5D.triangles)
plot(mesh)

fdaPDE documentation built on July 2, 2020, 2:22 a.m.