O.load but still in the first code
Hi,
In my first script,only if maxUnbalanced<3e-3 ,the process will enter the next function and save the .gz file.But when i run the second script,the unbalancedForce is largger than 3e-3.Then until unbalancedForce is smaller than 3e-3 will start the compression.
1.Why the unbalancedForce become largger?
2.I've rewritten the triaxFinished function. Why still in the first compress until the unbalancedForce is small enough?
Thanks
James
###############
first script:
# encoding: utf-8
from yade import pack, qt, plot
sigmaIso=-25000
O.periodic=True
frictionAngle1=
frictionAngle11
sphere=
multiple=.001
length=3
psdSizes=
psdCumm=
sp=pack.
sp.makeCloud(
n=sp.toSimulation()
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
PeriTriaxCont
goal=
dynCell=
maxUnbalanc
doneHook=
),
NewtonIntegra
PyRunner(
]
O.dt=1*
def num():
print(
def changeMaterial():
O.cell.
for i in n:
triax.
def triaxFinished():
O.cell.
print 'Finished'
O.pause()
qt.Controller()
O.run()
O.wait()
O.save(
O.saveTmp()
#################
scecond script:
#!/usr/bin/python
from yade import pack, qt, plot
O.load(
O.run()
O.dt=1e-13
O.engines += [PyRunner(
def triaxFinished():
O.cell.
triax.
triax.stressMask=4
triax.
triax.
triax.
def functionToRunWh
print 'Finished'
O.pause()
def addPlotData2():
plot.
sxx=
exx=
q=-
p=-
k=(triax.
)
print(
print(porosity())
plot.plots=
plot.plot()
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: