question about XSPH
In the current code (Line 691 of JSphCpu.cpp), the summation of XSPH contribution to particle i also includes the contribution from boundary particle j. For example particle i is fluid particle, and particle j is static boundary particle that never moves, but it looks like the particle j still contribute to particle i in XSPH. Does that make sense? Because, the purpose of XSPH is to make the fluid particle flows together with its neighboring Fliud particles to make it more localized and stable. So it looks like we should not include the contribution from boundary particles into it, because it is not moving with fluid particles, and it is always slowing down the fluid particle movement, if we include its contribution in XSPH, as V(ba)=Vb-Va=0-Va=-Va. Please let me know if I understand this point correctly. Thanks a lot!!!
Comments
I have asked one of the more senior developers about this and his response was that "it really depends if you want the boundaries to be considered no-slip or not".
The DualSPHysics implementation is such that the boundaries introduce drag, so technically it is not incorrect, but idealistically, it may not be suitable for your requirements.
Kind regards.