Reply To: Adding an arbitrary shaped particle.
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › Adding an arbitrary shaped particle. › Reply To: Adding an arbitrary shaped particle.
Dear avrachan1,
what do you mean by “I was representing the arbitrary shaped particle by decomposing it into smaller cuboids. This method doesn’t scale well.”? If you use the function addResolvedArbitraryShape3D
then it shouldn’t add any additional costs during the simulation, because that leads to the use of a cached signed distance in the background. The interpolation using that cache doesn’t depend on the original geometry.
For complex shapes, I usually use the combination of geometries using signed distance functions or STLs. Depending on what shapes you need, you could try to use a superellipsoid or try to introduce a new indicator that serves your needs, but the main options that are currently implemented are the STLreader
or the combination of primitives.
Best regards,
Jan