How to inspect the body one by one in the cloud if I have 2 files YADE separately?
Dear all,
I have some confusions:
I would like to use the paraview to inspect the stress of the body (because if you see in the graph, that the stress is really big until more than 1 million kN/m^2), I wanna know what caused it to happen, but the problem is I made 2 files separately.
My question is:
1. Is that the command I need to do is using VTKRecorder only?
2. If yes, Where I need to put that and how? I made once (not in these files) only like I put VTKRecorder(
3. On Which row I have to put the command?
###SCRIPT### FILE 1
##Sphere Cylinder pack
from yade import pack,plot,
import math
from pylab import rand #for sand color
O.trackEnergy=True
O.engines=
InsertionSort
InteractionLo
[Ip2_
[Law2_
NewtonIntegr
O.bodies.
O.bodies.
O.bodies.
O.bodies.
bottom=
O.bodies.
sp=pack.
s=200
dmax=0.00050*s
dmin=0.00025*s
rMean=(dmax+dmin)/4
rRelFuzz=
nums=10000
sp.makeCloud(
#sp.makeCloud(
O.materials.
sp.toSimulation
##Define material of the grains
for i in range(9,
b=O.bodies[i]
b.state.
b.state.
O.dt=PWaveTimeS
globals(
O.saveTmp()
After all the bodies dropped under the gravity, in the Terminal, I typed In [1]: O.save(
Then I load it in this SCRIPT FILE 2:
#O.load(
O.load(
O.materials.
k=utils.
O.bodies.append(k)
height=10
k.state.
from yade import pack,plot,
O.engines=
def stress_rad1():
b1=O.bodies[-1]
rad1=.25
rad2=.5
rad3=.75
area1=pi*rad1**2
area2=
area3=
ForceP=0
StP=0
ForceP1=0
StP1=0
ForceP2=0
StP2=0
for i in O.bodies[
m=O.bodies[i.id2]
dist=
if dist<=rad1: #1st area
u=O.
ForceP=
StP=
if dist>rad1 and dist<=rad2: #2nd area
u1=
ForceP1=
StP1=
if dist>rad2 and dist<=rad3:#3rd area
u2=
ForceP2=
StP2=
Force=
plot.addData(
globals(
plot.plots={
'i':('
plot.plot(
What should I do?
Thank you in advance!
Cheers!!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Defri
- Solved:
- Last query:
- Last reply:
This question was reopened
- by Defri