yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #19973
[Question #681521]: start an engine at a certain time
New question #681521 on Yade:
https://answers.launchpad.net/yade/+question/681521
Hi,
I want to add HarmonicMotionEngine(A=[0,0,0.01],f=[0,0,20.0],ids=Cylinder) when the simulation runs to 2 seconds.How can I do it?
Using O.engines += ?
Thanks,
Feng
###################
Cylinder=O.bodies.append(geom.facetCylinder(center=(0.0,0.0,1),radius=0.18,height=1,wallMask=7,segmentsNumber=20,color=(1,0,0),material='sphere'))
O.engines=[
ForceResetter(),
InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Facet_Aabb()]),
InteractionLoop(
[Ig2_Sphere_Sphere_ScGeom(),Ig2_Facet_Sphere_ScGeom()],
[Ip2_FrictMat_FrictMat_FrictPhys()],
[Law2_ScGeom_FrictPhys_CundallStrack()]
),
NewtonIntegrator(gravity=(0,0,-9.81),damping=0.1),
]
--
You received this question notification because your team yade-users is
an answer contact for Yade.