← Back to team overview

yade-users team mailing list archive

[Question #185098]: InteractionLocator.macroAroundPt module

 

New question #185098 on Yade:
https://answers.launchpad.net/yade/+question/185098

HI all,

   I'm a postgraduate student and I'm writing my master thesis  at the Warwick University.
I'm studying the sand behaviour in Simple-shear test by changing the strain rate.

In order to evaluate the stress in different points of the periodic cell I want to use the module:

yade._eudoxos.InteractionLocator.macroArountPt

So I wrote: " from yade import eudoxos"  at the beginning of the script.

and then:

.....

def saveData():

	strain=strainTensor() # strain tensor
	stress=stressTensor() # stress tensor
	# -------------------------------------------------------------------------
	# STRESS TENSOR, normal and tangential component
	sigN,sigT=utils.normalShearStressTensors(compressionPositive=True)
	sigN,sigT=sigN.diagonal(),sigT.diagonal();
	# -------------------------------------------------------------------------
	# STRESS TENSOR - NORMAL PART - strong and weak component
	stressStrong,stressWeak=utils.normalShearStressTensors(compressionPositive=True,splitNormalTensor=True)
	stressStrong,stressWeak=stressStrong.diagonal(),stressWeak.diagonal()	
	# -------------------------------------------------------------------------
	# FABRIC TENSOR, strong and weak component
	fabStrong,fabWeak=utils.fabricTensor(splitTensor=True,revertSign=True)	
	fabStrong,fabWeak=fabStrong.diagonal(),fabWeak.diagonal()
	# -------------------------------------------------------------------------
	# FABRIC TENSOR, total
	fabTot=utils.fabricTensor(splitTensor=False)[0] # get the matrix (the function returns a tuple)
	fabTot=fabTot.diagonal()
	# -------------------------------------------------------------------------
	
        pointstress=_eudoxos.InteractionLocator.macroAroundPt((0.00001,0.00001,0.00001),0.00001,[-1])
......

But I get the following:

NameError                                 Traceback (most recent call last)

/usr/lib/yade-daily/py/yade/__init__.pyc in <module>()
----> 1 
      2 
      3 
      4 
      5 

/usr/lib/yade-daily/py/yade/__init__.pyc in saveData()
    128         # -------------------------------------------------------------------------

    129 
--> 130         pointstress=_eudoxos.InteractionLocator.macroAroundPt((0.00001,0.00001,0.00001),0.00001,[-1])
    131 
    132         # ENERGY TERMS


NameError: global name '_eudoxos' is not defined

Any ideas why it doesn't work?

Thanks in advance,

Giuseppe 


-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.