Class: CrossSection

JSBeams. CrossSection

represents (so far polygonal only) cross section

new CrossSection(nodes, holes)

Cross section implementation
This:
Parameters:
Name Type Argument Description
nodes Array.<JSBeams.Node> array of nodes to create yz (!!) polygon in anti-clockwise (!!) order
holes Array.<JSBeams.Node> <optional>
(default=[]) array of arrays of nodes representing holes in polygon created by nodes.
Properties:
Name Type Description
nodes Array.<JSBeams.Node> array of polygon nodes in yz plane ( this.nodes[0]==this.nodes[this.nodes.length-1] )
a number area
sy number static moment (first moment of mass) with respect to y coordinate (global)
sz number static moment (first moment of mass) with respect to z coordinate (global)
cy number y coordinate of center of mass
cz number z coordinate of center of mass
iy number moment of inertia (second moment of area) with respect to y coordinate (local)
iz number moment of inertia (second moment of area) with respect to z coordinate (local)
dyz number deviation (product) moment of inertia with respect to yz coordinate system
i1 number first principal value of moment of inertia (i1>i2)
i2 number second principal value of moment of inertia (i1>i2)
beta number angle from global axes to principal inertia orientation
core Array.<JSBeams.Node> core of cross section
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 822

Methods

<static> create() → {JSBeams.CrossSection}

Constructor, see JSBeams.CrossSection for input parameters description
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 1196
Returns:
new CrossSection object
Type
JSBeams.CrossSection

computeA() → {number}

Computes area of receiver
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 861
Returns:
area of receiver
Type
number

computeCore(local) → {Array.<JSBeams.Node>}

Computes core (area, where applied force in x direction causes no tension)
Parameters:
Name Type Argument Description
local boolean <optional>
=false] if computed with respect to this.cx center of mass or global yz coordinates
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 1149
Returns:
array of nodes creating core polygon
Type
Array.<JSBeams.Node>

computeCy() → {number}

Computes y coordinate of center of mass of receiver
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 918
Returns:
Cy of receiver
Type
number

computeCz() → {number}

Computes z coordinate of center of mass of receiver
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 926
Returns:
Cz of receiver
Type
number

computeDyz(local) → {number|null}

Computes deviation (prodict) moment of inertia of receiver with respect to yz coordinates
Parameters:
Name Type Argument Description
local boolean <optional>
=true] if computed with respect to this.cy and this.cz (center of mass) or global yz coordinates
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 979
Returns:
deviation (product) moment of inertia (yz) of receiver
Type
number | null

computeI0() → {number}

Computes polar moment of inertia of receiver with respect to yz coordinate axis
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 1003
Returns:
polar moment of inertia (yz) of receiver
Type
number

computeInertiaTensor() → {Array.<Array.<number>>}

Computes moment of inertia tensor of receiver (i.e. [[Iy,-Dyz],[-Dyz,Iz]] )
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 1011
Returns:
moment of inertia tensor (yz) of receiver
Type
Array.<Array.<number>>

computeIy(local) → {number|null}

Computes moment of inertia (second moment of area) of receiver with respect to y coordinate axis
Parameters:
Name Type Argument Description
local boolean <optional>
=true] if computed with respect to this.cy center of mass or global yz coordinates
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 935
Returns:
moment of inertia (y) of receiver
Type
number | null

computeIz(local) → {number|null}

Computes moment of inertia (second moment of area) of receiver with respect to z coordinate axis
Parameters:
Name Type Argument Description
local boolean <optional>
=true] if computed with respect to this.cz center of mass or global yz coordinates
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 957
Returns:
moment of inertia (z) of receiver
Type
number | null

computeNeutralAxis(N, My, Mz, local) → {Array.<number>}

Computes neutral axis
Parameters:
Name Type Argument Description
N number normal force
My number moment y
Mz number moment z
local boolean <optional>
=false] if returned equation is in local coordinates or not
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 1074
Returns:
[a,b,c] as ay+bz+c=0;
Type
Array.<number>

computePrincipalValues() → {Array.<number>}

Computes principal inertia values and angle from global axes to principal inertia orientation
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 1020
Returns:
principal values and angle of principal direction [I1,I2,angle], I1 > I2
Type
Array.<number>

computeStress(y, z, N, My, Mz, local) → {number}

Computes normal stress at certain point with coordinates x and y
Parameters:
Name Type Argument Description
y number y coordinate of desired point
z number z coordinate of desired point
N number normal force
My number moment y
Mz number moment z
local boolean <optional>
=false] if y z are local coordinates or not
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 1046
Returns:
stress at [x,z] caused by N,My,Mz
Type
number

computeStressInNode(node, N, My, Mz) → {number}

Computes normal stress at certain polygon node
Parameters:
Name Type Description
node JSBeams.Node polygon node
N number normal force
My number moment y
Mz number moment z
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 1064
Returns:
stress at node caused by N,My,Mz
Type
number

computeSy(local) → {number|null}

Computes static moment (first order moment of mass) of receiver with respect to y coordinate axis
Parameters:
Name Type Argument Description
local boolean <optional>
=false] if computed with respect to this.cy center of mass or global yz coordinates
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 875
Returns:
Sy of receiver
Type
number | null

computeSz(local) → {number|null}

Computes static moment (first order moment of mass) of receiver with respect to z coordinate axis
Parameters:
Name Type Argument Description
local boolean <optional>
=false] if computed with respect to this.cz center of mass or global yz coordinates
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 897
Returns:
Sz of receiver
Type
number | null

giveConvexHull() → {Array.<JSBeams.Node>}

Returns those nodes of receiver that forms the convex hull
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 1092
Returns:
those nodes that forms convex hull (ret[0]==ret[ret.length-1])
Type
Array.<JSBeams.Node>

reset()

Reset receiver (sets all values to null)
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 843

update()

computes all values (a,sy,sz,cy,cz,iy,iz,dyz,i1,i2,beta,core) within one function call
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 1177