Closed Shuaihao-Zhang closed 1 month ago
Probably due to the change of free surface density re initialization, return SMAX(rho_sum, rho_0);
However, may be it is not directly due to this change.
Thanks. I will check that first.
Probably due to the change of free surface density re initialization, return SMAX(rho_sum, rho_0);
Yes, this is the reason for the issue. Should I change this function ReinitializedDensity
back to the previous version? I can submit a pull request together with a regression test for this case.
No. That will lead to another issue of lifting of free surface in free surface flows. #274 We may only change it for two phase flow problems.
I have created a branch for Issue "288-issue-for-the-case-test_2d_square_droplet in the current master version", so that we can work on it to solve the problem.
2021-water-13-02684.pdf we may use the idea of this paper to obtained multiphase density.
Sure, I will check this paper. So that means we give up the previous solution?
The previous formulation is OK, but seems not generalized enough (probably only works for water-air case).
I see. Thanks!
the new version has no such issue.
In the current master version, the calculation result for the test_2d_square_droplet case is incorrect.
I checked the pull request history to find the potential reason.
It was found that the result is still ok after #269 is merged. The source code of #271 can not be founded, but it just changed a few lines of code. After #274 is merged. The result become unreasonable.
I haven't found the exact cause of this issue yet. I will try to figure it out. And add a regression test for this case immediately after it is fixed.