필터 지우기
필터 지우기

Importing Hyper Mesh ascii into matlab to extract nodal coordinates

조회 수: 2 (최근 30일)
Jonathan Harris
Jonathan Harris 2013년 3월 5일
댓글: Adeline War 2022년 3월 14일
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
Ata Saricoban
Ata Saricoban 2021년 2월 5일
did u find way how is possible for this?
Adeline War
Adeline War 2022년 3월 14일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by