Upload files to "TM1"

main
Simon Schurti 2024-11-25 15:32:39 +01:00
parent b420a8086c
commit 0308340456
1 changed files with 4 additions and 3 deletions

View File

@ -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