示例#1
0
文件: npt.py 项目: auag92/n2dm
 def __init__(self, atoms, 
              timestep, temperature, externalstress, ttime, pfactor,
              mask=None, trajectory=None, logfile=None, loginterval=1):
     ParallelMolDynMixin.__init__(self, 'NPT', atoms)
     aseNPT.__init__(self, atoms, 
              timestep, temperature, externalstress, ttime, pfactor,
              mask=mask, trajectory=trajectory, logfile=logfile,
              loginterval=loginterval)
示例#2
0
    def __init__(self, atoms, timestep, temperature, externalstress, 
            ttime, pfactor, mask=None, trajectory=None, **kwargs):

        NPT.__init__(self, atoms, timestep, temperature,
                     externalstress, ttime, pfactor, mask,
                     trajectory)

        OTF.__init__(self, **kwargs)

        self.md_engine = 'NPT'
示例#3
0
文件: npt.py 项目: AKrishnachand/n2dm
 def __init__(self,
              atoms,
              timestep,
              temperature,
              externalstress,
              ttime,
              pfactor,
              mask=None,
              trajectory=None,
              logfile=None,
              loginterval=1):
     ParallelMolDynMixin.__init__(self, 'NPT', atoms)
     aseNPT.__init__(self,
                     atoms,
                     timestep,
                     temperature,
                     externalstress,
                     ttime,
                     pfactor,
                     mask=mask,
                     trajectory=trajectory,
                     logfile=logfile,
                     loginterval=loginterval)
示例#4
0
文件: npt.py 项目: auag92/n2dm
 def __init__(self, atoms, *args, **kwargs):
     aseNPT.__init__(self, atoms, *args, **kwargs)
     if getattr(atoms, "parallel", False):
         raise NotImplementedError("NPT dynamics does not work in parallel with this version of ASE.  Please use the developer version.")
示例#5
0
文件: npt.py 项目: AKrishnachand/n2dm
 def __init__(self, atoms, *args, **kwargs):
     aseNPT.__init__(self, atoms, *args, **kwargs)
     if getattr(atoms, "parallel", False):
         raise NotImplementedError(
             "NPT dynamics does not work in parallel with this version of ASE.  Please use the developer version."
         )