← Back to team overview

yade-users team mailing list archive

Re: [Question #698377]: How to correct the strain

 

Question #698377 on Yade changed:
https://answers.launchpad.net/yade/+question/698377

    Status: Solved => Open

Zhicheng Gao is still having a problem:
I have tried setting the depth0, width0, and height0 equal to the current size, but it takes ten steps for it to take effect. And after reloading the previously saved state file, you must run a step to view the strain and stress.
The code is as follows:
O.load('compactedStatesuffusion.yade.gz')
#run 2 steps to check strain, Otherwise, you cannot display strain and stress 
O.run(2,1)
print(triax.strain)
triax.width0=aabbDim()[0]
triax.height0=aabbDim()[1]
triax.depth0=aabbDim()[2]

#Check whether the strain is reset
print(triax.strain)
O.run(2,1)
print(triax.strain)

After reloading the state file or resetting, it needs to run for a
certain time step to see the effect, am I right?

O.run(2,1)
print(triax.strain)

O.run(2,1)
print(triax.strain)

O.run(2,1)
print(triax.strain)

#Reset the strain finally took effect
O.run(2,1)
print(triax.strain)

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