Apply force on sphere particles
Hello,
I would like to apply a force on particles. I tried with this following code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
from yade import pack,ymport,
import array as arr
import numpy
import math
import os
import errno
rad,gap=.15,.02
#Add material
O.materials.
#Parameters, which will be passed into facets creators
kwMeshes=
oriBody = Quaternion(
# Cylinder
O.bodies.
# Sphere Particles
s1=utils.
s1.state.
s1.state.
O.bodies.append(s1)
s2=utils.
s2.state.
s2.state.
O.bodies.append(s2)
O.bodies.
def LorrentzForce():
# define the force applied on particles caused by magnetic fields
for b in O.bodies:
if isinstance(
ftest=
O.forces.
print(
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_Sphere_
[Ip2_ViscElMat
[Law2_
,label = 'interactionLoop'),
PyRunner(
NewtonIntegrat
O.dt=PWaveTimeS
O.run(1,True)
But particles didn't move at all.
Could you please explain what i have done wrong?
Thanks!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Son Tung Dang
- Solved:
- Last query:
- Last reply: