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


Python TestQuad4.setUp方法代码示例

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


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

示例1: setUp

# 需要导入模块: from TestQuad4 import TestQuad4 [as 别名]
# 或者: from TestQuad4.TestQuad4 import setUp [as 别名]
  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,代码行数:27,代码来源:TestDislocationTwoFaults.py

示例2: setUp

# 需要导入模块: from TestQuad4 import TestQuad4 [as 别名]
# 或者: from TestQuad4.TestQuad4 import setUp [as 别名]
 def setUp(self):
   """
   Setup for test.
   """
   TestQuad4.setUp(self)
   run_pylith()
   self.outputRoot = "lgdeformrigidbody"
   self.soln = AnalyticalSoln()
   return
开发者ID:jjle,项目名称:pylith,代码行数:11,代码来源:TestLgDeformRigidBody.py

示例3: setUp

# 需要导入模块: from TestQuad4 import TestQuad4 [as 别名]
# 或者: from TestQuad4.TestQuad4 import setUp [as 别名]
 def setUp(self):
   """
   Setup for test.
   """
   TestQuad4.setUp(self)
   run_pylith(RotateApp, GenerateDB)
   self.outputRoot = "shearrotate"
   self.soln = AnalyticalSoln()
   return
开发者ID:geodynamics,项目名称:pylith,代码行数:11,代码来源:TestShearRotate.py

示例4: setUp

# 需要导入模块: from TestQuad4 import TestQuad4 [as 别名]
# 或者: from TestQuad4.TestQuad4 import setUp [as 别名]
 def setUp(self):
   """
   Setup for test.
   """
   TestQuad4.setUp(self)
   run_pylith(TractionApp)
   self.outputRoot = "lgdeformtraction"
   self.soln = AnalyticalSoln()
   return
开发者ID:geodynamics,项目名称:pylith,代码行数:11,代码来源:TestLgDeformTraction.py

示例5: setUp

# 需要导入模块: from TestQuad4 import TestQuad4 [as 别名]
# 或者: from TestQuad4.TestQuad4 import setUp [as 别名]
 def setUp(self):
   """
   Setup for test.
   """
   TestQuad4.setUp(self)
   run_pylith(AxialApp, GenerateDB)
   self.outputRoot = "axialdisp"
   self.soln = AnalyticalSoln()
   return
开发者ID:geodynamics,项目名称:pylith,代码行数:11,代码来源:TestAxialDisp.py

示例6: setUp

# 需要导入模块: from TestQuad4 import TestQuad4 [as 别名]
# 或者: from TestQuad4.TestQuad4 import setUp [as 别名]
 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,代码行数:15,代码来源:TestAxialDisp.py

示例7: setUp

# 需要导入模块: from TestQuad4 import TestQuad4 [as 别名]
# 或者: from TestQuad4.TestQuad4 import setUp [as 别名]
  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,代码行数:18,代码来源:TestSlipWeakeningOpening.py

示例8: setUp

# 需要导入模块: from TestQuad4 import TestQuad4 [as 别名]
# 或者: from TestQuad4.TestQuad4 import setUp [as 别名]
  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,代码行数:18,代码来源:TestFrictionShearStick.py

示例9: setUp

# 需要导入模块: from TestQuad4 import TestQuad4 [as 别名]
# 或者: from TestQuad4.TestQuad4 import setUp [as 别名]
  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,代码行数:19,代码来源:TestDislocation.py


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