Avoid interaction between two particles in a four particles experiment
Hello all,
I am doing a special biaxial test which only content Four particles laying to be a rhombus, like this
2 o --- o 0
how can I avoid interaction between axial line particles 1 and 3 if they contact?
I already tried the 'mask' and 'avoidSelfInter
O.bodies[
O.bodies[
[engines]
but when the 1,3 interaction is avoided it is also impossible to establish interactions between two different mask's particles, then all interaction will lose by using 'avoidSelfInter
Do you have any idea to achieve that? thank you.
Huaxiang
here is my code
-------
import math
from yade import plot
conf=100000
poisson=0.5
kn=1.0e8
E=kn/1.0
ks=poisson*kn
rate=5e-4
status=
O.materials.
O.materials.
mn,mx=Vector3(
walls=utils.
wallIds=
O.bodies.append([
utils.
utils.
utils.
utils.
])
for k in O.bodies:
if isinstance(k.shape, Sphere): k.state.
O.dt=.5*
O.usesTimeStepp
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
GlobalStiffnes
NewtonIntegrat
]
O.dt=.5e-
def setVel(velX,velY):
O.bodies[
O.bodies[
O.bodies[
O.bodies[
rateTmp=rate
while 1:
meanS=
unb=unbalance
if rateTmp>0.0 and meanS>conf:
print 'convert'
rateTmp=
elif rateTmp<0.0 and meanS<conf:
print 'convert'
rateTmp=
setVel(
O.run(1, True)
unb=unbalance
meanS=
print 'unbalanced force:',unb,' mean stress: ',meanS
if unb<0.001 and abs(meanS-
break
plot.plots=
plot.plot()
raw_input(
'''
ini=O.bodies[
e22=0.0
e11=0.0
#rate=1e2*rate
while 1:
setVel(
O.run(1,True)
while unbalancedForce
rateTmp=
lateralS=
while abs(lateralS-
if rateTmp>0.0 and lateralS>conf:
elif rateTmp<0.0 and lateralS<conf:
O.run(1, True);e11+=rateTmp
print O.forces.
plot.
'''
rate=10.0*rate
adjust=
ini=O.bodies[
e22=0.0
e11=0.0
rateX=0.0
while 1:
lateralS=
if lateralS>conf:
elif lateralS<conf:
rateX+=adjust
setVel(
O.run(1,True)
while unbalancedForce
print O.forces.
plot.
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: