ApplyBC.2d {FEA} | R Documentation |
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)
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 |
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 |
Examples
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)
[Package FEA version 0.0.2 Index]