Extends
Methods
(static) add(type, node, member, position, x_mag, y_mag, z_mag, load_group)
Create a moment with the next available ID.
Parameters:
Name | Type | Description |
---|---|---|
type |
"n" | "m" |
The type of object to which the load is applied. node, member. |
node |
number |
The node ID which the moment is located. If type is "m", provide value null. |
member |
number |
The member ID which the moment is located. If type is "n", provide value null. |
position |
number |
The percentage from node_A to node_B of the member which the moment is located. E.g. 10 for 10%. If type is "n", provide value null. |
x_mag |
number |
The magnitude of the moment about the x-axis. Positive = counter-clockwise, negative = clockwise. |
y_mag |
number |
The magnitude of the moment about the y-axis. Positive = counter-clockwise, negative = clockwise. |
z_mag |
number |
The magnitude of the moment about the z-axis. Positive = counter-clockwise, negative = clockwise. |
load_group |
string |
The load group to which the moment will be grouped. |
(static) idFromElementId(type, element_id)
Find a moment's ID from the node ID which it is located.
Parameters:
Name | Type | Description |
---|---|---|
type |
"n" | "m" |
The type of object to which the load is applied. node, member. |
element_id |
number |
The node or member ID of the moment to find. |
(private, static) verify(loadIndex, type, node, member)
Check if a node or member ID is provided depending on type="n"|"m".
Parameters:
Name | Type | Description |
---|---|---|
loadIndex |
number | |
type |
"n" | "m" | |
node |
number | |
member |
number |