def setUp(self):
     self.parts = create_linear_tet_part()
     self.ntr_mesh_file = os.path.join('py_bonemat_abaqus','tests','test1.ntr')
     create_ntr_file(self.ntr_mesh_file)
     output_abq_inp(self.parts, self.ntr_mesh_file, 0.35)
     self.inp_mesh_file = os.path.join('py_bonemat_abaqus','tests','test2.inp')
     create_inp_file(self.inp_mesh_file)
     output_abq_inp(self.parts, self.inp_mesh_file, 0.35)
Пример #2
0
 def setUp(self):
     self.parts = create_linear_tet_part()
     self.ntr_mesh_file = os.path.join('py_bonemat_abaqus', 'tests',
                                       'test1.ntr')
     create_ntr_file(self.ntr_mesh_file)
     output_abq_inp(self.parts, self.ntr_mesh_file, 0.35)
     self.inp_mesh_file = os.path.join('py_bonemat_abaqus', 'tests',
                                       'test2.inp')
     create_inp_file(self.inp_mesh_file)
     output_abq_inp(self.parts, self.inp_mesh_file, 0.35)
 def setUp(self):
     self.param_file = os.path.join('py_bonemat_abaqus', 'tests', 'test.txt')
     create_parameters(self.param_file)
     self.param = import_parameters(self.param_file)
     self.param2 = self.param
     self.param2['version'] = 2
     self.param3 = self.param
     self.param3['version'] = 3
     self.part = create_linear_tet_part()
     self.vtk = create_vtk()
     self.part = calc_mat_props(self.part, self.param, self.vtk)
     self.part2 = calc_mat_props(self.part, self.param2, self.vtk)
     self.part3 = calc_mat_props(self.part, self.param3, self.vtk)
Пример #4
0
 def setUp(self):
     self.param_file = os.path.join('py_bonemat_abaqus', 'tests',
                                    'test.txt')
     create_parameters(self.param_file)
     self.param = import_parameters(self.param_file)
     self.param2 = self.param
     self.param2['version'] = 2
     self.param3 = self.param
     self.param3['version'] = 3
     self.part = create_linear_tet_part()
     self.vtk = create_vtk()
     self.part = calc_mat_props(self.part, self.param, self.vtk)
     self.part2 = calc_mat_props(self.part, self.param2, self.vtk)
     self.part3 = calc_mat_props(self.part, self.param3, self.vtk)