Changeset 4488 for trunk/GSASIImath.py


Ignore:
Timestamp:
Jun 16, 2020 9:39:08 AM (3 years ago)
Author:
vondreele
Message:

another try at incommensurate magnetic SF; fix bug in plotting mag moments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIImath.py

    r4485 r4488  
    14591459    MmodA = np.sum(Am[nxs,nxs,:,:,:]*pcos[:,:,:,nxs,nxs],axis=3)    #cos term
    14601460    MmodB = np.sum(Bm[nxs,nxs,:,:,:]*psin[:,:,:,nxs,nxs],axis=3)    #sin term
    1461     MmodA = np.sum(SGMT[nxs,:,nxs,:,:]*MmodA[:,:,:,nxs,:],axis=-1)*SGData['MagMom'][nxs,:,nxs,nxs]
    1462     MmodB = np.sum(SGMT[nxs,:,nxs,:,:]*MmodB[:,:,:,nxs,:],axis=-1)*SGData['MagMom'][nxs,:,nxs,nxs]
     1461    MmodA = np.sum(SGMT[nxs,:,nxs,:,:]*MmodA[:,:,:,nxs,:],axis=-1)*SGData['SpnFlp'][nxs,:,nxs,nxs]
     1462    MmodB = np.sum(SGMT[nxs,:,nxs,:,:]*MmodB[:,:,:,nxs,:],axis=-1)*SGData['SpnFlp'][nxs,:,nxs,nxs]
    14631463    return MmodA,MmodB    #Ntau,Nops,Natm,Mxyz; cos & sin parts; sum matches drawn atom moments
    14641464       
     
    18021802                drawatom[dcx:dcx+3] = X
    18031803            if generalData['Type'] == 'magnetic':
    1804                 M = G2spc.ApplyStringOpsMom(opr,SGData,SSGData,atmom+mom)
     1804                M = G2spc.ApplyStringOpsMom(opr,SGData,atmom+mom)
    18051805                drawatom[dcx+3:dcx+6] = M
    18061806    return drawAtoms,Fade
Note: See TracChangeset for help on using the changeset viewer.