Closed ajrio closed 4 years ago
Nastran 95 is not supported. I use Windows and as far as I know, nobody has built it for Windows. Some people have done it for Linux, but have not put the code online. Unless I have a working executable, I can't support it.
I can understand. Apparently the Ubuntu terminal can be run on Windows 10 (https://www.microsoft.com/en-us/p/ubuntu/) but I don't have Win10 to test. On my ubuntu box I just installed the package from the debian repository (sudo apt-get install nastran). Maybe it would work on Win 10 this way...
Oh, that does work. I didn't even think of trying that. Do you know who put that up (e.g., which github repository)?
Do you have an example? The d01011a.inp file I tried does not make an op2. There is an nptp file that is binary, but it doesn't strangely follow the standard nastran format.
Glad it works!
https://github.com/nasa/NASTRAN-95/issues/5#issuecomment-400307240
^Extent of possible build ownership and my awareness of the debian package.
Here is my work in progress hobby, for example.
You can see my DMAP Alters with the MSC flag. That generates a readable ("none") binary for your OP2 reader if I force model.post = -4, despite the -9 parameter flag.
As far as I can tell from inspection, this is the following Nastran 95 element codes:
1 CROD
2 C.....
3 CTUBE
4 CSHEAR
5 CTWIST
6 CTRIA1
7 CTRBSC
8 CTRPLT
9 CTRMEM
10 CONROD
11 ELAS1
12 ELAS2
13 ELAS3
14 ELAS4
15 CQDPLT
16 CQDMEM
17 CTRIA2
18 CQUAD2
19 CQUAD1
20 CDAMP1
21 CDAMP2
22 CDAMP3
23 CDAMP4
24 CVISC
25 CMASS1
26 CMASS2
27 CMASS3
28 CMASS4
29 CONM1
30 CONM2
31 PLOTEL
32 C.....
33 C.....
34 CBAR
35 CCONE
36 CTRIARG
37 CTRAPRG
38 CTORDRG
39 CTETRA
40 CWEDGE
41 CHEXA1
42 CHEXA2
43 CFLUID2
44 CFLUID3
45 CFLUID4
46 CFLMASS
47 CAXIF2
48 CAXIF3
49 CAXIF4
50 CSLOT3
51 CSLOT4
52 CHBDY
53 CDUM1
54 CDUM2
55 CDUM3
56 CDUM4
57 CDUM5
58 CDUM6
59 CDUM7
60 CDUM8
61 CDUM9
62 CQDMEM1
63 CQDMEM2
64 CQUAD4
65 CIHEX1
66 CIHEX2
67 CIHEX3
68 CQUADTS
69 CTRIATS
70 CTRIAAX
71 CTRAPAX
72 CAERO1
73 CTRIM6
74 CTRPLT1
75 CTRSHL
76 CFHEX1
77 CFHEX2
78 CFTETRA
79 CFWEDGE
80 CIS2D8
81 CELBOW
82 CFTUBE
83 CTRIA3
That’s not the build. That one is setup for VAX. I wonder if it’s Harry’s build. It’d be nice to find it and at least fix the required DMAP alter.
I got the reader working. It supports rods, springs, dampers, CSHEAR, CBAR, and CTRIA3 at the moment. Some tests are broken and I’m out of town now, so it’ll be a few days.
Great! The way I understand the optimal DMAP logic sequence is that the Alter for output2 should be applied at the SDR2 card for each unique SOL. (https://www.princeton.edu/~dynaflow/femgv/manuals/postnas/node24.htm)
As to the source of the build, I found this: https://tracker.debian.org/pkg/nastran
Cheers and happy holidays!
Thanks!
It's finally done! You can use:
model = OP2()
model..set_as_nasa95()
model.read_op2(op2_filename)
or:
model = read_op2(op2_filename, mode='nasa95')
Wrote an output2 from the OS'd Nastran-95 on a SOL 1 static routine in hopes of importing it into pyNastran. I have CRODS and CTRIA3 in the model but only the CRODS seem to be imported so perhaps the CTRIA3 are being interpreted as HACAB (element code 83)?