ApplyBC.2d | R Documentation |
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).
ApplyBC.2d(meshP, BoundConx, BoundCony)
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 |
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 |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.