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
293 stars 219 forks source link

Error in CorrectInterpolationKernelWeights #195

Closed JohnVirtonomy closed 1 year ago

JohnVirtonomy commented 1 year ago

https://github.com/Xiangyu-Hu/SPHinXsys/blob/8d5a76089aedb3ce0d61a224b3858b85436c431c/SPHINXsys/src/shared/particle_dynamics/general_dynamics/general_interpolation.cpp#L52

@Xiangyu-Hu This is why the electromechanics case was failing It had dW_ijVj instead of Wij

Xiangyu-Hu commented 1 year ago

Great. Thanks for finding the bug.

Xiangyu-Hu commented 1 year ago

the correction is updated in the pull request.