utils.getStressAndTangent()
from your website, i can see there is a command called utlis.getStress
AttributeError: 'module' object has no attribute 'getStressAndTa
Yade on my computer is 1.07.0, i am wondering it is the version problem.
And also, if it is the version problem, how can i update the Yade version, for i have input " sudo apt-get install yade" in terminal and it says the version is the newest.
You can use such codes to test what i met:
-------
#!/usr/bin/python # This is server.py file
import string
from yade import plot,qt
from yade.pack import *
from yade import pack, plot
import socket # Import socket module
import numpy # initial the math of matrix compute (needed in ns)
# initial the global variables
arrcc =[0]*3 # last step strain(commit)
arrtt =[0]*3 # last step strain(trail)
scc=[0]*3 # last step stress
orst=1 # initialize the orginal save document(trial)
check=[0]*1 # I need to calculate the first step when ag=0
check[0]=0
theTangent=(0)
# load the identical package
O.load(
#O.periodic=True ### note!!! add
O.dt=1e-8
# see the example of peri3dcontroller, 1.5 is used to speed up the computation
EnlargeFactor=1.5
EnlargeFactor=1.0
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
NewtonIntegrat
#VTKRecorder(
]
O.cell.
O.step()
bo1s.aabbEnlarg
if orst==1:
print "orst1"
for b in O.bodies:
b.material.young = 1.0001*17e10
orst=2
ag = [0]*3 # current - last ie. the changed strain
ag[0] = 0
ag[1]= 0
ag[2] =0
ns=100
dstrain = utils.Matrix3(
O.cell.
O.run(ns,True)
stressValue=
stressxx=
stressyy=
stressxy=
print "stress here from strain[0,0,0] step 1"
print stressxx
print stressyy
print stressxy
theTangent=
print theTangent
O.saveTmp('first')
-------
Thanks a lot!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jan Stránský
- Solved:
- Last query:
- Last reply: