GeoscienceAustralia/anuga_core

About the floating and boundary

Dongxueyang opened this issue · 1 comments

Hi:
@stoiver
I am make 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

Hi:
@stoiver
I am make 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