425
424
# flag = 0 = equal-style variable
426
425
# 1 = atom-style variable :pre
427
flag = lmp.set_variable(name,value) # set existing named string-style variable to value, flag = 0 if successful
428
428
natoms = lmp.get_natoms() # total # of atoms as int
429
429
data = lmp.gather_atoms(name,type,count) # return atom attribute of all atoms gathered into data, ordered by atom ID
430
430
# name = "x", "charge", "type", etc