Upload files to "TM1"
parent
b420a8086c
commit
0308340456
|
@ -52,9 +52,10 @@ class truss:
|
||||||
|
|
||||||
# find deltaX and deltaY of beam to calculate force components
|
# find deltaX and deltaY of beam to calculate force components
|
||||||
vy, vx = 0, 0
|
vy, vx = 0, 0
|
||||||
if (
|
# if (
|
||||||
b < (2 * ni) and ni > 0
|
# b < (2 * ni) and ni > 0
|
||||||
): # find force direction for beams on left side of node
|
# ): # find force direction for beams on left side of node
|
||||||
|
if self.beams[b][0] != ni:
|
||||||
vy = y1 - y2
|
vy = y1 - y2
|
||||||
vx = x1 - x2
|
vx = x1 - x2
|
||||||
else: # different force direction for nodes on right side of node
|
else: # different force direction for nodes on right side of node
|
||||||
|
|
Loading…
Reference in New Issue