Manipulating RADMTX

6 views
Skip to first unread message

Brian C

unread,
Jul 19, 2024, 9:20:45 PM7/19/24
to pyNastran Discuss
RADMTX is stored in Punch files.  I'd like to read in these punch files and modify the RADMTX matrix.

I tried reading in a simple punch file, but was unsuccessful (see below).
  • Is this feature not supported?
  • What is the class / method that reads a line... perhaps I should just use that to read the file without the logic that is looking for `BEGIN BULK` or `ENDDATA`
Example Python snippet
model = BDF()
model.read_bdf(nameFinal, xref=False)
print(model.get_bdf_stats())

model.radmtx
{}

len(model.radmtx)
0

Punch File snippet
RADMTX         1       1   0.0     0.0     0.0     0.0     0.0     0.0  
           0.0     0.0   .019103 .01707  .01707  .015337   0.0     0.0  
           0.0     0.0  
RADMTX         1       2   0.0     0.0     0.0     0.0     0.0     0.0  
           0.0   .01707  .019103 .015337 .01707    0.0     0.0     0.0  
           0.0  


Steven Doyle

unread,
Jul 19, 2024, 10:36:20 PM7/19/24
to pynastra...@googlegroups.com
Brian,

You want the punch=True flag in read_bdf

--
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 on the web visit https://groups.google.com/d/msgid/pynastran-discuss/627576de-5116-4617-bacd-6c714ce08eccn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages