Autodesk Nastran OP2

50 views
Skip to first unread message

fernando....@gmail.com

unread,
Feb 26, 2021, 11:20:23 AM2/26/21
to FeResPost
Hello all,

I am trying to load an Autodesk Nastran op2, off course I had no success doing it, anyone ever tried? is it possible?

Thanks BR

Fernando

Николай Животенко

unread,
Feb 26, 2021, 11:48:48 AM2/26/21
to FeResPost
Hello Fernando!

Of course, you can. Please see the manual - III.1.1.7 “OP2” methods for reading Results.
If you are already using the database.readOp2(pathToOP2, "Results") method, but have encountered a problem, we need more information.

пятница, 26 февраля 2021 г. в 19:20:23 UTC+3, fernando....@gmail.com:

Fernando Romagnoli

unread,
Feb 26, 2021, 12:03:27 PM2/26/21
to fere...@googlegroups.com
Thanks for the answer

Yes I am using the Result method as referenced in the manual, see the picture.

Doesn't matter if I generate the op2 with param post -1 or -2 it always returns a msg box with the error message

Run time error 440
Method readop2 of object InastranDB failed.

What am I doing wrong?

Thanks BR

Fernando


--
You received this message because you are subscribed to a topic in the Google Groups "FeResPost" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ferespost/VGurXYDppoM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ferespost+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ferespost/42e6d8f3-9653-4204-8e11-604192518256n%40googlegroups.com.
IMG_20210226_105904.jpg

Николай Животенко

unread,
Feb 26, 2021, 12:11:06 PM2/26/21
to FeResPost
I'm using a C# solution, it's hard for me to talk about a VB solution. You can try to send *.nas and *.op2 files if they are not confidential, I can try to open them with my software.
At first glance, everything happens correctly.

пятница, 26 февраля 2021 г. в 20:03:27 UTC+3, fernando....@gmail.com:

Fernando Romagnoli

unread,
Feb 26, 2021, 12:36:10 PM2/26/21
to fere...@googlegroups.com
I created a simple beam model and it presents the same behaviour.

Inside you will find the nas and op2 for both param post -1 and -2

Thank you

Fernando

You received this message because you are subscribed to the Google Groups "FeResPost" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ferespost+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ferespost/c13097ac-a909-43c3-afbd-02cb9b34c76dn%40googlegroups.com.
FeResPost_AN.zip

Renaud Sizaire

unread,
Feb 27, 2021, 2:35:21 AM2/27/21
to fere...@googlegroups.com

Fernando, Niko,

I made a few tests with ruby using your OP2 files, and adding a few "cout" instructions in FeResPost source code. To make the reading work I have to modify slightly the C++ sources and the "readOp2" instruction.

In my case, this works for the two OP2 files you provide:
            db.readOp2("2u60nf3bd.OP2","Results",nil,nil,nil,-2)
The "-2" means that one is reading a Nastran OP2 produced for EDS I-DEAS. It seems that Autodesk Nastran produces this kind of  OP2 file .(The difference of "PostParam" argument is related to the very beginning of OP2 file.)

I also had to fix a problem in nastran::dataBase::readOp2 method to detect end of file. I added an end-of-file detection. (See attached "NASTRAN/database/readOp2.cpp" file.)

If I understand well, you are using the .NET assembly. I will distribute new .NET binaries corresponding to version 4.5.8 with the fix today.

Regards,

Renaud

Le 26-02-21 à 18:35, Fernando Romagnoli a écrit :
I created a simple beam model and it presents the same behaviour.

Inside you will find the nas and op2 for both param post -1 and -2

Thank you

Fernando

readOp2.cpp

Fernando Romagnoli

unread,
Feb 27, 2021, 6:44:45 AM2/27/21
to fere...@googlegroups.com
You are the man!!

Thank you very much!!

FeResPost

unread,
Feb 27, 2021, 6:55:16 AM2/27/21
to fere...@googlegroups.com
Hello,

I just shared a new version of the libraries in

Latest developments:

NET_20210227/FeResPost_NET_4.5.8_20210227.7z
NET_20210227/FeResPost_lib_20210227.7z
I had to modify a little more than I said this morning, but I think this is OK now.

Renaud

Le 27-02-21 à 08:35, Renaud Sizaire a écrit :

Fernando Romagnoli

unread,
Feb 27, 2021, 9:02:48 AM2/27/21
to fere...@googlegroups.com
Hello Renaud,

I couldn'tnfind the new TLB, I am using the excel version , is it possible to add the amended TLB to the latest dev download link?

Thanks BR

Fernando

FeResPost

unread,
Feb 27, 2021, 11:43:08 AM2/27/21
to fere...@googlegroups.com
Hello Fernando,

This means you are using the COM component and not the .NET assembly.

I just shared new compiled libraries. I hope you find what you need.

Renaud

Le 27-02-21 à 15:02, Fernando Romagnoli a écrit :

FeResPost

unread,
Feb 28, 2021, 5:16:28 AM2/28/21
to FeResPost
Hello Fernando,

I'm afraid yesterday I mixed different versions of the sources when I prepared the binaries with Autodesk fix. I just shared new Windows binaries this morning. I believe it is correct now.

Renaud

Николай Животенко

unread,
Aug 12, 2021, 1:33:46 AM8/12/21
to FeResPost
Thank you very much!

воскресенье, 28 февраля 2021 г. в 13:16:28 UTC+3, FeResPost:
Reply all
Reply to author
Forward
0 new messages