← Back to team overview

yade-users team mailing list archive

Re: [Question #706306]: How can interact spheres with the moving facet when using MPI?

 

Question #706306 on Yade changed:
https://answers.launchpad.net/yade/+question/706306

Joe L. Thompson posted a new comment:
To make the moving facet interact with the spheres in an MPI
environment, you need to take a few steps.

First, you will need to specify that the moving facet is a rigid body,
which can be achieved by setting its "dynamic" property to True:

topcap1.dynamic = True
topcap2.dynamic = True

Secondly, you will need to add the moving facet to the list of bodies in
the interaction loop engine. This can be done by adding the following
line before the InteractionLoop engine:

O.bodies.append(topcap1)
O.bodies.append(topcap2)

Lastly, you will need to include interactions between the moving facet
and the other bodies using the appropriate collision geometry and
interaction groups in the InteractionLoop engine:

InteractionLoop(
    [Ig2_Sphere_Sphere_ScGeom(), Ig2_Facet_Sphere_ScGeom(), Ig2_Facet_Facet_ScGeom()],
    [Ip2_FrictMat_FrictMat_FrictPhys()],
    [Law2_ScGeom_FrictPhys_CundallStrack()]
),


The line Ig2_Facet_Facet_ScGeom() is added to allow the facet-facet interaction.

With these changes, the moving facet should now interact with the
spheres in your simulation when run using MPI.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.