def sputter(self, adatomList): #number of particles per ms to reach sputter rate initServ = InitValService() noa = initServ.getParticleRate(self.initVal) pServ = ParticleService() for i in range(noa): adatom = pServ.createAdatom(self.initVal) adatomList.addParticle(adatom)
def atomFlow(self, initval, clusterList, coalescenceList): partServ = ParticleService() for cluster in clusterList.GET(): partServ.atomFlow(initval, cluster) partServ.deleteEmptyClusters(clusterList, coalescenceList) for cluster in clusterList.GET(): partServ.refreshCluster(initval, cluster, coalescenceList)