trixi-framework / TrixiParticles.jl

TrixiParticles.jl: Particle-based multiphysics simulations in Julia
https://trixi-framework.github.io/TrixiParticles.jl/
MIT License
31 stars 8 forks source link

Sticking artifacts and negative pressure of dummy boundary particles #333

Open efaulhaber opened 9 months ago

efaulhaber commented 9 months ago

With ContinuityDensity, we allow negative particle pressure and corresponding attractive forces between particles. This is a good thing, as clipping the pressure results in unphysical rarefaction of the fluid in some situations. A realistic incompressible or weakly compressible fluid can't just be pulled apart to a significantly lower density.

However, we usually (always?) don't want attractive forces between fluid and boundary particles on (free-slip?) walls. But with dummy particle boundaries, we do get attractive forces if the pressure becomes negative. To demonstrate the severity of the problem, here is a dam break with dummy boundary particles using SummationDensity (i.e. their density is calculated through kernel summation and their pressure from the state equation). This is the result when the problem is not treated at all: out4 With SummationDensity, all boundary particles away from the fluid end up with a large negative pressure. Therefore, the fluid is sucked up the walls of the tank (I should've used a tank without ceiling, that would look even funnier).

Currently, we just limit the pressure of dummy boundary particles to be non-negative. This eliminates the sucking, but still produces some sticking artifacts, as there are still attractive forces when a fluid particle close to the boundary has a negative pressure. The example looks like this, then. out5 As can be seen very clearly, there are still sticking artifacts in the form of fluid particles gliding along the boundary.

Another strategy that came to my mind is to limit the coefficient in front of the kernel gradient in the pressure acceleration to be non-negative for fluid-boundary interaction, eliminating all attractive forces between fluid and boundary particles. This is the result: out6 Obviously, without attractive forces, the fluid will bounce off the boundary after the impact.

I created this issue to discuss options and see if we can find anything about this in the literature (I couldn't).

svchb commented 9 months ago

I think we should look again after the surface tension model is merged since part of this model can be used to calculate a repulsive force at the boundary.

LasNikas commented 7 months ago

I created this issue to discuss options and see if we can find anything about this in the literature (I couldn't).

I just found this in section 4.8 in https://doi.org/10.1016/j.compfluid.2018.11.023 The authors also use the BC from Adami.

image

efaulhaber commented 7 months ago

"Change to the implementation" indicates that Adami himself didn't do that? Or did these authors (like us) just not find this anywhere in the paper and assume it has been done by Adami without mentioning? It would probably be the easiest to just ask someone in Adami's group.

efaulhaber commented 6 months ago

Left: main. Right: main, but no attractive forces between fluid and boundary.

https://github.com/trixi-framework/TrixiParticles.jl/assets/44124897/92d76b43-f0a2-41ca-b30a-3e31e09e538b

efaulhaber commented 6 months ago

There are some particles catapulted away in the right version, but at least they're not sticking.