@@ -99,8 +99,8 @@ def torsion_properties(self):
9999 # calculated modulus weighted stiffness matrix and load vector
100100 k_el += gp [0 ] * np .dot (np .transpose (B ), B ) * j * (self .material .elastic_modulus )
101101 f_el += (
102- gp [0 ] * np .dot (np .transpose (B ), np .transpose (np .array ([Ny , - Nx ]))) *
103- j * self .material .elastic_modulus
102+ gp [0 ] * np .dot (np .transpose (B ), np .transpose (np .array ([Ny , - Nx ])))
103+ * j * self .material .elastic_modulus
104104 )
105105
106106 return (k_el , f_el )
@@ -141,14 +141,14 @@ def shear_load_vectors(self, ixx, iyy, ixy, nu):
141141 h2 = - iyy * r - ixy * q
142142
143143 f_psi += (
144- gp [0 ] * (nu / 2 * np .transpose (np .transpose (B ).dot (np .array ([[d1 ], [d2 ]])))[0 ] +
145- 2 * (1 + nu ) * np .transpose (N ) * (ixx * Nx - ixy * Ny )) * j *
146- self .material .elastic_modulus
144+ gp [0 ] * (nu / 2 * np .transpose (np .transpose (B ).dot (np .array ([[d1 ], [d2 ]])))[0 ]
145+ + 2 * (1 + nu ) * np .transpose (N ) * (ixx * Nx - ixy * Ny )) * j
146+ * self .material .elastic_modulus
147147 )
148148 f_phi += (
149- gp [0 ] * (nu / 2 * np .transpose (np .transpose (B ).dot (np .array ([[h1 ], [h2 ]])))[0 ] +
150- 2 * (1 + nu ) * np .transpose (N ) * (iyy * Ny - ixy * Nx )) * j *
151- self .material .elastic_modulus
149+ gp [0 ] * (nu / 2 * np .transpose (np .transpose (B ).dot (np .array ([[h1 ], [h2 ]])))[0 ]
150+ + 2 * (1 + nu ) * np .transpose (N ) * (iyy * Ny - ixy * Nx )) * j
151+ * self .material .elastic_modulus
152152 )
153153
154154 return (f_psi , f_phi )
@@ -189,12 +189,12 @@ def shear_warping_integrals(self, ixx, iyy, ixy, omega):
189189 Nomega = np .dot (N , np .transpose (omega ))
190190
191191 sc_xint += (
192- gp [0 ] * (iyy * Nx + ixy * Ny ) * (Nx ** 2 + Ny ** 2 ) *
193- j * self .material .elastic_modulus
192+ gp [0 ] * (iyy * Nx + ixy * Ny ) * (Nx ** 2 + Ny ** 2 )
193+ * j * self .material .elastic_modulus
194194 )
195195 sc_yint += (
196- gp [0 ] * (ixx * Ny + ixy * Nx ) * (Nx ** 2 + Ny ** 2 ) *
197- j * self .material .elastic_modulus
196+ gp [0 ] * (ixx * Ny + ixy * Nx ) * (Nx ** 2 + Ny ** 2 )
197+ * j * self .material .elastic_modulus
198198 )
199199 q_omega += gp [0 ] * Nomega * j * self .material .elastic_modulus
200200 i_omega += gp [0 ] * Nomega ** 2 * j * self .material .elastic_modulus
@@ -245,18 +245,18 @@ def shear_coefficients(self, ixx, iyy, ixy, psi_shear, phi_shear, nu):
245245
246246 kappa_x += (
247247 gp [0 ] * (psi_shear .dot (np .transpose (B )) - nu / 2 * np .array ([d1 , d2 ])).dot (
248- B .dot (psi_shear ) - nu / 2 * np .array ([d1 , d2 ])) * j *
249- self .material .elastic_modulus
248+ B .dot (psi_shear ) - nu / 2 * np .array ([d1 , d2 ])) * j
249+ * self .material .elastic_modulus
250250 )
251251 kappa_y += (
252252 gp [0 ] * (phi_shear .dot (np .transpose (B )) - nu / 2 * np .array ([h1 , h2 ])).dot (
253- B .dot (phi_shear ) - nu / 2 * np .array ([h1 , h2 ])) * j *
254- self .material .elastic_modulus
253+ B .dot (phi_shear ) - nu / 2 * np .array ([h1 , h2 ])) * j
254+ * self .material .elastic_modulus
255255 )
256256 kappa_xy += (
257257 gp [0 ] * (psi_shear .dot (np .transpose (B )) - nu / 2 * np .array ([d1 , d2 ])).dot (
258- B .dot (phi_shear ) - nu / 2 * np .array ([h1 , h2 ])) * j *
259- self .material .elastic_modulus
258+ B .dot (phi_shear ) - nu / 2 * np .array ([h1 , h2 ])) * j
259+ * self .material .elastic_modulus
260260 )
261261
262262 return (kappa_x , kappa_y , kappa_xy )
@@ -296,12 +296,12 @@ def monosymmetry_integrals(self, phi):
296296 int_x += gp [0 ] * (Nx * Nx * Ny + Ny * Ny * Ny ) * j * self .material .elastic_modulus
297297 int_y += gp [0 ] * (Ny * Ny * Nx + Nx * Nx * Nx ) * j * self .material .elastic_modulus
298298 int_11 += (
299- gp [0 ] * (Nx_11 * Nx_11 * Ny_22 + Ny_22 * Ny_22 * Ny_22 ) * j *
300- self .material .elastic_modulus
299+ gp [0 ] * (Nx_11 * Nx_11 * Ny_22 + Ny_22 * Ny_22 * Ny_22 ) * j
300+ * self .material .elastic_modulus
301301 )
302302 int_22 += (
303- gp [0 ] * (Ny_22 * Ny_22 * Nx_11 + Nx_11 * Nx_11 * Nx_11 ) * j *
304- self .material .elastic_modulus
303+ gp [0 ] * (Ny_22 * Ny_22 * Nx_11 + Nx_11 * Nx_11 * Nx_11 ) * j
304+ * self .material .elastic_modulus
305305 )
306306
307307 return (int_x , int_y , int_11 , int_22 )
@@ -496,12 +496,12 @@ def point_within_element(self, pt):
496496
497497 # compute variables alpha, beta and gamma
498498 alpha = (
499- ((y2 - y3 ) * (px - x3 ) + (x3 - x2 ) * (py - y3 )) /
500- ((y2 - y3 ) * (x1 - x3 ) + (x3 - x2 ) * (y1 - y3 ))
499+ ((y2 - y3 ) * (px - x3 ) + (x3 - x2 ) * (py - y3 ))
500+ / ((y2 - y3 ) * (x1 - x3 ) + (x3 - x2 ) * (y1 - y3 ))
501501 )
502502 beta = (
503- ((y3 - y1 ) * (px - x3 ) + (x1 - x3 ) * (py - y3 )) /
504- ((y2 - y3 ) * (x1 - x3 ) + (x3 - x2 ) * (y1 - y3 ))
503+ ((y3 - y1 ) * (px - x3 ) + (x1 - x3 ) * (py - y3 ))
504+ / ((y2 - y3 ) * (x1 - x3 ) + (x3 - x2 ) * (y1 - y3 ))
505505 )
506506 gamma = 1.0 - alpha - beta
507507
@@ -617,17 +617,17 @@ def extrapolate_to_nodes(w):
617617 """
618618
619619 H_inv = np .array ([
620- [1.87365927351160 , 0.138559587411935 , 0.138559587411935 ,
620+ [1.87365927351160 , 0.138559587411935 , 0.138559587411935 ,
621621 - 0.638559587411936 , 0.126340726488397 , - 0.638559587411935 ],
622622 [0.138559587411935 , 1.87365927351160 , 0.138559587411935 ,
623623 - 0.638559587411935 , - 0.638559587411935 , 0.126340726488397 ],
624624 [0.138559587411935 , 0.138559587411935 , 1.87365927351160 ,
625625 0.126340726488396 , - 0.638559587411935 , - 0.638559587411935 ],
626626 [0.0749010751157440 , 0.0749010751157440 , 0.180053080734478 ,
627- 1.36051633430762 , - 0.345185782636792 , - 0.345185782636792 ],
627+ 1.36051633430762 , - 0.345185782636792 , - 0.345185782636792 ],
628628 [0.180053080734478 , 0.0749010751157440 , 0.0749010751157440 ,
629629 - 0.345185782636792 , 1.36051633430762 , - 0.345185782636792 ],
630- [0.0749010751157440 , 0.180053080734478 , 0.0749010751157440 ,
630+ [0.0749010751157440 , 0.180053080734478 , 0.0749010751157440 ,
631631 - 0.345185782636792 , - 0.345185782636792 , 1.36051633430762 ]
632632 ])
633633
0 commit comments