コード例 #1
0
ファイル: KSoPSWerkzeug.py プロジェクト: wyrnat/KSoPS
 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)
コード例 #2
0
ファイル: KSoPSWerkzeug.py プロジェクト: wyrnat/KSoPS
 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)