mistakes in calculating shearInc
Hi all,
I have problems in well understanding the code inside 'ScGeom.cpp' when calculating shearInc,
the results given by my python code is quite different from what given by yade simulations.
Does anyone know what's wrong in my python code? Here it is:
import numpy as np
i=O.interaction
n=np.hstack(
p=i.geom.
ra=O.bodies[
rb=O.bodies[
vel1=np.
angVel1=
vel2=np.
angVel2=
## c++ code given by ScGeom.cpp
#alpha = (radius1+
#relativeVelocity = (rbp2->
#relativeVelocity = relativeVelocit
#shearInc = relativeVelocit
alpha=(
relVel=
relVel=
shearInc=
shearInc ### =array([ -4.46043319e-07, -8.65634198e-07, -1.11027027e-07])
i.geom.shearInc ## =Vector3(
O.step()
i.geom.shearInc ## =Vector3(
Thanks in advance!
Best regards.
Lingran
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- lingran
- Solved:
- Last query:
- Last reply: