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

about floating and boundary with addXYZFile #65

Open
Dongxueyang opened this issue Aug 25, 2020 · 2 comments
Open

about floating and boundary with addXYZFile #65

Dongxueyang opened this issue Aug 25, 2020 · 2 comments

Comments

@Dongxueyang
Copy link

Dongxueyang commented Aug 25, 2020

Hi, everyone:
@Oblomov @Narcolessico @Azrael3000
I am making a simulation of a sphere (floating) fall into the water.

I generate the the boundary like this:
GeometryID boundary = addXYZFile(GT_FIXED_BOUNDARY, FT_BORDER, “boundary.dat”,"boudnary.stl");

And generate the fluid like this:
GeometryID fluid= addXYZFile(GT_FLUID, FT_SOLID, “fluid.dat”);

And generate the floating sphere like this:
GeometryID floating_sphere= addSphere(GT_FLOATING_BODY, FT_BORDER, Point(50,50,30),5);
setMassByDensity(floating_sphere,physparam->rho0[0]*2.0);
setParticleMassByDensity(floating_sphere,physparam->rho0[0]*2.0);

After that I run make successfully. But when I run ./GPUSPH , the results is wrong.
Only when time=0 I can see the sphere(floating). Next timestep, the sphere disapeared.
I am in trouble with the problem, and could you give some advices? Maybe there is some wrong with the model.
Hope for your reply.
Dong

@Dongxueyang
Copy link
Author

@Oblomov
Do you see the message and the problem mentioned above?

@Oblomov
Copy link
Contributor

Oblomov commented Aug 27, 2020

Hello @Dongxueyang,

Is the sphere's initial placement in water? Particles and bodies disappearing in such a short time is usually a side-effect of initialization issues such as particles not being correctly deleted or overlapping in some way. Can you verify what the situation is like concerning the sphere placement? Does it happen if the sphere is placed outside of the water at the beginning?

(Also please be patient, we reply when we have the time.)

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

2 participants