Class: Beam2d

JSBeams. Beam2d

Represents structural 2d beam with 3 degrees of freedom in each node

new Beam2d(node1, node2, params)

2d beam implementation
This:
Parameters:
Name Type Argument Description
node1 JSBeams.Node 1st node
node2 JSBeams.Node 2nd node
params Object <optional>
(default={}) object of parameters in format {param1:val1,param2:val2}, i.e. beam=JSBeams.Beam2d(n1,n2,{dofs:[1,2,3,4],ea:4});
Properties
Name Type Argument Description
type number <optional>
=JSBeams.CC] type of beam. JSBeams.CC for both ends clamped, JSBeams.HC for hinge-clamped, JSBeams.CH for clamped-hinge, JSBeams.HH for hinge-hinge (truss)
dofs Array.<number> <optional>
(default=[0,1,2,3,4,5]) degrees of freedom on both ends. number (6,5,4) should correscpond to this.type
ei number <optional>
=1.] bending stiffness [Nm2]
ea number <optional>
=1.] normal stiffness [N]
fzloc number <optional>
=0.] constant continuous load parallel to local z coordinate [N/m]
fxloc number <optional>
=0.] constant continuous load parallel to local x coordinate [N/m]
mu number <optional>
=1.] length mass [kg/m]
dT number <optional>
=0.] positive temperature change (=warming) of beam center line [K]
dTh number <optional>
=0.] (temperature of bottom fibers - temperature of top fibers)/height ((Tb-Tt)/h) [K/m]
alpha number <optional>
=12e-6] thermal dillatation coefficient [K-1]
Properties:
Name Type Description
node1 JSBeams.Node 1st node
node2 JSBeams.Node 2nd node
dofs Array.<number> degrees of freedom on both ends
ei number bending stiffness [Nm2]
ea number normal stiffness [N]
fzloc number constant continuous load parallel to local z coordinate [N/m]
fxloc number constant continuous load parallel to local x coordinate [N/m]
mu number length mass [kg/m]
dT number positive temperature change (=warming) of beam center line [K]
dTh number (temperature of bottom fibers - temperature of top fibers)/height ((Tb-Tt)/h) [K/m]
alpha number thermal dillatation coefficient [K-1]
kloc JSMatrix.Matrix stiffness matrix in local coordinate system, computed by setStiffAndTrsfMats method
t JSMatrix.Matrix transformation matrix (from global to local), computed by setStiffAndTrsfMats method
tt JSMatrix.Matrix transposed transformation matrix (from local to global), computed by setStiffAndTrsfMats method
mloc JSMatrix.Matrix mass matrix in local coordinate system, computed by setMassMats method
m JSMatrix.Matrix mass matrix in global coordinate system, computed by setMassMats method
kbbinv JSMatrix.Matrix inverse of kbb
load JSMatrix.Vector vector of end forces
dspl JSMatrix.Vector vector of end displacements
eigShapes Array.<JSMatrix.Vector> array of eigenshapes
len number length of the beam
sin number sin of node1->node2 vector
cos number cos of node1->node2 vector
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 281

Methods

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

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

computeGlobStiffMatrix()

Computes stiffness matrix in global coordinates system
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 441
Returns:
Matrix stiffness matrix and corresponding dofs

eigenvalueDynamicPostpro(eigMode, eigShape)

Compute local components of given eigenshape
Parameters:
Name Type Description
eigMode number number of assumed eigenshape - numbering from 0
eigShape JSMatrix.Vector eigMode-th eigenshape in global coordinate system
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 525

eigenvalueDynamicPreproc()

Sets geometry and stiffness and mass matrices
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 515

giveMidDefl() → {number}

Returns middle deflection of receiver
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 546
Returns:
middle deflection
Type
number

giveMidDeflFromDspl() → {number}

Returns middle deflection of receiver due to end displacement (no load is assumed)
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 539
Returns:
middle deflection from end displacement
Type
number

giveMidDeflFromLoad() → {number}

Returns middle deflection of receiver due to continuous load (clamped ends are assumed)
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 532
Returns:
middle deflection from continuous load
Type
number

giveMidDeflOfEigShape(eigMode) → {number}

Returns middle deflection of receiver of eigMode-th eigenshape
Parameters:
Name Type Description
eigMode number number of asumed eigenshape - numbering from 0
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 554
Returns:
middle deflection of eigMode-th eigenshape
Type
number

giveMidMoment() → {number}

Returns middle bending of receiver
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 562
Returns:
middle deflection
Type
number

linearStaticPostpro(dspl, globalComponents)

Computes end displacement in local coordinate system from given global components and respective end local end forces
Parameters:
Name Type Argument Description
dspl JSMatrix.Vector vector of beam displacement in globalComponents (if global param is true) or local (if globalComponents param is false) coordinate system
globalComponents boolean <optional>
=true] if true, dspl is considered in global coordinate system. If false, dspl is considered in local coordinate system
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 497

linearStaticPreproc()

Sets geometry, stiffness matrices and "beam" load (end forces induced by continuous load and temperature load)
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 471

setGeom()

Sets geometric parameters of received according to node positions
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 319

setMassMats()

Sets mass matrices in local and gloal coordinate system from stored material and geometric parameters
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 447

setStiffAndTrsfMats()

Sets stiffness matrices in local and global coordinate system according to stored material and crossection parameters and transformation matrix and its transposition according to stored geometry
Source:
  • /var/www/html/software/jsbeams/jsbeams.src.js, line 333