Question about i.phys.normalForce()
Dear all,
I want to generate a sample with the average contact force lies in a range [Permit_
Is the interaciton not update, after I change the radius of the spheres? if so, how can I update the incteraction properties during the simulaiton?
Errors:
File "PackInPolygon_
F1=
AttributeError: 'NoneType' object has no attribute 'normalForce'
The codes:
Permit_
Permit_
def Cal_Interface():
Rf=0.0
Contact_Num=0
aa=
for i in O.interactions:
if not i.isReal:continue
# print('f:', f)
Rf=Rf+f
return Rf, Contact_Num
while 1:
Sign=0
O.run(1000)
(Rf, Contact_
print("Rf=", Rf,"Contact_Num=", Contact_Num)
if Contact_Num>0:
else:
Rf=0.0
if Rf>Permit_
Mult=0.99
if Rf<Permit_
Mult=1.01
if Rf>Permit_Min_Force and Rf<Permit_
Sign=1
Mult=1
for o in O.bodies:
if isinstance(
print(
if Sign==1:
break
Thanks a lot!
Henry
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 Henry for more information if necessary.