Class Beam2d
represents structural 2d beam with 3 degrees of freedom in each node
Defined in: jsbeams.src.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Beam2d(node1, node2, params)
2d beam implementation
|
Field Attributes | Field Name and Description |
---|---|
thermal dillatation coefficient [K-1]
|
|
cos of node1->node2 vector
|
|
degrees of freedom on both ends
|
|
vector of end displacements
|
|
positive temperature change (=warming) of beam center line [K]
|
|
(temperature of bottom fibers - temperature of top fibers)/height ((Tb-Tt)/h) [K/m]
|
|
normal stiffness [N]
|
|
bending stiffness [Nm2]
|
|
array of eigenshapes
|
|
constant continuous load parallel to local x coordinate [N/m]
|
|
constant continuous load parallel to local z coordinate [N/m]
|
|
if some body (continuous force or temperature) load is present
|
|
stiffness matrix in local coordinate system, computed by setStiffAndTrsfMats method
|
|
length of the beam
|
|
vector of end forces
|
|
mass matrix in global coordinate system, computed by setMassMats method
|
|
mass matrix in local coordinate system, computed by setMassMats method
|
|
length mass [kg/m]
|
|
1st node
|
|
2nd node
|
|
sin of node1->node2 vector
|
|
transformation matrix (from global to local), computed by setStiffAndTrsfMats method
|
|
transposed transformation matrix (from local to global), computed by setStiffAndTrsfMats method
|
Method Attributes | Method Name and Description |
---|---|
Computes stiffness matrix in global coordinates system
|
|
<static> |
Beam2d.create(node1, node2, params)
Constructor, see Beam2d for input parameters description
|
eigenvalueDynamicPostpro(eigMode, eigShape)
Compute local components of given eigenshape
|
|
Sets geometry and stiffness and mass matrices
|
|
Returns middle deflection of receiver
|
|
Returns middle deflection of receiver due to end displacement (no load is assumed)
|
|
Returns middle deflection of receiver due to continuous load (clamped ends are assumed)
|
|
giveMidDeflOfEigShape(eigMode)
Returns middle deflection of receiver of eigMode-th eigenshape
|
|
Returns middle bending of receiver
|
|
linearStaticPostpro(dspl, globalComponents)
Computes end displacement in local coordinate system from given global components and respective end local end forces
|
|
Sets geometry, stiffness matrices and "beam" load (end forces induced by continuous load and temperature load)
|
|
setGeom()
Sets geometric parameters of received according to node positions
|
|
Sets mass matrices in local and gloal coordinate system from stored material and geometric parameters
|
|
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
|
Class Detail
Beam2d(node1, node2, params)
2d beam implementation
- Parameters:
- {Node} node1
- 1st node
- {Node} node2
- 2nd node
- {Object} params Optional, Default: {}
- object of parameters in format {param1:val1,param2:val2}, i.e. beam=Beam2d(n1,n2,{dofs:[1,2,3,4],ea:4});
- {int} params.type Optional, Default: JSB2D_CC
- type of beam. JSB2D_CC for both ends clamped, JSB2D_HC for hinge-clamped, JSB2D_CH for clamped-hinge, JSB2D_HH for hinge-hinge (truss)
- {[ints]} params.dofs Optional, Default: [0,1,2,3,4,5]
- degrees of freedom on both ends. number (6,5,4) should correscpond to this.type
- {float} params.ei Optional, Default: 1.
- bending stiffness [Nm2]
- {float} params.ea Optional, Default: 1.
- normal stiffness [N]
- {bool} params.hasBodyLoad Optional, Default: false
- if some body (continuous force or temperature) load is present
- {float} params.fzloc Optional, Default: 0.
- constant continuous load parallel to local z coordinate [N/m]
- {float} params.fxloc Optional, Default: 0.
- constant continuous load parallel to local x coordinate [N/m]
- {float} params.mu Optional, Default: 1.
- length mass [kg/m]
- {float} params.dT Optional, Default: 0.
- positiv temperature change (=warming) of beam center line [K]
- {float} params.dTh Optional, Default: 0.
- (temperature of bottom fibers - temperature of top fibers)/height ((Tb-Tt)/h) [K/m]
- {float} params.alpha Optional, Default: 12e-6
- thermal dillatation coefficient [K-1]
Field Detail
{float}
alpha
thermal dillatation coefficient [K-1]
{float}
cos
cos of node1->node2 vector
{[ints]}
dofs
degrees of freedom on both ends
{Vector}
dspl
vector of end displacements
{float}
dT
positive temperature change (=warming) of beam center line [K]
{float}
dTh
(temperature of bottom fibers - temperature of top fibers)/height ((Tb-Tt)/h) [K/m]
{float}
ea
normal stiffness [N]
{float}
ei
bending stiffness [Nm2]
{[Vectors]}
eigShapes
array of eigenshapes
{float}
fxloc
constant continuous load parallel to local x coordinate [N/m]
{float}
fzloc
constant continuous load parallel to local z coordinate [N/m]
{bool}
hasBodyLoad
if some body (continuous force or temperature) load is present
{Matrix}
kloc
stiffness matrix in local coordinate system, computed by setStiffAndTrsfMats method
{float}
len
length of the beam
{Vector}
load
vector of end forces
{Matrix}
m
mass matrix in global coordinate system, computed by setMassMats method
{Matrix}
mloc
mass matrix in local coordinate system, computed by setMassMats method
{float}
mu
length mass [kg/m]
{Node}
node1
1st node
{Node}
node2
2nd node
{float}
sin
sin of node1->node2 vector
{Matrix}
t
transformation matrix (from global to local), computed by setStiffAndTrsfMats method
{Matrix}
tt
transposed transformation matrix (from local to global), computed by setStiffAndTrsfMats method
Method Detail
computeGlobStiffMatrix()
Computes stiffness matrix in global coordinates system
- Returns:
- Matrix stiffness matrix and corresponding dofs
<static>
{Beam2d}
Beam2d.create(node1, node2, params)
Constructor, see Beam2d for input parameters description
- Parameters:
- node1
- node2
- params
- Returns:
- {Beam2d} new Beam2d object
eigenvalueDynamicPostpro(eigMode, eigShape)
Compute local components of given eigenshape
- Parameters:
- {int} eigMode
- number of assumed eigenshape - numbering from 0
- {Vector} eigShape
- eigMode-th eigenshape in global coordinate system
eigenvalueDynamicPreproc()
Sets geometry and stiffness and mass matrices
{float}
giveMidDefl()
Returns middle deflection of receiver
- Returns:
- {float} middle deflection
{float}
giveMidDeflFromDspl()
Returns middle deflection of receiver due to end displacement (no load is assumed)
- Returns:
- {float} middle deflection from end displacement
{float}
giveMidDeflFromLoad()
Returns middle deflection of receiver due to continuous load (clamped ends are assumed)
- Returns:
- {float} middle deflection from continuous load
{float}
giveMidDeflOfEigShape(eigMode)
Returns middle deflection of receiver of eigMode-th eigenshape
- Parameters:
- {int} eigMode
- number of asumed eigenshape - numbering from 0
- Returns:
- {float} middle deflection of eigMode-th eigenshape
{float}
giveMidMoment()
Returns middle bending of receiver
- Returns:
- {float} middle deflection
linearStaticPostpro(dspl, globalComponents)
Computes end displacement in local coordinate system from given global components and respective end local end forces
- Parameters:
- {Vector} dspl
- vector of beam displacement in globalComponents (if global param is true) or local (if globalComponents param is false) coordinate system
- {bool} globalComponents Optional, Default: true
- if true, dspl is considered in global coordinate system. If false, dspl is considered in local coordinate system
linearStaticPreproc()
Sets geometry, stiffness matrices and "beam" load (end forces induced by continuous load and temperature load)
setGeom()
Sets geometric parameters of received according to node positions
setMassMats()
Sets mass matrices in local and gloal coordinate system from stored material and geometric parameters
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