keeping constant confinement
Hello all,
I'm trying to create a cylinder full of spheres with a specific porosity and save the data in a text file to be used in another simulation. To do that:
1- I create a cloud of spheres in a box
2- apply triaxial stress until the desired porosity is reached
3- extract a cylinder by crop/filter the packed spheres
The problem is that when I extract the cylinder, the porosity is set back to the original cloud porosity, not the porosity that was reached after applying the triaxial stress. So I'm guessing that I need to apply constant confinement stress on the cylinder to keep it packed to the desired porosity. Can anyone help with that? Below is my code. (note: I'm new in using Yade and still learning how it works)
Thanks
#######
sigmaIso=-1e3
frictangel=.52
targetp=0.65 #this is the targeted porosity
O.materials.
#######
from yade import pack, qt, plot, export
sp=pack.
sp.makeCloud(
sp.toSimulation()
#yade.qt.View()
#######
O.engines=[
ForceResetter(),
InsertionSor
InteractionLoop(
[
[
[
),
PeriTriaxCon
goal=
dynCell=
maxUnbala
doneHook=
),
NewtonIntegr
PyRunner(
]
O.dt=.5*
## stop conditions
O.run()
def P():
if utils.porosity(
print ('porosity = ', utils.porosity())
if utils.porosity(
O.pause()
print 'Finished'
#### cylinder extraction
pred=
sp=SpherePack()
sp.fromSimula
O.switchScene()
spFilter=
spFilter.
#### export data
export.
print ('porosity = ', utils.porosity()) #check the porosity of the extracted cylinder
def compactionFinis
# set the current cell configuration to be the reference one
O.cell.
# change control type: keep constant confinement in x,y, 20% compression in z
triax.
triax.
# allow faster deformation along x,y to better maintain stresses
triax.
# next time, call triaxFinished instead of compactionFinished
triax.
# do not wait for stabilization before calling triaxFinished
triax.
def triaxFinished():
print 'Finished'
O.pause()
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 Othman Sh for more information if necessary.