How to plot energy variables, breaks and contacts in a JCFpm model?
Hi all,
I want to plot from energy variables (e.g. dissipated energy, kinetic energy and etc), kind of contacts (cohesive and frictional), and shear and tension breaks in specific period of time-steps in trunk-master/
As second question, is there any way to save this variables to text files directly (without plotting)?
Any help would be appreciated.
Best regards,
Yashar
here is a part of my script that it isn't work correctly for my opinions:
O.trackEnergy=True
interactionRadi
O.engines=[
ForceResett
InsertionSo
Interaction
[Law2_
),
GlobalStiff
PyRunner(
VTKRecorder
PyRunner(
PyRunner(
PyRunner(
NewtonInteg
]
#### dataCollector
plot.plots=
def dataCollector():
R=O.
plot.
plot.
####energy (it's the global energy plotting command that I've founded it!)
def addPlotData():
# each item is given a names, by which it can be the unsed in plot.plots
# the **O.energy converts dictionary-like O.energy to plot.addData arguments
plot.
plot.
####recorder()
tensCks=
def recorder():
global tensCks, shearCks
tensCks=0
shearCks=0
for o in O.bodies:
if isinstance(
yade.
plot.
#### joint strength degradation
stableIter=2000
stableVel=0.001
degrade=True
def jointStrengthDe
global degrade
if degrade and O.iter>=stableIter and abs(O.bodies[
print '!joint cohesion total degradation!', ' | iteration=', O.iter
degrade=False
for i in O.interactions:
if i.phys.isOnJoint :
if i.phys.isCohesive:
#### YADE windows
from yade import qt
v=qt.Controller()
v=qt.View()
#### time step definition (low here to create cohesive links without big changes in the assembly)
O.dt=0.
#### set cohesive links with interaction radius>=1
O.step();
O.bodies.
O.bodies.
O.bodies[
O.bodies[
=
ss2d3dg.
is2aabb.
#### RUN!!!
O.dt=-0.
O.run(maxIter)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Robert Caulk
- Solved:
- Last query:
- Last reply: