KVSlab / VaSP

A collection of tools for pre-processing, simulating, and post-processing vascular fluid-structure-interaction problems
https://kvslab.github.io/VaSP/
GNU General Public License v3.0
9 stars 4 forks source link

Allow multiple runs of 'distancetospheres' method #149

Closed johannesring closed 7 months ago

johannesring commented 7 months ago

This pull request adds the ability to run the distancetospheres meshing method multiple times with distinct parameters for each run.

johannesring commented 7 months ago

This is useful for example if you want to refine the mesh in one region and then you want an even finer mesh at some critical points inside this region. For example, here I use 8 parameters for the distancetospheres meshing method:

vasp-generate-mesh -i C0002.vtp -m distancetospheres -mp 0 0.1 0.6 0.9 0 0.2 0.35 0.9

When running this, a window will pop up and I can place spheres where I want the finer mesh quality. The first four values given to the -mp option will be used, resulting in a mesh with edge length varying from 0.6 to 0.9. For example like this: Screenshot from 2024-03-25 09-37-57 Screenshot from 2024-03-25 09-38-04 After closing the Window, a new window will appear. The result from the previous step will be used. Now, the next four values will be used, and I can place new spheres, for example like this: Screenshot from 2024-03-25 09-38-48 The resulting mesh will look like this: image Hope this help you to understand how to use this.

keiyamamo commented 7 months ago

@johannesring Thank you for the explanation! It is clear to me:)