@@ -2281,7 +2281,7 @@ def calculate_plastic_force(
22812281 """
22822282 # initialise variables
22832283 (f_top , f_bot ) = (0 , 0 )
2284- (ea_top , ea_bot ) = (0 , 0 )
2284+ (a_top , a_bot ) = (0 , 0 )
22852285 (qx_top , qx_bot ) = (0 , 0 )
22862286 (qy_top , qy_bot ) = (0 , 0 )
22872287
@@ -2292,7 +2292,7 @@ def calculate_plastic_force(
22922292 e = top_geom .material .elastic_modulus
22932293 f_y = top_geom .material .yield_strength
22942294 area_top = top_geom .calculate_area ()
2295- ea_top += e * area_top
2295+ a_top += area_top
22962296 cx , cy = top_geom .calculate_centroid ()
22972297 qx_top += cy * area_top
22982298 qy_top += cx * area_top
@@ -2303,21 +2303,21 @@ def calculate_plastic_force(
23032303 e = bot_geom .material .elastic_modulus
23042304 f_y = bot_geom .material .yield_strength
23052305 area_bot = bot_geom .calculate_area ()
2306- ea_bot += e * area_bot
2306+ a_bot += area_bot
23072307 cx , cy = bot_geom .calculate_centroid ()
23082308 qx_bot += cy * area_bot
23092309 qy_bot += cx * area_bot
23102310 f_bot += f_y * area_bot
23112311
23122312 try :
2313- self .c_top = [qy_top / ea_top , qx_top / ea_top ]
2313+ self .c_top = [qy_top / a_top , qx_top / a_top ]
23142314 self .f_top = f_top
23152315 except ZeroDivisionError :
23162316 self .c_top = [0 , 0 ]
23172317 self .f_top = 0
23182318
23192319 try :
2320- self .c_bot = [qy_bot / ea_bot , qx_bot / ea_bot ]
2320+ self .c_bot = [qy_bot / a_bot , qx_bot / a_bot ]
23212321 except ZeroDivisionError :
23222322 self .c_bot = [0 , 0 ]
23232323
0 commit comments