Skip to content

Commit 2c5ffa3

Browse files
JWock82JWock82
authored andcommitted
Converting spring stiffness to number for reaction calculations
1 parent 0c58402 commit 2c5ffa3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Pynite/Analysis.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -900,27 +900,27 @@ def _calc_reactions(model: FEModel3D, log: bool = False, combo_tags: List[str] |
900900

901901
# Calculate any reactions due to active spring supports at the node
902902
if node.spring_DX[0] is not None and node.spring_DX[2] is True:
903-
k = node.spring_DX[0]
903+
k = float(node.spring_DX[0])
904904
DX = node.DX[combo.name]
905905
node.RxnFX[combo.name] -= k*DX
906906
if node.spring_DY[0] is not None and node.spring_DY[2] is True:
907-
k = node.spring_DY[0]
907+
k = float(node.spring_DY[0])
908908
DY = node.DY[combo.name]
909909
node.RxnFY[combo.name] -= k*DY
910910
if node.spring_DZ[0] is not None and node.spring_DZ[2] is True:
911-
k = node.spring_DZ[0]
911+
k = float(node.spring_DZ[0])
912912
DZ = node.DZ[combo.name]
913913
node.RxnFZ[combo.name] -= k*DZ
914914
if node.spring_RX[0] is not None and node.spring_RX[2] is True:
915-
k = node.spring_RX[0]
915+
k = float(node.spring_RX[0])
916916
RX = node.RX[combo.name]
917917
node.RxnMX[combo.name] -= k*RX
918918
if node.spring_RY[0] is not None and node.spring_RY[2] is True:
919-
k = node.spring_RY[0]
919+
k = float(node.spring_RY[0])
920920
RY = node.RY[combo.name]
921921
node.RxnMY[combo.name] -= k*RY
922922
if node.spring_RZ[0] is not None and node.spring_RZ[2] is True:
923-
k = node.spring_RZ[0]
923+
k = float(node.spring_RZ[0])
924924
RZ = node.RZ[combo.name]
925925
node.RxnMZ[combo.name] -= k*RZ
926926

0 commit comments

Comments
 (0)