Closed DianaTavares closed 1 month ago
@AgustinVallejo asked me to take a look at this. Solo assigning.
This patch demonstrates that the boat thinks it has liquid in the BoatBasin when it shouldn't:
That value for this.basin.stepBottom
is leading liquidYInterpolatedProperty
to become nonzero in the interpolation step even though the boat should have no liquid in it.
I experimented with skipping mutating stepBottom and stepTop but it led to other buggy behavior.
I do not know how to proceed and recommend collaboration.
@samreid and I were able to find a fix for this bug. In addition, we found 2 other potential issues with how the model was treating and setting Mass.containingBasin. Here is a patch for @samreid to look over before committing. I believe we are close, but I want to regression test more generally before committing.
We fixed this bug, found two more, and fixed one of those. The last one is in a side issue. Closing.
I hope this issue is not twice because we commented in a previous design meeting that the Buoyancy force that the blocks have when they are inside the boats, and it doesn't have fluid, should not be there:
That 0.14N in the block should not be there. It affects, for example, the calculation of the max mass that the boat can carry because that force increases with the size, like an "imaginary" fluid is inside the boat:
and change when I change the fluid density: