How to reduce unb while keeping state constant
Hi,
I read from the book <Particulate Discrete Element Modelling> in which the author suggests that in servo-controlled simulations once the desired specific stress state is attained, it is good practice to halt all boundary motion and run through a number of DEM calculation cycles to ensure that the system is in equilibrium at that required stress level.
So I want to halt the 6 walls in the triaxial compression test and then run some steps. Here I tied in 2 ways:
The first approach I came up with was fixing all the walls (please see script2-approach 1)
After I O.run(10000), I found that: 1)the unbalancedForce decreased which is expected, 2) triax.porosity is the same which is good. 3) However, the stress on each wall seems to become Vector3(0,0,0), which means the stress state of the sampel is not remained.
The second approach I tried was to keep the stress of all the walls constant as confining pressure (please see script2-approach 2).
After I O.run(10000), I found that: 1) unb decreased which is expected, 2) triax.porosity changed which is not desired because it means the dense state of the sample changed. 3) the stress on each wall get more precisely close to the confining stress which is good.
Both the two ways couldn't keep the current state , do you have any ideas to let simulations run but keep current state?
---
Here is the MWE (modified from Bruno's script) if you want to reproduce this. The MWE is in two-steps: 1st for making sample and 2nd for reloading sample and checking.
######script1#
from __future__ import division
from yade import pack, plot
num_spheres=7000#
targetPorosity = 0.44
compFricDegree = 30
finalFricDegree = 18
rate=-0.01
damp=0.6
stabilityThresh
young=2e8
confinement=100e3
mn,mx=Vector3(
MatWall=
MatSand = O.materials.
walls=aabbWalls
wallIds=
sp=pack.
sp.makeCloud(
O.bodies.
triax=TriaxialS
maxMultipli
finalMaxMul
thickness = 0,
stressMask = 7,
internalCom
)
newton=
O.engines=[
ForceResett
InsertionSo
Interaction
),
GlobalStiff
triax,
TriaxialSta
newton,
]
Gl1_Sphere.
triax.goal1=
while 1:
O.run(1000, True)
#the global unbalanced force on dynamic bodies, thus excluding boundaries, which are not at equilibrium
unb=unbalance
print 'unbF:',unb,' meanStress: ',-triax.
if unb<stabilityTh
break
print "### Isotropic state saved ###"
import sys
while triax.porosity>
compFricDegree = 0.95*compFricDegree
setContactFric
print "\r Friction: ",compFricDegree," porosity:
sys.stdout.flush()
O.run(500,1)
O.save(
print "### Compacted state saved ###"
######script2#
from yade import pack, plot
O.load(
confinement=100e3
triax=TriaxialS
thickness = 0,
stressMask = 5,
internalCom
)
newton=
O.engines=[
ForceResett
InsertionSo
Interaction
),
GlobalStiff
triax,
TriaxialSta
newton,
]
triax.stressMask=7
O.step()
## Try approach 1
triax.wall_
triax.wall_
triax.wall_
triax.wall_
triax.wall_
triax.wall_
## Try approach 2
# triax.goal1=
print "before run:",triax.
print "porosity:
O.run(10000,True)
print "after run:",triax.
print "porosity:
Thanks
Leonard
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: