本文整理汇总了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
示例2: setUp
def setUp(self):
"""
Setup for test.
"""
TestQuad4.setUp(self)
run_pylith()
self.outputRoot = "lgdeformrigidbody"
self.soln = AnalyticalSoln()
return
示例3: setUp
def setUp(self):
"""
Setup for test.
"""
TestQuad4.setUp(self)
run_pylith(RotateApp, GenerateDB)
self.outputRoot = "shearrotate"
self.soln = AnalyticalSoln()
return
示例4: setUp
def setUp(self):
"""
Setup for test.
"""
TestQuad4.setUp(self)
run_pylith(TractionApp)
self.outputRoot = "lgdeformtraction"
self.soln = AnalyticalSoln()
return
示例5: setUp
def setUp(self):
"""
Setup for test.
"""
TestQuad4.setUp(self)
run_pylith(AxialApp, GenerateDB)
self.outputRoot = "axialdisp"
self.soln = AnalyticalSoln()
return
示例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
示例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
示例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
示例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