O.save/O.load problem
Hi all,
I am trying to continue my simulation in a rotating drum after I stop it. To do this I save my first simulation using O.save at the end of my first script. I also export vtu files for visualisation in Paraview. This works correctly. Then I O.load the saved file (test.bz2) at the beginning of the second script. The simulation goes on and gives me vtu files. However, in the vtu files some points are Nan and I do not get a proper visualisation in Paraview (it does not show the particles in paraview). I was wondering if you could help me with this issue.
I have attached my two scripts here as well :
Script 1:
from yade import ymport
from yade import pack
from yade import utils, plot,wrapper
from yade import export
nCG=1
fr = 0.38
rho = 3700
En = 0.22
Et = 0.22
poi=0.3
yoM=200e6
r = 0.0005
Gamma = 0.072
Theta = 0
vB = 6.03 * 1e-9 * (nCG**3)
Eta= 0.001
CapType=
Tc=0.00045
##defining material
mat=O.materials
)
mat2=O.
)
#defining the spheres
sp=pack.
sp.makeCloud(
sp.toSimulation
Nprtcl=
print(Nprtcl)
Tt= utils.PWaveTime
O.dt = 0.5*Tt
print(O.dt)
#liquidMigration
VV=0.03
Vmin=0.0
for s in O.bodies:
if not type(s.
##
Drum=geom.
walls = O.bodies.
##engine
O.engines = [
),
O.run( 500000,True)
O.save('test.bz2')
Script 2:
from yade import ymport
from yade import pack
from yade import utils, plot,wrapper
from yade import export
O.load('test.bz2')
Nprtcl=
print(Nprtcl)
O.run(15000,True)
###
BTW, I am using this version yade-2022-
Thanks in advance for your respopnse!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Karol Brzezinski
- Solved:
- Last query:
- Last reply: