Learn R Programming

FEA (version 0.0.2)

ApplyBC.2d: ApplyBC.2d

Description

Boundary constraint for element centroids based on coordinate points. For the x & y direction per centroid create matrix with boundary 1(unfixed) or 0(fixed).

Usage

ApplyBC.2d(meshP, BoundConx, BoundCony)

Value

A data frame with constraint parameters applied to each node in the x and y directions. Formatted for use in reduced element matrix.

NodeKnownL

Constraint parameters

Arguments

meshP

Matrix (2 x n) containing coordinate points of the mesh

BoundConx

Boundary constraint for nodes in the x-direction

BoundCony

Boundary constraint for nodes in the y-direction

Examples

Run this code
data(triMesh)

meshP = triMesh$MeshPts$p
BoundConx = BoundCony = numeric(NROW(meshP))
BoundConx[1:NROW(meshP)] = BoundCony[1:NROW(meshP)] = 1
BoundConx[c(10, 11, 12)] = BoundCony[c(10, 11, 12)] = 0

bound = ApplyBC.2d(meshP, BoundConx, BoundCony)

Run the code above in your browser using DataLab