Skip to content

about floating and boundary with addXYZFile #65

Description

@Dongxueyang

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions