How to get Micro-strain field from a 2D simulation in YADE
Hi,
YADE example [1] shows how to export the microstrain vtk from a 3D case.
I would like to ask how to get the micro-strain from a (quasi) 2D simulation in YADE.
I made a 2D MWE below (not a perfect 2D), where I use the approach demonstrated in [1] to get the microstrain. The calculated matrix is all zero. When the vtk file is imported into paraview, there is nothing. Possibly because it is based on volume calculation, while in quasi-2D, there is no volume.
Do you have any idea of how to get the microstrain vtk for a 2D case in YADE?
Thanks,
Leonard
################### 2D MWE #############
from __future__ import division
from yade import pack, plot
num_spheres=1000
rate=-0.01
damp=0.6
stabilityThresh
young=5e6
confinement=6.7e3
mn,mx=Vector3(
O.materials.
O.materials.
walls=aabbWalls
wallIds=
sp=pack.
sp.makeCloud(
O.bodies.
Gl1_Sphere.
for b in O.bodies:
if isinstance(
triax=TriaxialS
thickness = 0,
stressMask = 7,
)
newton=
O.engines = [
triax,
newton
]
triax.goal1=
while 1:
O.run(1000, True)
unb=unbalance
print 'unbF:',unb,' meanStress: ',-triax.
if unb<stabilityTh
break
print "### state 1 completed ###"
TW=TesselationW
TW.triangulate()
TW.computeVolumes()
TW.volume(10)
TW.setState(0)
O.run(500,True)
TW.setState(1)
TW.defToVtk(
############
[1]https:/
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Leonard
- Solved:
- Last query:
- Last reply: