- Timestamp:
- Aug 10, 2021 11:00:59 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIImath.py ΒΆ
r5011 r5012 1748 1748 epsinv = Sinv[:,3,3] 1749 1749 mst = np.inner(Sinv[:,:3,:3],modQ)-epsinv[:,nxs]*modQ #van Smaalen Eq. 3.3 1750 phi = np.inner((XYZ-SGT[:,:3][nxs,:,:]),modQ).T 1750 # phi0 = np.inner(XYZ[:,0,:],modQ).T+np.inner(SGT[:,:3],modQ)[:,nxs]-SGT[:,3,nxs] 1751 phi = np.inner(XYZ,modQ).T-SGT[:,3,nxs] +np.inner(SGT[:,:3],modQ)[:,nxs] 1751 1752 TA = np.sum(mst[nxs,:,:]*(XYZ-SGT[:,:3][nxs,:,:]),axis=-1).T 1752 phase = TA[nxs,:,:] + epsinv[nxs,:,nxs]*(glTau[:,nxs,nxs])+ SGT[:,3][nxs,:,nxs]-phi[nxs,:,:]1753 phase = TA[nxs,:,:] + epsinv[nxs,:,nxs]*(glTau[:,nxs,nxs])+phi[nxs,:,:] 1753 1754 psin = np.sin(twopi*phase) #tau,ops,atms 1754 1755 pcos = np.cos(twopi*phase)
Note: See TracChangeset
for help on using the changeset viewer.