コード例 #1
0
ファイル: test_cart3d.py プロジェクト: FrankNaets/pyNastran
 def test_cart3d_to_nastran_02(self):
     cart3d_filename = os.path.join(test_path, 'threePlugs.bin.tri')
     bdf_filename = os.path.join(test_path, 'threePlugs2.bdf')
     model = cart3d_to_nastran_model(cart3d_filename)
     model.write_bdf(bdf_filename, size=16)
     self.assertAlmostEqual(model.nodes[1].xyz[0], 1.51971436,
                            msg='if this is 0.0, then the assign_type method had the float32 check removed')
コード例 #2
0
ファイル: test_cart3d.py プロジェクト: w-matthewd/pyNastran
 def test_cart3d_to_nastran_02(self):
     """convert to nastran large field"""
     log = get_logger(level='warning', encoding='utf-8')
     cart3d_filename = os.path.join(TEST_PATH, 'threePlugs.bin.tri')
     bdf_filename = os.path.join(TEST_PATH, 'threePlugs2.bdf')
     model = cart3d_to_nastran_model(cart3d_filename, log=log)
     model.write_bdf(bdf_filename, size=16)
     self.assertAlmostEqual(model.nodes[1].xyz[0], 1.51971436,
                            msg='if this is 0.0, then the assign_type method had the float32 check removed')
     os.remove(bdf_filename)
コード例 #3
0
ファイル: test_cart3d.py プロジェクト: dsegroup22/pyNastran
 def test_cart3d_to_nastran_02(self):
     cart3d_filename = os.path.join(test_path, 'threePlugs.bin.tri')
     bdf_filename = os.path.join(test_path, 'threePlugs2.bdf')
     model = cart3d_to_nastran_model(cart3d_filename)
     model.write_bdf(bdf_filename, size=16)
     self.assertAlmostEqual(
         model.nodes[1].xyz[0],
         1.51971436,
         msg=
         'if this is 0.0, then the assign_type method had the float32 check removed'
     )