SphereBody particle not showing

Asked by Temitope on 2017-08-21

Hi team,

Please, I am having some challenges using the sphere body particle and parameter in addition to the particle that i created in gengeo.

After running the code, only the gengeo cluster particle appeared in the paraview. I want the Spherebody particle to drop under gravity. I'm not sure of where i went wrong? Please see the relevant section of my code below:

Import the appropriate Esys-Particle module
from esys.lsm import*
from esys.lsm.util import Vec3, BoundingBox
from esys.lsm.geometry import*

setVerbosity(True)
#instantiate a simulation object

#Parameters
Rmin = 0.3
Rmax = 1.

#number of processor for simulation
sim = LsmMpi (numWorkerProcesses=1, mpiDimList=[1,1,1])
#initialise the neighbour search algorithm:
sim.initNeighbourSearch(
 particleType="RotSphere",
 gridSpacing=2.5*Rmax,
 verletDist=0.2*Rmin
)
#setting number of timestep and timestep size
sim.setNumTimeSteps(20000)
sim.setTimeStepSize(1.0e-6)

#read the single particle geometry
sim.readGeometry("particle.geo")

#create a steel ball
sim.createSphereBody(name="steel_ball", posn=Vec3(10,80,10), radius=5)

#add the SphereBody Interaction
sim.createInteractionGroup(
 NRotElasticSphereBodyPrms(
    name="steel_interact",
    sphereName="steel_ball",
    normalK=1.0e10
  )
)

Kind Regards
Tope

Question information

Language:
English Edit question
Status:
Answered
For:
ESyS-Particle Edit question
Assignee:
No assignee Edit question
Last query:
2017-08-21
Last reply:
2017-08-21
Bin Cheng (bincheng) said : #1

Hello Tope,

The SphereBody in ESyS-Particle, is not a "real particle", in other words, it is more like a spherical wall, which means that ESyS-Particle don't integrate the position and velocity of the SphereBody by default.

So, if you want to add the force and also the consequent movement to the SphereBody, you need to refresh its position according to the force generated by particles and gravity in Runnable. I remember there is a simple example in tutorial (Implementation of movable walls: the WallLoader Runnable in Page 53 of User's Guide Version 2.3.1).

Hope it helps.

Best wishes,

Bin.

Can you help with this problem?

Provide an answer of your own, or ask Temitope for more information if necessary.

To post a message you must log in.