Magnus Ringh
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
5 years ago
2019年11月7日 GMT-5 05:07
Hi Quan,
The problem with this file is that the GRID lines contain "Grid" instead of all uppercase "GRID". If you make that change the import works as expected. Was this file created by another software or was it created manually? We haven't seen NASTRAN mesh files with "Grid" written in that way, but if such files are created from another software, we will look into relaxing the requirement that the dataset names are written using all uppercase letters.
Best regards,
Magnus Ringh, COMSOL
Hi Quan,
The problem with this file is that the GRID lines contain "Grid" instead of all uppercase "GRID". If you make that change the import works as expected. Was this file created by another software or was it created manually? We haven't seen NASTRAN mesh files with "Grid" written in that way, but if such files are created from another software, we will look into relaxing the requirement that the dataset names are written using all uppercase letters.
Best regards,
Magnus Ringh, COMSOL
Please login with a confirmed email address before reporting spam
Posted:
5 years ago
2019年11月7日 GMT-5 10:02
Updated:
5 years ago
2019年11月7日 GMT-5 05:02
Thanks, Magnus.
It is generated by myself using matlab. I think even if you dont relax the uppercase requirement because it was not generated from a standard process, you should change the error message so that it is easier for the users to debug.
Thanks, Magnus.
It is generated by myself using matlab. I think even if you dont relax the uppercase requirement because it was not generated from a standard process, you should change the error message so that it is easier for the users to debug.
Lars Gregersen
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
5 years ago
2019年11月8日 GMT-5 04:13
Hi Quan
If you have LiveLink for Matlab then you can use the API for setting up a mesh without having to resport to using a file.
See the section Getting and Setting Mesh Data in the Programming Reference Manual for more infomation. For a standard mesh you only have to specify vertices (setVertex) and elements (setElem). See the attached example.
-------------------
Lars Gregersen
Comsol Denmark
Hi Quan
If you have LiveLink for Matlab then you can use the API for setting up a mesh without having to resport to using a file.
See the section Getting and Setting Mesh Data in the Programming Reference Manual for more infomation. For a standard mesh you only have to specify vertices (setVertex) and elements (setElem). See the attached example.