The spheres explodes at the first iter
Hello everyone, I 'm using script like [1] to generate a dense sample which will be later cemented as intact rock. The script is like
from yade import ymport,pack,export
import sys
#surf=ymport.
#O.bodies.
key='test'
mv_x=200e-3
mv_y=200e-3
mv_z=200e-3
targetPorosity = 0.40
rlow=3e-3
rhi=rlow*1.5
rmean=(
rfuzz=(
rmean2=rmean/1.1
numBall=
print numBall
#O.materials.
O.materials.
mn,mx=Vector3(
walls=aabbWalls
wallIds=
try:
O.bodies.
print len(O.bodies)
a=raw_
if a=='n':
sys.exit(0)
except:
sp=pack.
sp.makeCloud(
sp.toSimulation()
export.
print 'fooled'
def getPoro():
Vol=0.0
for o in O.bodies:
if isinstance(
Vol+
return 1-Vol/mv_
radiusMult = ( (1.0 -targetPorosity ) / (1.0 - getPoro()) )**(1.0/3.0)
print radiusMult
def expand():
print "expanding radius * %f" % radiusMult
for b in O.bodies:
if isinstance(
b.shape.
def calm():
for b in O.bodies:
if isinstance(
b.state.
b.state.
print getPoro()
triax=ThreeDTri
maxMultiplier=
finalMaxMultip
thickness = 0,
stressControl_1 = True,
stressControl_2 = True,
stressControl_3 = True,
## Independant stress values for anisotropic loadings
goal1=-1e6,
goal2=-1e6,
goal3=-1e6,
internalCompac
Key=key,
)
newton=
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
triax,
newton,
VTKRecorder(
]
O.dt=.5*
print 'current poro: ', getPoro()
#while 1:
#O.run(1000, True)
##the global unbalanced force on dynamic bodies, thus excluding boundaries, which are not at equilibrium
#unb=unbalance
#print 'unbalanced force:',unb,' mean stress: ',triax.meanStress
#print 'current poro: ', getPoro()
#if unb<1e-4 and abs(-10000-
#break
O.run(1.True)
O.save('disc.yade')
#######
The particles will explodes with nothing left as I can see nothing in the paraview or in the plot window
[1]https:/
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- JIPEIQI
- Solved:
- Last query:
- Last reply:
This question was reopened
- by JIPEIQI