Nastran file import
issueid=727 07-21-2015 07:24 AM
Junior Member
Nastran file import
Preview crashes while trying to import this nastran file

Hello

I tried to open the attached nastran file and preview crashes everytime I attempt to do so. The mesh was generated in ANSYS ICEM, however the geometry was created using solidworks and 3-matic.
I don't have any problem with importing another mesh generated by ICEM.
https://www.dropbox.com/s/97rgvhvgo0...oud25.nas?dl=0

Thanks
Mirunalini
Issue Details
Issue Number 727
Project PreView
Category Unknown
Status Confirmed
Priority 2
Affected Version Unknown
Fixed Version (none)
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)




07-24-2015 07:37 AM
Lead Code Developer
Hi Mirunalini,

There indeed appears to be a bug in PreView when reading Nastran files. The problem lies in the fact that PreView expects node numbers to be sequential starting from 1. If you look at your model, the node numbers jump (e.g. from 11 to 15). I can fix this easily, but in the mean time, a work-around could be if perhaps you can see if there is a way to make sure the nodes are sequential when outputting the Nastran file.

Cheers,

Steve

07-28-2015 01:20 PM
Junior Member
Hello Steve,

Since you mentioned that the node numbers jump in the nastran file that I sent you, I thought I can try to mesh my STL file in Preview (assuming this will address the issue). But I got an error while importing the STL file.. "Failed importing STL file. First line must be solid definition". I just emailed you the STL file. My email is sgv728@my.utsa.edu

Thanks
Mirunalini

07-28-2015 01:24 PM
Lead Code Developer
Hi Mirunalini,

PreView has two STL importers, one for ASCII STL and one for binary STL. Have you tried both? I believe the error you are getting means that it could be a binary STL. If that doesn't work, feel free to email me the file.

Cheers,

Steve

07-28-2015 01:41 PM
Junior Member
Hello Steve,

Thank you.. I was in fact able to import the STL file using the binary STL importer. I still sent you an email from sgv728@my.utsa.edu regarding the meshes.

Thanks
Mirunalini

08-10-2015 02:36 PM
Junior Member
Hello Steve,

As an update to my problem with importing a nastran file with non-sequential node numbers, I was able to rewrite the .nas file to correct for continuous node numbering using my code. I am able to successfully import the mesh into ADINA, but when I import it into Preview, I only see a 2D projection of the mesh. Is there any particular reason for this or am I missing something?

Here is the link to the .nas file: https://www.dropbox.com/s/180c8bjltr...oud25.nas?dl=0
And here are snapshots of the mesh from ADINA and Preview: https://www.dropbox.com/s/8r81erw509...tmesh.PNG?dl=0
https://www.dropbox.com/s/7wwooy1z4l...tmesh.PNG?dl=0

Also, please let me know if there is a specific template for the writing bulk data in a nastran file to make it compatible with Preview.

Thanks
Mirunalini


Quote Originally Posted by maas
Hi Mirunalini,

There indeed appears to be a bug in PreView when reading Nastran files. The problem lies in the fact that PreView expects node numbers to be sequential starting from 1. If you look at your model, the node numbers jump (e.g. from 11 to 15). I can fix this easily, but in the mean time, a work-around could be if perhaps you can see if there is a way to make sure the nodes are sequential when outputting the Nastran file.

Cheers,

Steve

+ Reply