• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python Integrator.Integrator类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中pylith.feassemble.Integrator.Integrator的典型用法代码示例。如果您正苦于以下问题:Python Integrator类的具体用法?Python Integrator怎么用?Python Integrator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了Integrator类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: preinitialize

 def preinitialize(self, mesh):
   """
   Do pre-initialization setup.
   """
   BoundaryCondition.preinitialize(self, mesh)
   Integrator.preinitialize(self, mesh)
   return
开发者ID:jjle,项目名称:pylith,代码行数:7,代码来源:PointForce.py


示例2: preinitialize

  def preinitialize(self, mesh):
    """
    Do pre-initialization setup.
    """
    from pylith.mpi.Communicator import mpi_comm_world
    comm = mpi_comm_world()    

    if 0 == comm.rank:
      self._info.log("Pre-initializing fault '%s'." % self.label())
    FaultCohesive.preinitialize(self, mesh)
    Integrator.preinitialize(self, mesh)

    ModuleFaultCohesiveDyn.quadrature(self, self.faultQuadrature)

    if mesh.dimension() == 2:
      self.availableFields['vertex']['info'] += ["strike_dir"]
    elif mesh.dimension() == 3:
      self.availableFields['vertex']['info'] += ["strike_dir",
                                                 "dip_dir"]

    if not isinstance(self.tract, NullComponent):
      self.tract.preinitialize(mesh)
      self.availableFields['vertex']['info'] += self.tract.availableFields['vertex']['info']

    self.availableFields['vertex']['info'] += \
        self.friction.availableFields['vertex']['info']
    self.availableFields['vertex']['data'] += \
        self.friction.availableFields['vertex']['data']
    return
开发者ID:jjle,项目名称:pylith,代码行数:29,代码来源:FaultCohesiveDyn.py


示例3: preinitialize

  def preinitialize(self, mesh):
    """
    Do pre-initialization setup.
    """
    from pylith.mpi.Communicator import mpi_comm_world
    comm = mpi_comm_world()

    if 0 == comm.rank:
      self._info.log("Pre-initializing fault '%s'." % self.label())
    FaultCohesive.preinitialize(self, mesh)
    Integrator.preinitialize(self, mesh)

    ModuleFaultCohesiveKin.quadrature(self, self.faultQuadrature)

    for eqsrc in self.eqsrcs.components():
      eqsrc.preinitialize()
    ModuleFaultCohesiveKin.eqsrcs(self, self.eqsrcs.inventory.facilityNames(),
                                  self.eqsrcs.components())

    for name in self.eqsrcs.inventory.facilityNames():
      self.availableFields['vertex']['info'] += ["final_slip_%s" % name]
      self.availableFields['vertex']['info'] += ["slip_time_%s" % name]

    if mesh.dimension() == 2:
      self.availableFields['vertex']['info'] += ["strike_dir"]
    elif mesh.dimension() == 3:
      self.availableFields['vertex']['info'] += ["strike_dir",
                                                 "dip_dir"]
    return
开发者ID:rishabhdutta,项目名称:pylith,代码行数:29,代码来源:FaultCohesiveKin.py


示例4: __init__

 def __init__(self, name="absorbingdampers"):
   """
   Constructor.
   """
   BoundaryCondition.__init__(self, name)
   Integrator.__init__(self)
   self._loggingPrefix = "AbBC "
   return
开发者ID:geodynamics,项目名称:pylith,代码行数:8,代码来源:AbsorbingDampers.py


示例5: finalize

 def finalize(self):
   """
   Cleanup.
   """
   BoundaryCondition.finalize(self)
   Integrator.finalize(self)
   self._modelMemoryUse()
   return
开发者ID:jjle,项目名称:pylith,代码行数:8,代码来源:Neumann.py


示例6: finalize

 def finalize(self):
   """
   Cleanup.
   """
   FaultCohesive.finalize(self)
   Integrator.finalize(self)
   self.output.close()
   self.output.finalize()
   return
开发者ID:youngsolar,项目名称:pylith,代码行数:9,代码来源:FaultCohesiveImpulses.py


示例7: preinitialize

 def preinitialize(self, mesh):
   """
   Do pre-initialization setup.
   """
   BoundaryCondition.preinitialize(self, mesh)
   Integrator.preinitialize(self, mesh)
   self.bcQuadrature.preinitialize(mesh.coordsys().spaceDim())
   self.quadrature(self.bcQuadrature)
   self.createSubMesh(mesh)
   return
开发者ID:geodynamics,项目名称:pylith,代码行数:10,代码来源:AbsorbingDampers.py


示例8: finalize

 def finalize(self):
   """
   Cleanup.
   """
   for eqsrc in self.eqsrcs.components():
     eqsrc.finalize()
   FaultCohesive.finalize(self)
   Integrator.finalize(self)
   self.output.close()
   self.output.finalize()
   return
开发者ID:rishabhdutta,项目名称:pylith,代码行数:11,代码来源:FaultCohesiveKin.py


示例9: poststep

  def poststep(self, t, dt, fields):
    """
    Hook for doing stuff after advancing time step.
    """
    logEvent = "%spoststep" % self._loggingPrefix
    self._eventLogger.eventBegin(logEvent)

    Integrator.poststep(self, t, dt, fields)
    FaultCohesive.poststep(self, t, dt, fields)

    self._eventLogger.eventEnd(logEvent)
    return
开发者ID:jjle,项目名称:pylith,代码行数:12,代码来源:FaultCohesiveTract.py


示例10: verifyConfiguration

  def verifyConfiguration(self):
    """
    Verify compatibility of configuration.
    """
    logEvent = "%sverify" % self._loggingPrefix
    self._eventLogger.eventBegin(logEvent)

    FaultCohesive.verifyConfiguration(self)
    Integrator.verifyConfiguration(self)
    ModuleFaultCohesiveImpulses.verifyConfiguration(self, self.mesh())

    self._eventLogger.eventEnd(logEvent)
    return
开发者ID:youngsolar,项目名称:pylith,代码行数:13,代码来源:FaultCohesiveImpulses.py


示例11: __init__

    def __init__(self, name="faultcohesiveimpulses"):
        """
    Initialize configuration.
    """
        FaultCohesive.__init__(self, name)
        Integrator.__init__(self)
        self._loggingPrefix = "CoIm "

        self.availableFields = {
            "vertex": {"info": ["normal_dir", "impulse_amplitude", "area"], "data": ["slip", "traction_change"]},
            "cell": {"info": ["partition"], "data": []},
        }
        return
开发者ID:jjle,项目名称:pylith,代码行数:13,代码来源:FaultCohesiveImpulses.py


示例12: initialize

  def initialize(self, totalTime, numTimeSteps, normalizer):
    """
    Initialize cohesive elements.
    """
    logEvent = "%sinit" % self._loggingPrefix
    self._eventLogger.eventBegin(logEvent)
    self._info.log("Initializing fault '%s'." % self.label())

    Integrator.initialize(self, totalTime, numTimeSteps, normalizer)
    
    FaultCohesive.initialize(self, totalTime, numTimeSteps, normalizer)

    self._eventLogger.eventEnd(logEvent)
    return
开发者ID:jjle,项目名称:pylith,代码行数:14,代码来源:FaultCohesiveTract.py


示例13: __init__

 def __init__(self, name="neumann"):
   """
   Constructor.
   """
   BoundaryCondition.__init__(self, name)
   Integrator.__init__(self)
   TimeDependent.__init__(self)
   self._loggingPrefix = "NeBC "
   self.availableFields = \
       {'vertex': \
          {'info': [],
           'data': []},
        'cell': \
          {'info': [],
           'data': []}}
   return
开发者ID:jjle,项目名称:pylith,代码行数:16,代码来源:Neumann.py


示例14: verifyConfiguration

  def verifyConfiguration(self):
    """
    Verify compatibility of configuration.
    """
    logEvent = "%sverify" % self._loggingPrefix
    self._eventLogger.eventBegin(logEvent)

    FaultCohesive.verifyConfiguration(self)
    Integrator.verifyConfiguration(self)
    ModuleFaultCohesiveKin.verifyConfiguration(self, self.mesh())

    for eqsrc in self.eqsrcs.components():
      eqsrc.verifyConfiguration()
    
    self._eventLogger.eventEnd(logEvent)
    return
开发者ID:rishabhdutta,项目名称:pylith,代码行数:16,代码来源:FaultCohesiveKin.py


示例15: preinitialize

  def preinitialize(self, mesh):
    """
    Do pre-initialization setup.
    """
    self._info.log("Pre-initializing fault '%s'." % self.label())
    FaultCohesive.preinitialize(self, mesh)
    Integrator.preinitialize(self, mesh)

    ModuleFaultCohesiveTract.quadrature(self, self.faultQuadrature)

    if mesh.dimension() == 2:
      self.availableFields['cell']['info'] += ["strike_dir"]
    elif mesh.dimension() == 3:
      self.availableFields['cell']['info'] += ["strike_dir",
                                               "dip_dir"]

    return
开发者ID:jjle,项目名称:pylith,代码行数:17,代码来源:FaultCohesiveTract.py


示例16: initialize

  def initialize(self, totalTime, numTimeSteps, normalizer):
    """
    Initialize PointForce boundary condition.
    """
    logEvent = "%sinit" % self._loggingPrefix
    self._eventLogger.eventBegin(logEvent)

    from pylith.mpi.Communicator import mpi_comm_world
    comm = mpi_comm_world()

    if 0 == comm.rank:
      self._info.log("Initializing point forces '%s'." % self.label())

    Integrator.initialize(self, totalTime, numTimeSteps, normalizer)
    BoundaryCondition.initialize(self, totalTime, numTimeSteps, normalizer)

    self._eventLogger.eventEnd(logEvent)    
    return
开发者ID:jjle,项目名称:pylith,代码行数:18,代码来源:PointForce.py


示例17: __init__

  def __init__(self, name="faultcohesivedyn"):
    """
    Initialize configuration.
    """
    FaultCohesive.__init__(self, name)
    Integrator.__init__(self)
    self._loggingPrefix = "CoTr "

    self.availableFields = \
        {'vertex': \
           {'info': [],
            'data': []},
         'cell': \
           {'info': ["normal_dir"],
            'data': ["slip",
                     "traction"]},
}
    return
开发者ID:jjle,项目名称:pylith,代码行数:18,代码来源:FaultCohesiveTract.py


示例18: initialize

  def initialize(self, totalTime, numTimeSteps, normalizer):
    """
    Initialize cohesive elements.
    """
    logEvent = "%sinit" % self._loggingPrefix
    self._eventLogger.eventBegin(logEvent)

    from pylith.mpi.Communicator import mpi_comm_world
    comm = mpi_comm_world()

    if 0 == comm.rank:
      self._info.log("Initializing fault '%s'." % self.label())

    Integrator.initialize(self, totalTime, numTimeSteps, normalizer)
    FaultCohesive.initialize(self, totalTime, numTimeSteps, normalizer)

    self._eventLogger.eventEnd(logEvent)
    return
开发者ID:youngsolar,项目名称:pylith,代码行数:18,代码来源:FaultCohesiveImpulses.py


示例19: __init__

  def __init__(self, name="faultcohesiveimpulses"):
    """
    Initialize configuration.
    """
    FaultCohesive.__init__(self, name)
    Integrator.__init__(self)
    self._loggingPrefix = "CoIm "

    self.availableFields = \
        {'vertex': \
           {'info': ["normal_dir",
                     "impulse_amplitude",
                     "area",],
            'data': ["slip",
                     "traction_change"]},
         'cell': \
           {'info': ["partition"],
            'data': []}}
    return
开发者ID:youngsolar,项目名称:pylith,代码行数:19,代码来源:FaultCohesiveImpulses.py


示例20: __init__

  def __init__(self, name="faultcohesivekin"):
    """
    Initialize configuration.
    """
    FaultCohesive.__init__(self, name)
    Integrator.__init__(self)
    self._loggingPrefix = "CoKi "

    self.availableFields = \
        {'vertex': \
           {'info': ["normal_dir",
                     "final_slip",
                     "slip_time"],
            'data': ["slip",
                     "traction_change"]},
         'cell': \
           {'info': ["partition"],
            'data': []}}
    return
开发者ID:rishabhdutta,项目名称:pylith,代码行数:19,代码来源:FaultCohesiveKin.py



注:本文中的pylith.feassemble.Integrator.Integrator类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python Quadrature.Quadrature类代码示例发布时间:2022-05-25
下一篇:
Python FIATSimplex.FIATSimplex类代码示例发布时间:2022-05-25
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap