def test_solid_shell_bar_obj(self): bdf_filename = os.path.join(MODEL_PATH, 'sol_101_elements', 'static_solid_shell_bar.bdf') obj_filename = os.path.join(MODEL_PATH, 'sol_101_elements', 'static_solid_shell_bar.obj') model = BDF() model.read_bdf(bdf_filename) model.save(obj_filename, unxref=True) test = NastranGUI() test.load_nastran_geometry(obj_filename)
def test_gui_elements_01b(self): bdf_filename = os.path.join(MODEL_PATH, 'elements', 'static_elements.bdf') op2_filename = os.path.join(MODEL_PATH, 'elements', 'static_elements.op2') from pyNastran.bdf.bdf import read_bdf, BDF #model = read_bdf(bdf_filename) model = BDF() model.disable_cards([ 'CHEXA', 'CTETRA', 'CPENTA', 'CROD', 'PLOTEL', 'CBAR', 'CBEAM', 'CTRIA3', 'CQUAD4', 'CQUADR', 'CTRIAR', 'CQUAD8', 'CTRIA6', 'CSHEAR', 'CTUBE', 'CONM2', 'CVISC', #'CONROD', 'CELAS1', 'CELAS2', 'CELAS3', 'CELAS4', 'CDAMP1', 'CDAMP2', 'CDAMP3', 'CDAMP4', 'PLOAD1', 'PLOAD2', 'PLOAD4', ]) model.read_bdf(bdf_filename) #print(model.elements) test2 = NastranGUI() test2.load_nastran_geometry(model) test2.load_nastran_results(op2_filename)