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.
https://xiangyu-hu.github.io/SPHinXsys/
Apache License 2.0
314 stars 232 forks source link

Levelset confinement rotation will make the particles fly away #393

Open yyc84 opened 1 year ago

yyc84 commented 1 year ago

rotation-cells First, I tested the rotation algorithm. See the picture upside, the meshes rotated around the center point (2.0, 1.0) . That indicated the rotation algorithm is corrected.

But when I implemented this rotation algorithm into levelset confinement, the simulation crashed with particles fly away. See the pictures below: rotation-cells-1 rotation-cells-2 rotation-cells-3

I don't know if this problem is due to the fact that I haven't calculated the viscous force around the solid.

yyc84 commented 1 year ago

rotation-confinement I solved the problem upside. While tracing the position, we need to update the normal of vectors

Xiangyu-Hu commented 1 year ago

@yyc84 the issue better closed with a merge pull request if there it is.

Xiangyu-Hu commented 1 year ago

@yyc84 a test for access.

Xiangyu-Hu commented 1 month ago

@yyc84 Any test updated on this issue?