Using PFacet/facetBox
In my simulations, sphere falls under gravity on a plate. The plate is modeled using facetbox. The sphere falls at the center of bottom. When the sphere touches the plate, I expect one interaction.
Here is a MWE:
#------
from yade import pack, qt, export
import numpy as np
#-----
##Defining Box
O.periodic=False
# No side boundaries, just a plane!
O.bodies.
#-----
O.bodies.
#-----
##Engine Definition
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
PyRunner(command = 'output()', iterPeriod = 1, label = "checker"),
NewtonIntegrat
]
#-----
def output():
if (O.iter < 20):
count_intrs = 0.0
for i in O.interactions:
if i.isReal:
count_intrs += 1.0
print "time:", O.time, "Sphere position", (O.bodies[
else:
print "done"
O.pause()
#-----
O.dt = 5e-1*PWaveTimeS
O.run()
#------
#------
Using facetbox, I see two interactions and a stiffer contact. How to resolve this? Maybe Pfacet, as suggested to me here [1]? Anyone solved a similar problem?
Thanks
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Nishant for more information if necessary.