本文整理汇总了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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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