From 03083404563b5dc3c2ede7bcffdbb6ee5be3ae05 Mon Sep 17 00:00:00 2001 From: Simon Schurti Date: Mon, 25 Nov 2024 15:32:39 +0100 Subject: [PATCH] Upload files to "TM1" --- TM1/trussSolver2d.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/TM1/trussSolver2d.py b/TM1/trussSolver2d.py index 56ec9b4..d5397b5 100644 --- a/TM1/trussSolver2d.py +++ b/TM1/trussSolver2d.py @@ -52,9 +52,10 @@ class truss: # find deltaX and deltaY of beam to calculate force components vy, vx = 0, 0 - if ( - b < (2 * ni) and ni > 0 - ): # find force direction for beams on left side of node + # if ( + # b < (2 * ni) and ni > 0 + # ): # find force direction for beams on left side of node + if self.beams[b][0] != ni: vy = y1 - y2 vx = x1 - x2 else: # different force direction for nodes on right side of node