How to extract force-displacement data and how to generate stress output in paraview
Hi,
I am working on uniaxial compression of a concrete column.
I have two basic questions about the code I am using.
1. How do I extract the force and displacement data in a text format?
2. How can I see the stresses in Paraview?
My Running script is,
from yade import pack, plot
################# SIMULATIONS DEFINED HERE
#### packing (previously constructed)
OUT='compressio
#### Simulation Control
rate=-0.05 #deformation rate
iterMax=300000 # maximum number of iterations
saveVTK=4000 # saving output files for paraview
#### Material microproperties
intR=1.1 # allows near neighbour interaction (can be adjusted for every packing)
DENS=2400
YOUNG=17e9
FRICT=34.25
ALPHA=0.15
TENS=3.163e6
COH=2.99e6
#### material definition
def sphereMat(): return JCFpmMat(
#### create the specimen
pred=pack.
O.bodies.
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 ('nbSpheres=
#### boundary condition (see utils.uniaxialT
bb=utils.
negIds,
################# ENGINES DEFINED HERE
O.engines=[
ForceResetter(),
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
UniaxialStrain
GlobalStiffnes
NewtonIntegrat
PyRunner(
]
################# RECORDER DEFINED HERE
def recorder():
yade.
plot.
################# PREPROCESSING
#### manage interaction detection factor during the first timestep and then set default interaction range
O.step();
### initializes the interaction detection factor
SSgeom.
Saabb.aabbEnlar
#### 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
################# SIMULATION REALLY STARTS HERE
strainer.dead=0
O.run(iterMax)
I would really appreciate any help I can get.
Thanks,
Anay
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Anay Joshi for more information if necessary.