Class DeflCurve
represents generic class for deflection curve
Defined in: raphaelsm.src.js.
Constructor Attributes | Constructor Name and Description |
---|---|
DeflCurve(raphael, point1, point2, params)
Generic class for 3rd and 4th order curves (used for deflection)
|
Field Attributes | Field Name and Description |
---|---|
if point1 and point2 are connected within the curve definition
|
|
if point1 is connected with appropriate value of curve
|
|
if point2 is connected with appropriate value of curve
|
|
number of interpolation points
|
|
pointer to actual raphael object
|
|
rotation of 1st point
|
|
rotation of 2nd point
|
|
1st point
|
|
2nd point
|
|
raphael instance
|
|
real length (in units of u and w) of beam
|
|
scale scale between passed value and drawn value in pixels
|
|
local x displacement of 1st point
|
|
local x displacement of 2nd point
|
|
local z displacement of 1st point
|
|
local z displacement of 2nd point
|
|
local z deflection from continuous load in the middle of the beam
|
Method Attributes | Method Name and Description |
---|---|
consts()
Sets function constants
|
|
setDsplFull(u1, w1, phi1, u2, w2, phi2, wMid)
Sets new values of all stored displacements and rotations
|
|
Sets svg path list
|
|
up()
Update
|
Class Detail
DeflCurve(raphael, point1, point2, params)
Generic class for 3rd and 4th order curves (used for deflection)
- Parameters:
- {Raphael} raphael
- raphael instance
- {Point2d} point1
- 1st point
- {Point2d} point2
- 2nd point
- {Object} params
- parameters, see below
- {float} params.u1 Optional, Default: 0.
- local x deflection in the 1st point
- {float} params.w1 Optional, Default: 0.
- local z deflection in the 1st point
- {float} params.phi1 Optional, Default: 0.
- rotation of the 1st point
- {float} params.u2 Optional, Default: 0.
- local x deflection in the 2nd point
- {float} params.w2 Optional, Default: 0.
- local z deflection in the 2nd point
- {float} params.phi2 Optional, Default: 0.
- rotation of the 2nd point
- {float} params.wMid Optional, Default: 0.
- local z deflection from continuous load in the middle of the beam
- {float} params.realLen Optional, Default: 1.
- real length (in units of u and w) of beam
- {float} params.scale Optional, Default: 1.
- scale parameter for the deflection line
- {bool} params.closedBegin Optional, Default: true
- the line conecting 1st point with 1st nodal value
- {bool} params.closedEnd Optional, Default: true
- the line conecting 2nd point with 2nd nodal value
- {bool} params.closedBase Optional, Default: true
- the line conecting 1st and 2nd point
- {int} params.nSeg Optional, Default: 5
- number of interpolation points
Field Detail
{bool}
closedBase
if point1 and point2 are connected within the curve definition
{bool}
closedBegin
if point1 is connected with appropriate value of curve
{bool}
closedEnd
if point2 is connected with appropriate value of curve
{int}
nSeg
number of interpolation points
{Raphael.el}
obj
pointer to actual raphael object
{float}
phi1
rotation of 1st point
{float}
phi2
rotation of 2nd point
{Point2d}
point1
1st point
{Point2d}
point2
2nd point
{Raphael}
raphael
raphael instance
{float}
realLen
real length (in units of u and w) of beam
{float}
scale
scale scale between passed value and drawn value in pixels
{float}
u1
local x displacement of 1st point
{float}
u2
local x displacement of 2nd point
{float}
w1
local z displacement of 1st point
{float}
w2
local z displacement of 2nd point
{float}
wMid
local z deflection from continuous load in the middle of the beam
Method Detail
consts()
Sets function constants
setDsplFull(u1, w1, phi1, u2, w2, phi2, wMid)
Sets new values of all stored displacements and rotations
- Parameters:
- {float} u1
- local x deflection in the 1st point
- {float} w1
- local z deflection in the 1st point
- {float} phi1
- rotation of the 1st point
- {float} u2
- local x deflection in the 2nd point
- {float} w2
- local z deflection in the 2nd point
- {float} phi2
- rotation of the 2nd point
- {float} wMid
- local z deflection from continuous load in the middle of the beam
setPathList()
Sets svg path list
up()
Update