Import mesh from Matlab to Ansys with additional properties of each element
    조회 수: 10 (최근 30일)
  
       이전 댓글 표시
    
I have obtained a finite element mesh of an image using im2mesh file by JieXian Ma. I want to export it to Ansys, but I need not to just export a mesh (it's already implemented in this file), but first I have to assign Modulus of Elasticity value to each of the node.
From the image I have I've also obtained color intensity matrix (in grayscale). I multiplied it by Elasticity Modulus I have (it represents the non-homogeneity of a bone) and then I need to somehow assign this matrix's values to the mesh.
Mesh consists of verticies (n-by-2) (x and y coordinates) and triangles (m-by-3) (numbers of verticies building up a triangle) vectors. The matrix is a square one.
Also I consider removing zeros from the matrix, as it's not needed in the mesh creation, but then it transforms into a long vector, longer than previous ones and I don't know how to do it normally.
So, maybe someone knows how to assign values to the mesh?
Below are the images of the mesh, bone image and vectors and a color matrix I have.



답변 (1개)
  Jiexian Ma
 2025년 4월 6일
        Hi Maksim,
In the new version of Im2mesh package, the mesh can be exported as msh file. You can open the msh file in Gmsh (free software) and save the mesh as other file format (see below).
inp (Abaqus), key (LSDYNA),
celum, cgns, diff (Diffpack 3D),
unv (I-deas Universal), ir3 (Iridum), med,
mesh (INRIA Medit), mail (CEA Triangulation),
m (Matlab), bdf (Nastran Bulk Data File),
off (Object File Format), p3d (Plot3D Structured Mesh),
stl (STL surface), wrl (VRML surface), vtk (VTK),
dat (Tochnog), ply2 (PLY2 Surface), su2,
neu (GAMBIT Neutral File), x3d, _0000.rad (RADIOSS BLOCK)
I'm not sure which format is better for ANSYS. Good luck!
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



