saveTmp and save can not save the state in yadedaily
Hi,
I want to use the function 'saveTmp()' or 'save()' to save the Omega state, but I found it does not work well if I used yadedaily (because I need some functions in yadedaily), the following is my code. If I commented out the"O.load(
#######
#!/usr/bin/python
import string
from yade import plot,qt
from yade.pack import *
from yade import pack, plot
O.materials.
initSize=1.
sp=pack.
O.periodic=True
sp.toSimulation()
O.save(
#######
#!/usr/bin/python
import string
from yade import plot,qt
from yade.pack import *
from yade import pack, plot
import numpy
O.load(
O.dt=PWaveTimeS
EnlargeFactor=1.5
EnlargeFactor=1.0
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
NewtonIntegrat
]
O.cell.
O.step()
bo1s.aabbEnlarg
ns=10
dstrain = utils.Matrix3(
O.cell.
O.run(ns,True)
stressValue=
stressxx=
stressyy=
stressxy=
print 'stressxx'
print stressxx
print 'stressyy'
print stressyy
print 'stressxy'
print stressxy
O.save(
O.load(
ns=10
dstrain = utils.Matrix3(
O.cell.
O.run(ns,True)
stressValue=
print "the stress of the second state"
stressxx=
stressyy=
stressxy=
print 'stressxx'
print stressxx
print 'stressyy'
print stressyy
print 'stressxy'
print stressxy
#######
#!/usr/bin/python
import string
from yade import plot,qt
from yade.pack import *
from yade import pack, plot
import numpy
O.load(
O.dt=PWaveTimeS
EnlargeFactor=1.5
EnlargeFactor=1.0
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
NewtonIntegrat
]
O.cell.
O.step()
bo1s.aabbEnlarg
ns=10
dstrain = utils.Matrix3(
O.cell.
O.run(ns,True)
stressValue=
stressxx=
stressyy=
stressxy=
print 'stressxx'
print stressxx
print 'stressyy'
print stressyy
print 'stressxy'
print stressxy
O.save(
#O.load(
ns=10
dstrain = utils.Matrix3(
O.cell.
O.run(ns,True)
stressValue=
print "the stress of the second state"
stressxx=
stressyy=
stressxy=
print 'stressxx'
print stressxx
print 'stressyy'
print stressyy
print 'stressxy'
print stressxy
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: