NSPre

From PHASTA Wiki
Jump to: navigation, search

There are currently many versions of NSpre out there. It falls into the category of code that few people change but it gets out of date because it is built against libraries from Simmetrix that do change a few times a year. If you find that the current recommended version fails for your case, send an email to Professor Jansen and he will redirect the email to the current maintainer.

Current recommended version

/users/chitak/develop/phasta/phNSpre/phNSpre/bin/x86_64_linux-icc/NSpre-Parasolid_Serial-openmpi-O

If this fails AND you are working with older meshes and models, you may have to work with on of the older versions listed below.

The oldest version of NSpre which should work with any meshes created with Simmetrix versions prior to 7.2-120626, uses geom.spj file (old attribute file format, created with simappssdk). This vesion can also use version_2 meshes. You need to have geom.xmt_txt, geom.spj, geom.sms files in the directory where you run this. To use this NSpre (if you still have geom.spj files), use

/users/kjansen/NSpre-Parasolid_Serial-mpich1-O


If you have created your mesh with a version later than 7.x libraries, most probably above version is going to fail. Also, if you have used SimModeler to create your attribute file (*.smd), above version is not going to work. There is another executable for this. You need to have geom.xmt_txt, geom.smd, geom.sms files in the directory where you run it. The path is:

/users/chitak/Executables/NSpre-Parasolid_Serial-openmpi-O

This and newer versions require a geom.smd file as the attribute file, so if you still have a geom.spj file, you can convert it to smd format (check SimModeler)

There are counterparts for these executables which use discrete model (*-Discrete_*). You can use the same parallel NSpre executable from

/users/kjansen/NSpre_Parallel-mpich1-O