comp-physics / RBC3D

3D Spectral boundary integral solver for cell-scale blood flow
MIT License
7 stars 3 forks source link

Random point selection in arbitrary wall geometry #43

Closed suzanmanasreh closed 2 months ago

suzanmanasreh commented 3 months ago

Currently, examples/randomized_case and examples/carotid_web assume a tube has a circular cross section, so they choose random points in a circle. However, that's not the case for tubes that look like this and this. This ticket is to write a place cell algorithm that handles placing cells in any arbitrary wall geometry.

suzanmanasreh commented 3 months ago

The solution I'm using right now is to generate points within the bounding box and then check if there's wall vertices on either side, but a lot of false points get generated, so it can only be used with very weird geometries, and it's not fully done yet. This is kind of what they did here, but I'm not sure exactly what they mean by uniform sample with spacing h.