当前位置: 首页>>代码示例>>Python>>正文


Python TestQuad4.TestQuad4类代码示例

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


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

示例1: setUp

  def setUp(self):
    """
    Setup for test.
    """
    TestQuad4.setUp(self)
    self.mesh['nvertices'] = 81+18
    self.nverticesO = 81
    self.fault1Mesh = {'nvertices': 9,
                       'spaceDim': 3,
                       'ncells': 8,
                       'ncorners': 2}
    self.fault2Mesh = {'nvertices': 9,
                       'spaceDim': 3,
                       'ncells': 8,
                       'ncorners': 2}

    run_pylith()
    self.outputRoot = "dislocation2"
    if has_vtk():
      self.reader = VTKDataReader()
      self.soln = AnalyticalSoln()
    else:
      self.reader = None

    return
开发者ID:rishabhdutta,项目名称:pylith,代码行数:25,代码来源:TestDislocationTwoFaults.py

示例2: setUp

 def setUp(self):
   """
   Setup for test.
   """
   TestQuad4.setUp(self)
   run_pylith()
   self.outputRoot = "lgdeformrigidbody"
   self.soln = AnalyticalSoln()
   return
开发者ID:jjle,项目名称:pylith,代码行数:9,代码来源:TestLgDeformRigidBody.py

示例3: setUp

 def setUp(self):
   """
   Setup for test.
   """
   TestQuad4.setUp(self)
   run_pylith(RotateApp, GenerateDB)
   self.outputRoot = "shearrotate"
   self.soln = AnalyticalSoln()
   return
开发者ID:geodynamics,项目名称:pylith,代码行数:9,代码来源:TestShearRotate.py

示例4: setUp

 def setUp(self):
   """
   Setup for test.
   """
   TestQuad4.setUp(self)
   run_pylith(TractionApp)
   self.outputRoot = "lgdeformtraction"
   self.soln = AnalyticalSoln()
   return
开发者ID:geodynamics,项目名称:pylith,代码行数:9,代码来源:TestLgDeformTraction.py

示例5: setUp

 def setUp(self):
   """
   Setup for test.
   """
   TestQuad4.setUp(self)
   run_pylith(AxialApp, GenerateDB)
   self.outputRoot = "axialdisp"
   self.soln = AnalyticalSoln()
   return
开发者ID:geodynamics,项目名称:pylith,代码行数:9,代码来源:TestAxialDisp.py

示例6: setUp

 def setUp(self):
   """
   Setup for test.
   """
   TestQuad4.setUp(self)
   run_pylith()
   self.outputRoot = "axialdisp"
   if has_vtk():
     self.reader = VTKDataReader()
     self.soln = AnalyticalSoln()
   else:
     self.reader = None
   return
开发者ID:jjle,项目名称:pylith,代码行数:13,代码来源:TestAxialDisp.py

示例7: setUp

  def setUp(self):
    """
    Setup for test.
    """
    TestQuad4.setUp(self)
    self.mesh['nvertices'] = 81+9
    self.nverticesO = 81
    self.faultMesh = {'nvertices': 9,
                      'spaceDim': 2,
                      'ncells': 8,
                      'ncorners': 2}

    run_pylith()
    self.outputRoot = "slipweakening_opening"
    self.soln = AnalyticalSoln()
    return
开发者ID:panzhengyang,项目名称:pylith,代码行数:16,代码来源:TestSlipWeakeningOpening.py

示例8: setUp

  def setUp(self):
    """
    Setup for test.
    """
    TestQuad4.setUp(self)
    self.mesh['nvertices'] = 81+9
    self.nverticesO = 81
    self.faultMesh = {'nvertices': 9,
                      'spaceDim': 2,
                      'ncells': 8,
                      'ncorners': 2}

    run_pylith(ShearStickApp)
    self.outputRoot = "friction_shear_stick"
    self.soln = AnalyticalSoln()
    return
开发者ID:geodynamics,项目名称:pylith,代码行数:16,代码来源:TestFrictionShearStick.py

示例9: setUp

  def setUp(self):
    """
    Setup for test.
    """
    TestQuad4.setUp(self)
    self.mesh['nvertices'] = 81+9
    self.nverticesO = 81
    self.faultMesh = {'nvertices': 9,
                      'spaceDim': 2,
                      'ncells': 8,
                      'ncorners': 2}

    run_pylith(LocalApp2, nprocs=2)
    self.outputRoot = "dislocation_np2"
    self.soln = AnalyticalSoln()

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


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