Effacer les filtres
Effacer les filtres

Importing Hyper Mesh ascii into matlab to extract nodal coordinates

2 vues (au cours des 30 derniers jours)
Jonathan Harris
Jonathan Harris le 5 Mar 2013
Commenté : Adeline War le 14 Mar 2022
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 commentaires
Ata Saricoban
Ata Saricoban le 5 Fév 2021
did u find way how is possible for this?
Adeline War
Adeline War le 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.

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by