Xiangyu-Hu / SPHinXsys

SPHinXsys provides C++ APIs for engineering simulation and optimization. It aims at complex systems driven by fluid, structure, multi-body dynamics and beyond. The multi-physics library is based on a unique and unified computational framework by which strong coupling has been achieved for all involved physics.

Home Page:https://www.sphinxsys.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generating wall (solid body) from particles on surface of stl

Xiangyu-Hu opened this issue · comments

Discussed in #352

Originally posted by Nadun19 June 30, 2023
I am following the "Example 3: 3D Multi-resolution isotropic particle distribution of complex geometries" to generate SPH particles with an STL file. I was wondering what is the best approach to separate the FluidBody and SolidBody (Wall boundary), which is defined based on the outer surface SPH particles. So the inside SPH particles form the FluidBody.

Thanks,
Nadun

In this case, how many layers of particles is treated as solid boundary?

it is parameter you can choose.

Is it possible to use the ExtrudeShape on the TriangleMeshShapeSTL shape type? It did not seem to compile when I tried modifying the 3d_particle_relaxation_single_resolution example.

It should be OK. As the new class is a template class. You can create a branch on your proposed case and a new issue or draft pull request, so that we an have a look on the case.