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/particle function #517

Closed Xiangyu-Hu closed 2 months ago

Xiangyu-Hu commented 2 months ago
  1. Separate particle functors from local particle dynamics.
  2. Refactored the pair average functors.
  3. Viscous dynamics templated for non-fixed viscosities.
  4. rename GlobalVariable to SingleVariable for more general usage of the type.

Bascially, I am thinking that using Variables to generalize the data in SPHinXsys is a good idea. I am planning to use more Variable Objects in the library.