Force in a facet
Hello launchpad,
I am new to Yade. I have read the doc, and the examples.
I am trying to simulate a rock cutting and record :
1) the forces acting on the sample, and
2) the cracks
Here is my code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import division
from yade import plot,pack,timing, utils, geom
import time, sys, os, copy
#import matplotlib
#matplotlib.
#matplotlib.
# default parameters or from table
readParamsFromT
young=24e9, #kn
poisson=.2, #ks
sigmaT=3.5e6,
frictionAngle=
epsCrackOnset=
relDuctility=30,
intRadius=1.5,
dtSafety=.8,
damping=0.4,
#strainRateTen
#strainRateCom
#setSpeeds=True,
# 1=tension, 2=compression (ANDed; 3=both) den xreiazontai, prokeitai gia dokimh kophs
#doModes=2,
specimenLength=1,
sphereRadius=
# isotropic confinement (should be negative)
isoPrestress=0,
)
from yade.params.table import *
if 'description' in O.tags.keys(): O.tags[
#material properties
concreteId=
relDuctili
sps=SpherePack()
sp=pack.
sp.toSimulation
bx = geom.facetBox(
O.bodies.append(bx)
for facet in bx:
facet.
facet.
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
NewtonIntegrat
PyRunner(
]
def addPlotData():
for facet in bx:
#Fn = facet.shape.normal
Fn=
disp = facet.state.pos[2]
plot.
plot.plots=
plot.plot()
O.dt=dtSafety*
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- kalogeropoulos
- Solved:
- Last query:
- Last reply:
This question was reopened
- by Jan Stránský