stress field
Hi All,
I want to use the TesselationWrapper command to get the micro-stress, it seems that the code works fine. it can export the vtk.file.
however, all the values in each file are the same.
what's more, in my code, I want to save the files every 10000 steps. while the vtk.flies save every step.
here is the MWE:
#######
from yade import pack, plot
from yade import export
from yade import utils
compFricDegree=45.0
finalFricDegree
rate=-5
damp=0.7
target_strain = 0.15
stabilityThresh
young=4e8
mn,mx=Vector3(
O.materials.
O.materials.
walls=aabbWalls
wallIds=
sp=pack.
psdSizes=
psdCumm=
sp.makeCloud(
sp.toSimulation
O.dt=.5*
triax=TriaxialS
maxMultiplier=
finalMaxMultip
thickness=0,
stressMask=7,
internalCompac
)
newton=
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
GlobalStiffnes
triax,
newton,
]
triax.goal1=
while 1:
O.run(3000,True)
unb=unbalanced
print 'unbalanced force: ',unb,'mean stress: ',triax.meanStress
if unb<stabilityTh
break
triax.wall_
triax.wall_
triax.wall_
triax.wall_
triax.wall_
triax.wall_
setContactFrict
re11=-triax.
re22=-triax.
re33=-triax.
triax.stressMask = 5
newton=
triax.goal2=rate
triax.strainRate2=5
triax.strainRat
def stop_loading():
if -triax.
O.pause()
def stop_loading():
if -triax.
O.pause()
################## here is the stess field part ###############
TW=TesselationW
TW.setState()
TW.computeVolumes()
s=bodyStressTen
for b in O.bodies:
if isinstance(
b.mystress = s[b.id]
vtk = export.
step1 = 0
while -triax.
step1 = step1+10000 ##### I want to save it every 10000 steps.
vtk.exportSphe
O.engines =O.engines[
O.run(500000,True)
#######
thanks,
yong
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: