@@ -71,37 +71,37 @@ def mechanicalproperties(md, vx, vy, *args):
7171 #clear vxlist vylist
7272
7373 #compute viscosity
74- nu = np .zeros ((numberofelements , ))
74+ mu = np .zeros ((numberofelements , ))
7575 B_bar = np .dot (md .materials .rheology_B [index - 1 ], summation / 3. ).reshape (- 1 , )
7676 power = ((md .materials .rheology_n - 1. ) / (2. * md .materials .rheology_n )).reshape (- 1 , )
7777 second_inv = (ux ** 2. + vy ** 2. + ((uy + vx )** 2. ) / 4. + ux * vy ).reshape (- 1 , )
7878
7979 #some corrections
8080 location = np .nonzero (np .logical_and (second_inv == 0 , power != 0 ))
81- nu [location ] = pow (10 , 18 ) #arbitrary maximum viscosity to apply where there is no effective shear
81+ mu [location ] = pow (10 , 18 ) #arbitrary maximum viscosity to apply where there is no effective shear
8282
8383 if 'matice' in md .materials .__module__ :
8484 location = np .nonzero (second_inv )
85- nu [location ] = B_bar [location ] / (second_inv [location ]** power [location ])
85+ mu [location ] = B_bar [location ] / (second_inv [location ]** power [location ])
8686 location = np .nonzero (np .logical_and (second_inv == 0 , power == 0 ))
87- nu [location ] = B_bar [location ]
87+ mu [location ] = B_bar [location ]
8888 location = np .nonzero (np .logical_and (second_inv == 0 , power != 0 ))
89- nu [location ] = pow (10 , 18 )
89+ mu [location ] = pow (10 , 18 )
9090 elif 'matdamageice' in md .materials .__module__ :
9191 print ('computing damage-dependent properties!' )
9292 Zinv = np .dot (1 - damage [index - 1 ], summation / 3. ).reshape (- 1 , )
9393 location = np .nonzero (second_inv )
94- nu [location ] = Zinv [location ] * B_bar [location ] / np .power (second_inv [location ], power [location ])
94+ mu [location ] = Zinv [location ] * B_bar [location ] / np .power (second_inv [location ], power [location ])
9595 location = np .nonzero (np .logical_and (second_inv == 0 , power == 0 ))
96- nu [location ] = Zinv [location ] * B_bar [location ]
96+ mu [location ] = Zinv [location ] * B_bar [location ]
9797 #clear Zinv
9898 else :
9999 raise Exception ('class of md.materials (' + md .materials .__module__ + ') not recognized or not supported' )
100100
101101 #compute stress
102- tau_xx = nu * ux
103- tau_yy = nu * vy
104- tau_xy = nu * uyvx
102+ tau_xx = mu * ux
103+ tau_yy = mu * vy
104+ tau_xy = mu * uyvx
105105
106106 #compute principal properties of stress
107107 for i in np .arange (numberofelements ):
0 commit comments