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://www.sphinxsys.org/
Apache License 2.0
259 stars 199 forks source link

separate the volume from kernel gradient function. #553

Closed Bo-Zhang1995 closed 1 month ago

Bo-Zhang1995 commented 1 month ago

In this pull request, I separate the volume from the kernel gradient function, and the volume will be updated in the density reinitialization process. In this way, the acoustic time step can be regarded as a fixed volume process, and the volume will be updated according to the new configuration, not bonded to the kernel gradient function. Then, the correction matrix can always be valid during the acoustic time step.