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')
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)
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' )