Hi,
I'd like to simulate a complicated geometry based on a CAD drawing. What is the best way to prepare the CAD drawing and to do the meshing for k-wave simulation? Any step by step explanation?
Thanks.
Firdaus
Hi,
I'd like to simulate a complicated geometry based on a CAD drawing. What is the best way to prepare the CAD drawing and to do the meshing for k-wave simulation? Any step by step explanation?
Thanks.
Firdaus
Hi,
Although we don't have pipeline for mesh discretization at this point, I did some experiments in this direction.
My workflow is following:
1) Convert mesh to *.obj format so that each part uses material with different name (parts have to be closed - "water-tight" meshes). (It's definitely possible to use some better format here)
2) I use my own Python script which takes *.obj file and extracts mesh with specified material name from it. (effectively splitting the *.obj file into parts by material)
3) I use another Python script to take each part and "voxelize" it using VTK. Then I create 3D array and fill in material propreties corresponding to "voxelized" mesh into it (one by one).
4) Finally generated 3D array can be stored in HDF5 and loaded into MATLAB where it can be processed as usual.
I should be able to provide example scripts for parsing *.obj files and "voxelization" using VTK, but it would still take some work to store voxelized results so they can be loaded in MATLAB.
Filip Vaverka
You must log in to post.