Facet mesh
Dear All,
I am trying to understand the interaction between a facetbox and sphere.
A sphere falls under gravity in a box. The base of the box can be made of finer facetmesh. When the sphere interacts in the box, I expect one real interaction.
The script:
#------
#------
from yade import pack, qt, export
import numpy as np
#-----
##Defining Box
O.periodic=False
O.bodies.
N_mesh = 1 # Change this to 2,3,.. to refine mesh at the bottom
for iX in range(N_mesh):
for iY in range(N_mesh):
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()
#------
#------
When N_mesh = 1 (corresponding to facetbox with 6 sides), I get two interactions of sphere with the bottom. For N_mesh>1 (say N_mesh = 2) I get 6 interactions.
* I expect just one 'real' interaction in all cases. How can I achieve this in output?
* The force on the sphere is different for different mesh. The position in time is also slightly different for the two cases. What I am doing wrong here?
* I read sometime ago on this launchpad that facetmesh should be fine at the edges and corners for a better result - I can not find it anymore. Someone has an idea about how fine I should make a facet surface?
Look forward to your input.
Thank you
Nishant
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jan Stránský
- Solved:
- Last query:
- Last reply: