'Vector3' object is not callable
Hi all,
I'm trying to modify the utils.normShear
I define a function LocalStress.
It has as input the coordinates of the 2 corner of the box where I want to evaluate the stress.
this is the function:
* Return the stress tensor decomposed in 2 contributions, from normal and shear forces.
The formulation follows the [Thornton2000]_ article
"Numerical simulations of deviatoric shear deformation of granular media", eq (3) and (4)
*/
def localStress(
for k in O.interactions:
if (k.isReal): # check if is a real interaction
if mPt(0)<upCorner(0) and mPt(0)<
for i in range(0,3):
#// fill terms under the diagonal
return (sigNorm,sigTan)
then in the script:
LocStress=
and this is what I get:
Yade [1]: -------
TypeError Traceback (most recent call last)
/usr/lib/
----> 1
2
3
4
5
/usr/lib/
197 damping=
198 # -------
--> 199 LocStress=
200
201 plot.addData(
/usr/lib/
55 mPt=k.geom.
56
---> 57 if mPt(0)<upCorner(0) and mPt(0)<
58 if mPt(1)<upCorner(1) and mPt(1)<
59 if mPt(2)<upCorner(2) and mPt(2)<
TypeError: 'Vector3' object is not callable
What's wrong?
Thanks for any suggestions,
Giuseppe
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Rinaldi Giuseppe
- Solved:
- Last query:
- Last reply: