Is possible to plot the unbreakable bonds during UTS in paraview
Hello to everybody, i hope everyone is fine during Convid!!
To be honest, i beleive the title of my question says everything.
I am conducting UTS simulations and i want to process the reuslts in paraview.
I dont know how to plot the unbreakable zone of bonds in paraview?
Is any way fir something like that to be achieved?
Thank you.
I am showing the code below...
# -*- coding: utf-8 -*-
# -*- encoding=utf-8 -*-
from yade import ymport, plot
#### Simulation of a uniaxial test (compression or tension depending on the sign of the loading rate "rate" defined below)
# everything is documented at https:/
################# SIMULATIONS DEFINED HERE
#### Simulation Control
rate=0.01 # deformation rate (0.003 for tension, -0.03 for compression)
iterMax=10000 # maximum number of iterations
saveVTK=4000 # saving output files for paraview
OUT='tensionTes
intR=1.00 # allows near neighbour interaction (can be adjusted for every packing)
DENS=5265 # 2640 toy petrwmatos# could be adapted to match material density: dens_DEM=
YOUNG=6e2
FRICT=13
ALPHA=2.5
TENS=2e6
COH=1.5*TENS
#### material definition
def sphereMat(): return JCFpmMat(
D=5e-2
H = 2.5*D
pred=pack.
sps=SpherePack()
sp=pack.
sp.toSimulation
#### Particle Characteristics
R=0
Rmax=0
nbSpheres=0.
for o in O.bodies:
if isinstance(
nbSpheres+=1
R+=o.
if o.shape.
Rmax=
Rmean=R/nbSpheres
print "\n"
print ('nbSpheres=
print "\n"
#### Set up boundary conditions (see https:/
bb=utils.
negIds,
################# ENGINES DEFINED HERE
O.engines=[
ForceResetter(),
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
UniaxialStrain
GlobalStiffnes
NewtonIntegrat
PyRunner(
PyRunner(
]
################# RECORDER DEFINED HERE
def recorder():
yade.
plot.
def Stop():
sigma=
if abs(strainer.
O.pause()
# if you want to plot during simulation
plot.plots=
plot.plot()
################# PREPROCESSING
print " Number of particles: %.2f" %(len(O.bodies))
print " Porosity of sample is: %.4f" %(utils.porosity())
print "\n"
#### manage interaction detection factor during the first timestep and then set default interaction range ((cf. A DEM model for soft and hard rock, Scholtes & Donze, JMPS 2013))
O.step();
### initializes the interaction detection factor
SSgeom.
Saabb.aabbEnlar
# reinforce bonds at boundaries for tensile tests
dim=utils.
if rate>0:
layerSize=0.15
for o in O.bodies:
if isinstance(
if ( o.state.
o.shape.
for i in O.interactions:
if isinstance(
if O.bodies[
i.phys.
i.phys.
#### coordination number after the creation of contacts at first step. (Before = 0)
print " Number of Interactions per Particle: %.2f" %(utils.
print "\n"
#### coordination number verification
numSSlinks=0
numCohesivelinks=0
for i in O.interactions:
if isinstance(
numSSlinks+=1
if i.phys.isCohesive :
numCohesi
print ("nblinks=", numSSlinks, " | nbCohesivelinks=", numCohesivelinks, " || Kcohesive=", 2.0*numCohesive
print "\n"
################# SIMULATION REALLY STARTS HERE
strainer.dead=0
#O.run(iterMax)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Luc Scholtès
- Solved:
- Last query:
- Last reply: