Changeset 4527 for trunk/GSASIIpwd.py
- Timestamp:
- Jul 19, 2020 11:21:51 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIpwd.py
r4523 r4527 2776 2776 if angle[3] == angle[4] or angle[5] >= angle[6] or angle[6] <= 0: 2777 2777 continue 2778 for i in (0,1,2): 2779 angle[i] = angle[i].strip() 2778 2780 AngleList.append(angle) 2779 2781 rmin = RMCPdict['min Contact'] … … 2879 2881 print('What is this?') 2880 2882 rundata += ' ENGINE.add_constraints(DistanceConstraint(defaultLowerDistance={}))\n'.format(RMCPdict['min Contact']) 2881 rundata += ''' B_CONSTRAINT = BondConstraint() 2883 if BondList: 2884 rundata += ''' B_CONSTRAINT = BondConstraint() 2882 2885 ENGINE.add_constraints(B_CONSTRAINT) 2883 2886 B_CONSTRAINT.create_supercell_bonds(bondsDefinition=[ 2884 2887 ''' 2885 for pair in BondList: 2886 e1,e2 = pair.split('-') 2887 rundata += ' ("element","{}","{}",{},{}),\n'.format( 2888 e1.strip(),e2.strip(),*BondList[pair]) 2889 rundata += ''' ]) 2888 for pair in BondList: 2889 e1,e2 = pair.split('-') 2890 rundata += ' ("element","{}","{}",{},{}),\n'.format( 2891 e1.strip(),e2.strip(),*BondList[pair]) 2892 rundata += ' ])\n' 2893 if AngleList: 2894 rundata += ''' A_CONSTRAINT = BondsAngleConstraint() 2895 ENGINE.add_constraints(A_CONSTRAINT) 2896 A_CONSTRAINT.create_supercell_angles(anglesDefinition=[ 2897 ''' 2898 for item in AngleList: 2899 rundata += (' '+ 2900 '("element","{1}","{0}","{2}",{5},{6},{5},{6},{3},{4}),\n'.format(*item)) 2901 rundata += ' ])\n' 2902 rundata += ''' 2890 2903 ENGINE.save() 2891 2904 else:
Note: See TracChangeset
for help on using the changeset viewer.