コード例 #1
0
 def __init__(self, system, center=[]):
     if not (pmi._PMIComm and pmi._PMIComm.isActive()) or pmi._MPIcomm.rank in pmi._PMIComm.getMPIcpugroup():
         cxxinit(self, integrator_TDforce, system)
         
         # set center of TD force
         if (center != []):
             self.cxxclass.setCenter(self, center[0], center[1], center[2])
コード例 #2
0
 def __init__(self, system, cutoff, angular_momentum=6,
                   do_cluster_analysis=False, include_surface_particles=False,
                   ql_low=-1.0, ql_high=1.0):
     if not pmi._PMIComm or pmi._MPIcomm.rank in pmi._PMIComm.getMPIcpugroup():
         cxxinit(self, analysis_OrderParameter, system, cutoff, angular_momentum,
                   do_cluster_analysis, include_surface_particles,
                   ql_low, ql_high)
コード例 #3
0
 def __init__(self):
     'Local Version object'
     if pmi._PMIComm and pmi._PMIComm.isActive():
         if pmi._MPIcomm.rank in pmi._PMIComm.getMPIcpugroup():
             cxxinit(self, _espresso.Version)
         else :
             pass
     else :
         cxxinit(self, _espresso.Version)
コード例 #4
0
ファイル: System.py プロジェクト: BackupTheBerlios/espressopp
 def __init__(self):
     'Local construction of a System'
     if pmi._PMIComm and pmi._PMIComm.isActive():
         if pmi._MPIcomm.rank in pmi._PMIComm.getMPIcpugroup():
             cxxinit(self, _espresso.System, pmi._PMIComm.getMPIsubcomm())
         else :
             pass
     else :
         cxxinit(self, _espresso.System, pmi._MPIcomm)
コード例 #5
0
 def __init__(self, system, cutoff, exclusionlist=[]):
     'Local construction of a verlet list'
     if pmi.workerIsActive():
         if (exclusionlist == []):
             # rebuild list in constructor
             cxxinit(self, _espresso.VerletList, system, cutoff, True)
         else:
             # do not rebuild list in constructor
             cxxinit(self, _espresso.VerletList, system, cutoff, False)
             # add exclusions
             for pair in exclusionlist:
                 pid1, pid2 = pair
                 self.cxxclass.exclude(self, pid1, pid2)
             # now rebuild list with exclusions
             self.cxxclass.rebuild(self)
コード例 #6
0
    def __init__(self, system, cutoff, exclusionlist=[]):
        'Local construction of a verlet triple list'
        if pmi.workerIsActive():
          '''
          cxxinit(self, _espresso.VerletListTriple, system, cutoff, True)
          if (exclusionlist != []):
            print 'Warning! Exclusion list is not yet implemented to the triple verlet \
                  list. Nothing happend to exclusion list'
          '''

          if (exclusionlist == []):
            # rebuild list in constructor
            cxxinit(self, _espresso.VerletListTriple, system, cutoff, True)
          else:
            # do not rebuild list in constructor
            cxxinit(self, _espresso.VerletListTriple, system, cutoff, False)
            # add exclusions
            for pid in exclusionlist:
                self.cxxclass.exclude(self, pid)
            # now rebuild list with exclusions
            self.cxxclass.rebuild(self)
コード例 #7
0
 def __init__(self, system, cutoff, adrcut, dEx, dHy, adrCenter=[], pids=[], exclusionlist=[]):
     'Local construction of a verlet list for AdResS'
     if pmi.workerIsActive():
         cxxinit(self, _espresso.VerletListAdress, system, cutoff, adrcut, False, dEx, dHy)
         #self.cxxclass.setAtType(self, atType)
         # check for exclusions
         if (exclusionlist != []):
             # add exclusions
             for pair in exclusionlist:
                 pid1, pid2 = pair
                 self.cxxclass.exclude(self, pid1, pid2)
         # add adress particles
         if (pids != []):
             for pid in pids:
                 self.cxxclass.addAdrParticle(self, pid)
         # set adress center
         if (adrCenter != []):
             self.cxxclass.setAdrCenter(self, adrCenter[0], adrCenter[1], adrCenter[2])
         
         # rebuild list now
         self.cxxclass.rebuild(self)
コード例 #8
0
 def __init__(self, system, latticeboltzmann):
     if not pmi._PMIComm or pmi._MPIcomm.rank in pmi._PMIComm.getMPIcpugroup():
         cxxinit(self, integrator_LBInit_ConstForce, system, latticeboltzmann)
コード例 #9
0
 def __init__(self, system, nodeGrid, cellGrid):
     if not (pmi._PMIComm and pmi._PMIComm.isActive()) or pmi._MPIcomm.rank in pmi._PMIComm.getMPIcpugroup():
         cxxinit(self, storage_DomainDecompositionNonBlocking, system, nodeGrid, cellGrid)
コード例 #10
0
 def __init__(self, system, chainlength=None):
     if chainlength is None:
         cxxinit(self, analysis_MeanSquareDispl, system)
     else:
         cxxinit(self, analysis_MeanSquareDispl, system, chainlength)
コード例 #11
0
ファイル: Adress.py プロジェクト: BackupTheBerlios/espressopp
 def __init__(self, _system, _verletlist, _fixedtuplelist, KTI = False):
     'Local construction of a verlet list for AdResS'
     if pmi.workerIsActive():
         cxxinit(self, integrator_Adress, _system, _verletlist, _fixedtuplelist, KTI)
コード例 #12
0
 def __init__(self, system, dampingmass):
     if not (pmi._PMIComm and pmi._PMIComm.isActive()) or pmi._MPIcomm.rank in pmi._PMIComm.getMPIcpugroup():
         cxxinit(self, integrator_VelocityVerletOnRadius, system, dampingmass)
コード例 #13
0
 def __init__(self, storage):
     if pmi.workerIsActive():
         cxxinit(self, _espresso.ParticleGroup, storage)
コード例 #14
0
 def __init__(self, system, latticeboltzmann):
     if not pmi._PMIComm or pmi._MPIcomm.rank in pmi._PMIComm.getMPIcpugroup():
         cxxinit(self, analysis_LBOutput_Screen, system, latticeboltzmann)
コード例 #15
0
 def __init__(self, storage, fixedtupleList):
     'Local construction of a fixed pair list'
     if pmi.workerIsActive():
         cxxinit(self, _espresso.FixedPairListAdress, storage, fixedtupleList)
コード例 #16
0
 def __init__(self, system, radius):
     if not pmi._PMIComm or pmi._MPIcomm.rank in pmi._PMIComm.getMPIcpugroup():
         cxxinit(self, analysis_NeighborFluctuation, system, radius)
コード例 #17
0
 def __init__(self, system):
     cxxinit(self, analysis_Velocities, system)
コード例 #18
0
 def __init__(self, system, group):
     cxxinit(self, integrator_VelocityVerletOnGroup, system, group)
コード例 #19
0
 def __init__(self, system):
     cxxinit(self, analysis_Configurations, system)
コード例 #20
0
 def __init__(self, system):
     if not pmi._PMIComm or pmi._MPIcomm.rank in pmi._PMIComm.getMPIcpugroup():
         cxxinit(self, analysis_ParticleRadiusDistribution, system)
コード例 #21
0
ファイル: Settle.py プロジェクト: BackupTheBerlios/espressopp
 def __init__(self, storage, integrator, mO=16.0, mH=1.0, distHH=1.58, distOH=1.0):
     'Local construction of a settle class'
     if pmi.workerIsActive():
         cxxinit(self, _espresso.Settle, storage, integrator, mO, mH, distHH, distOH)
コード例 #22
0
 def __init__(self, system, integrator, filename='out.xyz', unfolded=False, length_factor=1.0, length_unit='LJ', append=True):
   cxxinit(self, io_DumpXYZ, system, integrator, filename, unfolded, length_factor, length_unit, append)
コード例 #23
0
 def __init__(self, system, Ni, a=1.0, tau=1.0, numDims=3, numVels=19):
     if not (pmi._PMIComm and pmi._PMIComm.isActive()) or pmi._MPIcomm.rank in pmi._PMIComm.getMPIcpugroup():
         cxxinit(self, integrator_LatticeBoltzmann, system, Ni, a, tau, numDims, numVels)
コード例 #24
0
 def __init__(self, system):
   cxxinit(self, analysis_XPressure, system)
コード例 #25
0
 def __init__(self, system, capForce, particleGroup = None):
     if not (pmi._PMIComm and pmi._PMIComm.isActive()) or pmi._MPIcomm.rank in pmi._PMIComm.getMPIcpugroup():
         if (particleGroup == None) or (particleGroup.size() == 0):
           cxxinit(self, integrator_CapForce, system, capForce)
         else:
           cxxinit(self, integrator_CapForce, system, capForce, particleGroup)
コード例 #26
0
 def __init__(self, system):
     if not (pmi._PMIComm and pmi._PMIComm.isActive()) or pmi._MPIcomm.rank in pmi._PMIComm.getMPIcpugroup():
         cxxinit(self, integrator_LangevinThermostat1D, system)
コード例 #27
0
 def __init__(self, storage):
     "Local construction of a fixed triple list"
     if pmi.workerIsActive():
         cxxinit(self, _espresso.FixedTripleList, storage)
コード例 #28
0
 def __init__(self, system, n, dh):
     if not pmi._PMIComm or pmi._MPIcomm.rank in pmi._PMIComm.getMPIcpugroup():
         cxxinit(self, analysis_PressureTensorMultiLayer, system, n, dh)
コード例 #29
0
 def __init__(self, system, particleGroup, fixMask):
     if not (pmi._PMIComm and pmi._PMIComm.isActive()) or pmi._MPIcomm.rank in pmi._PMIComm.getMPIcpugroup():
         cxxinit(self, integrator_FixPositions, system, particleGroup, fixMask)
コード例 #30
0
ファイル: MaxPID.py プロジェクト: BackupTheBerlios/espressopp
 def __init__(self, system):
     if not pmi._PMIComm or pmi._MPIcomm.rank in pmi._PMIComm.getMPIcpugroup():
         cxxinit(self, analysis_MaxPID, system)