How to make some stress plates consist of 3 circles (that have radius gradually (0.5,1,2)?
Dear All
I am trying to simulate 3 circles of stress plates that have radius dimension gradually, which has relation with contact force and the area of each circle.
In order to apply the force that corresponds to each area of circles, I need to have 3 stress plates with radius 0.5,1, and 2 in XY plane in the center of the facet.
How can I add those stress plates and how to make some relations among of each contact force and the area of circle (stress plate)?
Could you please tell me how to do that?
this is my existing code:
##Sphere Cylinder pack
from yade import pack,plot,
import math
from pylab import rand #for sand color
O.bodies.
sp=pack.
sp.makeCloud(
sp.toSimulation
##Define material of the grains
#O.bodies[0]
#[b.shape.radius for b in O.bodies if isinstance(
O.bodies[
O.bodies[
O.materials.
##Make a floor
O.bodies.
##Engines and Constitutive Law
O.engines=
InsertionSort
InteractionLo
[Ip2_
[Law2_
NewtonIntegr
PyRunner(
#VTKRecorder
]
O.dt=.9*
def checkUnbalanced():
if O.iter<1000:return # at the very start, unbalanced force can be low as there is only few contacts, but it does not mean the packing is stable
global boulder #without this line, the BOULDER variable would only exist inside this function
boulder=
O.materials.
O.bodies.
O.bodies[
checker.
def unloadBoulder():
if abs(O.forces.
O.run()
checker.
O.engines=
def stress_rad1():
rad1=O.
b=O.bodies[3011]
area1=pi*rad1**2
area2=
area3=
ForceP=0
StP=0
ForceP1=0
StP1=0
ForceP2=0
StP2=0
for i in range (10,3009):
m=O.bodies[i]
if(m.
if (m.state.
if (m.state.
ForceP=
StP=
if ((m.state.
ForceP1=
StP1=
if ((m.state.
ForceP2=
StP2=
if O.iter>1000:
plot.
globals(
plot.plots=
plot.plot(
O.saveTmp()
THANK YOU IN ADVANCE.
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: