pyNastranGUI and CONM2s

23 views
Skip to first unread message

clarkbr...@gmail.com

unread,
Nov 20, 2024, 4:24:24 PM11/20/24
to pyNastran Discuss
Steve,
I think this is well posed and not seen before. 
We are using pyNastranGUI v1.4.1. Although we can get the same broken behavior in v1.4.0 and v1.3.4. I don't know why we didn't see this last semester. But here we are at the end of the semester and students are crashing to finish their course end projects before the end of the semester the first week of December.
The GUI doesn't want to draw CONM2s, in the .dat view. It crashes when asking for any displacement scaled result (static load displacement or eigenvector) when CONM2s are present. I can comment out all the CONM2s and it will draw those displacement shapes just fine.
We are using MSC Nastran 2021.1. The attached zip file has a static load test and a modal test.
If I run it in a command window I get gripes like this:
self.load_actions.on_load_resultsblahblahblah/ModifiedFEMconmTest/conm_test_tip_loads.op2')
Traceback (most recent call last):
  File "menus\results_sidebar.py", line 720, in on_apply
  File "menus\results_sidebar.py", line 807, in update_vtk_window
  File "qt_files\gui_qt_common.py", line 1173, in _set_case
  File "qt_files\gui_qt_common.py", line 1417, in final_grid_update
  File "qt_files\gui_qt_common.py", line 1495, in _final_grid_update
  File "qt_files\gui_qt_common.py", line 1610, in _update_grid
  File "qt_files\gui_qt_common.py", line 1627, in _update_follower_grids_complex
  File "converters\nastran\gui\nastran_io.py", line 3548, in update_conm2s_function
  File "converters\nastran\gui\nastran_io.py", line 3569, in update_mass_grid
AttributeError: 'NoneType' object has no attribute 'SetPoint'

Sincerely,
Clark
Clark Briggs
ModifiedFEMconmTest.zip

Steven Doyle

unread,
Nov 21, 2024, 2:22:47 AM11/21/24
to pynastra...@googlegroups.com
Hmmm...it's struggling on building the CONM2s for some reason (there should be some dots for those). Those don't exist, so you can't update it? I fixed that a month or so ago. It was attached to some other update state. It works just fine in the dev version.

It works on the latest version. I tried building the gui, but am getting some nonsensical error of it trying to open a directory as a file. I think my next attempt will be to downgrade python:

with open(src_name, 'rb') as in_fp:
^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: 'C:\\....\pyNastran\\gui\\icons\\__pycache__'

--
You received this message because you are subscribed to the Google Groups "pyNastran Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pynastran-disc...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pynastran-discuss/e5ddfca2-9698-4b8c-a55c-534e01506faen%40googlegroups.com.

Steven Doyle

unread,
Nov 23, 2024, 4:21:10 PM11/23/24
to pynastra...@googlegroups.com
Clark,

Yeah, downgrading python didn't help, so I went and hacked on pyInstaller.

The latest download is here. Give it a shot. It should just work. No idea why the last one stopped working after a year :)

clarkbr...@gmail.com

unread,
Nov 23, 2024, 5:10:13 PM11/23/24
to pyNastran Discuss
Steve,
Nice work! Thanks for getting on this.
It seems to work ok.
I'll pass it on to the students.
Sincerely,
Clark

Reply all
Reply to author
Forward
0 new messages