Borrar filtros
Borrar filtros

Importing Hyper Mesh ascii into matlab to extract nodal coordinates

2 visualizaciones (últimos 30 días)
Jonathan Harris
Jonathan Harris el 5 de Mzo. de 2013
Comentada: Adeline War el 14 de Mzo. de 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 comentarios
Ata Saricoban
Ata Saricoban el 5 de Feb. de 2021
did u find way how is possible for this?
Adeline War
Adeline War el 14 de Mzo. de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by