Learn R Programming

FEA (version 0.0.2)

Dimensions.2d: Dimensions.2d

Description

Calculates dimensional values for each triangular element, including truss length & angles, distance from nodal point to centroid, aspect ratio of each triangle element, and area of the triangle.

Usage

Dimensions.2d(meshP, meshT, centroid)

Value

Evaluation of triangle elements truss, angle, and area.

Truss

Nodal pairs that form each truss.

TrussLength

Distance between each paired nodes forming a truss, its length.

Dist2Cent

Shortest distance from truss to triangle centroid.

Truss angle

Angles of the triangle created from truss meeting.

AspectRatio

Aspect ratio of triangle elements.

Area

Area within triangle elements.

Arguments

meshP

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

meshT

Matrix (3 x n) containing the number of the coordinate point that forms a given triangle within the mesh.

centroid

Matrix (2 x n) containing coordinate points of the centroid of each triangular element.

Examples

Run this code
data(triMesh)
data(polyshape)

meshP = triMesh$MeshPts$p
meshT = triMesh$MeshPts$T
centroid = triMesh$Centroids

dime = Dimensions.2d(meshP, meshT, centroid)

Run the code above in your browser using DataLab