本文整理汇总了Python中pylith.tests.Fault.check_vertex_fields函数的典型用法代码示例。如果您正苦于以下问题:Python check_vertex_fields函数的具体用法?Python check_vertex_fields怎么用?Python check_vertex_fields使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了check_vertex_fields函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_fault_info
def test_fault_info(self):
"""
Check fault information.
"""
if not self.checkResults:
return
filename = "%s-fault_info.h5" % self.outputRoot
fields = ["strike_dir", "normal_dir", "traction_initial","static_coefficient","dynamic_coefficient","slip_weakening_parameter","cohesion"]
check_vertex_fields(self, filename, self.faultMesh, fields)
return
示例2: test_fault_data
def test_fault_data(self):
"""
Check fault information.
"""
if not self.checkResults:
return
filename = "%s-fault.h5" % self.outputRoot
fields = ["slip", "traction","cumulative_slip","previous_slip"]
check_vertex_fields(self, filename, self.faultMesh, fields)
return
示例3: test_fault_info
def test_fault_info(self):
"""
Check fault information.
"""
if not self.checkResults:
return
filename = "%s-fault_info.h5" % self.outputRoot
fields = ["normal_dir", "final_slip", "slip_time"]
check_vertex_fields(self, filename, self.faultMesh, fields)
return
示例4: test_fault1_data
def test_fault1_data(self):
"""
Check fault information.
"""
if self.reader is None:
return
filename = "%s-fault1_t0000000.vtk" % self.outputRoot
fields = ["cumulative_slip", "traction_change"]
check_vertex_fields(self, filename, self.fault1Mesh, fields)
return
示例5: test_fault1_info
def test_fault1_info(self):
"""
Check fault information.
"""
if self.reader is None:
return
filename = "%s-fault1_info.vtk" % self.outputRoot
fields = ["normal_dir", "final_slip", "slip_time"]
check_vertex_fields(self, filename, self.fault1Mesh, fields)
return
示例6: test_fault_data
def test_fault_data(self):
"""
Check fault information.
"""
if not self.checkResults:
return
filename = "%s-fault.h5" % self.outputRoot
fields = ["slip"]
from pylith.tests.Fault import check_vertex_fields
check_vertex_fields(self, filename, self.faultMesh, fields)
return
示例7: test_fault_info
def test_fault_info(self):
"""
Check fault information.
"""
if not self.checkResults:
return
filename = "%s-fault_info.h5" % self.outputRoot
fields = ["strike_dir", "normal_dir", "traction_initial","friction_coefficient","cohesion"]
from pylith.tests.Fault import check_vertex_fields
check_vertex_fields(self, filename, self.faultMesh, fields)
return
示例8: test_fault_info
def test_fault_info(self):
"""
Check fault information.
"""
if not self.checkResults:
return
from pylith.tests.Fault import check_vertex_fields
fields = ["normal_dir", "final_slip", "slip_time"]
self.fault = 1
filename = "%s-fault1_info.h5" % self.outputRoot
check_vertex_fields(self, filename, self.faultMesh1, fields)
self.fault = 2
filename = "%s-fault2_info.h5" % self.outputRoot
check_vertex_fields(self, filename, self.faultMesh2, fields)
return