Importing Hyper Mesh ascii into matlab to extract nodal coordinates
6 views (last 30 days)
Show older comments
I am currently trying to import nodal coordinates from hyper mesh into matlab. Having gone through many import tutorials, it seems a common assumption is that the data is presented in a typical grid.
Here is a sample of the data that I am working with. After 160 lines of mainly garbage the coordinates appear as the following:
BEGIN NODES
*node(1,-3.75971,-44.8974,-117.002,0,0,0,0,0)
*attributesforentity(NODES,1,2)
*attributedouble(0.0,4146,0,1,9)
*attributedouble(0.0,4147,0,1,9)
*node(2,-4.34886,-44.7984,-117.171,0,0,0,0,0)
*attributesforentity(NODES,2,2)
*attributedouble(0.0,4146,0,1,9)
*attributedouble(0.0,4147,0,1,9)
*node(3,-4.09794,-43.6885,-117.701,0,0,0,0,0)
The basic idea is to import the mesh into matlab, manipulate the points, and then write an ascii file to import back into hyper mesh or another Finite Element Solver. But at this time I am unsure how to even obtain the data, let alone re-write the file with new coordinates for the nodes.
2 Comments
Adeline War
on 14 Mar 2022
You can export the file from export option as a bdf file, import it and covert the data according your requirements whether its in arrays or cells and make the couting from 1 to 8 and so on in the bdf file and arrange your co-ordinates in x,y and z by pre-processing the data.
Answers (0)
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!