Import mesh from Matlab to Ansys with additional properties of each element
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.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. 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. mesh, finite element method, image processing, ansys MATLAB Answers — New Questions