← Back to team overview

yade-users team mailing list archive

[Question #678525]: O.load

 

New question #678525 on Yade:
https://answers.launchpad.net/yade/+question/678525

Hi,

I use 'Periodic triaxial test' from document.I add O.O.save('a.yade.bz2');O.saveTmp() at the end.And in another script.I want to use O.load to start another compression,but the particles shown are the initial, uncompressed cloud.Look forward for your answer.

James

The first script:

# encoding: utf-8

sigmaIso=-1e5

from yade import pack, qt, plot

O.periodic=True
sp=pack.SpherePack()
sp.makeCloud((0,0,0),(2,2,2),rMean=.1,rRelFuzz=.3,periodic=True)
sp.toSimulation()

O.engines=[
	ForceResetter(),
	InsertionSortCollider([Bo1_Sphere_Aabb()]),
	InteractionLoop(
		[Ig2_Sphere_Sphere_ScGeom()],
		[Ip2_FrictMat_FrictMat_FrictPhys()],
		[Law2_ScGeom_FrictPhys_CundallStrack()]
	),
	PeriTriaxController(label='triax',
		goal=(sigmaIso,sigmaIso,sigmaIso),stressMask=7,
		dynCell=True,maxStrainRate=(10,10,10),
		maxUnbalanced=.1,relStressTol=1e-3,
		doneHook='triaxFinished()'
	),
	NewtonIntegrator(damping=.2),
	PyRunner(command='addPlotData()',iterPeriod=100),
]
O.dt=.5*PWaveTimeStep()

def triaxFinished():
	print 'Finished'
	O.pause()

O.save('a.yade.bz2')
O.saveTmp()

###########################
My second script:

# encoding: utf-8
from yade import pack, qt, plot

O.load('a.yade.bz2')

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.