Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A bug in ghostFluidHelper? #6

Open
furryrabbit opened this issue Jul 4, 2022 · 0 comments
Open

A bug in ghostFluidHelper? #6

furryrabbit opened this issue Jul 4, 2022 · 0 comments

Comments

@furryrabbit
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant