Changeset 5066 for trunk/GSASIIpwd.py


Ignore:
Timestamp:
Nov 5, 2021 1:03:50 PM (2 years ago)
Author:
vondreele
Message:

fixes to RMCProfile stuff to accomodate creation of vacancies in partially occupied atom sites.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwd.py

    r5058 r5066  
    26212621    Isotopes = RMCPdict['Isotopes']
    26222622    Atypes = RMCPdict['aTypes']
     2623    if 'Va' in Atypes:
     2624        Isotope['Va'] = 'Nat. Abund.'
     2625        Isotopes['Va'] = {'Nat. Abund.':{'SL':[0.0,0.0]}}
    26232626    atPairs = RMCPdict['Pairs']
    26242627    Files = RMCPdict['files']
     
    26522655        pair = pair.replace(' ','')
    26532656        at1,at2 = pair.split('-')
    2654         ncoef = Isotopes[at1][Isotope[at1]]['SL'][0]*Natoms[at1]/sumatms
    2655         ncoef *= Isotopes[at2][Isotope[at2]]['SL'][0]*Natoms[at2]/sumatms
     2657        if at1 == 'Va' or at2 == 'Va':
     2658            ncoef = 0.0
     2659        else:
     2660            ncoef = Isotopes[at1][Isotope[at1]]['SL'][0]*Natoms[at1]/sumatms
     2661            ncoef *= Isotopes[at2][Isotope[at2]]['SL'][0]*Natoms[at2]/sumatms
    26562662        if at1 != at2:
    26572663            ncoef *= 2.
    26582664        Ncoeff += [ncoef,]
    2659     pairMin = [atPairs[pair] for pair in Pairs if pair in atPairs]
    2660     maxMoves = [Atypes[atm] for atm in Atseq if atm in Atypes]
     2665    pairMin = [atPairs[pair] if pair in atPairs else [0.0,0.,0.] for pair in Pairs ]
     2666    maxMoves = [Atypes[atm] if atm in Atypes else 0.0 for atm in Atseq ]
    26612667    fname = Name+'.dat'
    26622668    fl = open(fname,'w')
Note: See TracChangeset for help on using the changeset viewer.