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 197 forks source link

Refactory/allocate fixed memory #546

Closed Xiangyu-Hu closed 1 month ago

Xiangyu-Hu commented 1 month ago

allocate fixed memory so we generate particle buffer or ghost in particle generator other than do them in methods. Main changes are: 1. ParticleGenerator classes naming generalized, a self-define object factory added. 2. ParticleGeneratorReserve for cases with buffer or ghost particles, 3. bidirection buffer revised and simplified.