You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some particles at boundary sometimes get large velocity after solving pressure. Then I found that something weird in function ghostFluidHelper function in pressure.cpp
I think this line
if(alpha < gfClamp) return alpha = gfClamp;
should be changed into
if(alpha < gfClamp) alpha = gfClamp;
In the case of alpha<gfClamp, the Level set value at fluid cell center ( phi_inner ) is nearly 0, ghostFluidHelper() returns (phi_outer/phi_inner) which would be a big value rather than gfClamp(~1e-4)
The text was updated successfully, but these errors were encountered:
Some particles at boundary sometimes get large velocity after solving pressure. Then I found that something weird in function ghostFluidHelper function in pressure.cpp
I think this line
should be changed into
In the case of alpha<gfClamp, the Level set value at fluid cell center ( phi_inner ) is nearly 0, ghostFluidHelper() returns (phi_outer/phi_inner) which would be a big value rather than gfClamp(~1e-4)
The text was updated successfully, but these errors were encountered: