← Back to team overview

yade-users team mailing list archive

Re: [Question #247453]: viscelastic contact

 

Question #247453 on Yade changed:
https://answers.launchpad.net/yade/+question/247453

Hien Nguyen posted a new comment:
Hi,

I run your script and receive error:
AttributeError: No such attribute: poisson

Which version of YADE are you using?
As I check for my version (Yade-1.07.0), here is the properties of ViscElMat:
-----
ViscElMat.Capillar       ViscElMat.frictionAngle  ViscElMat.mro
ViscElMat.CapillarType   ViscElMat.gamma          ViscElMat.mRtype
ViscElMat.cn             ViscElMat.id             ViscElMat.newAssocState
ViscElMat.cs             ViscElMat.kn             ViscElMat.theta
ViscElMat.density        ViscElMat.ks             ViscElMat.updateAttrs
ViscElMat.dict           ViscElMat.label          ViscElMat.Vb
ViscElMat.dispHierarchy  ViscElMat.massMultiply   
ViscElMat.dispIndex      ViscElMat.mR
-----
There is no 'poisson' there.
Though 'poisson' still stated in documentation [1], I don't know why, some developer will give you correct answer.

Other point, when you use the function getViscoelasticFromSpheresInteraction(tc,en,es) [2]
It already gave the material kt and kn. (Attention, it's marked as deprecated.)

For instance you can modify you code from:
dfltSpheresMat=O.materials.append(ViscElMat(poisson=poisson,density=density,frictionAngle=frictionAngle,**params))
to:
dfltSpheresMat=O.materials.append(ViscElMat(density=2700,frictionAngle=radians(35),**params))
That should work.

ps.
Someone please correct me if I said something incorrect as I don't use this kind of material.
Regards.
[1] https://yade-dem.org/doc/yade.wrapper.html?highlight=viscelmat#yade.wrapper.ViscElMat
[2] https://yade-dem.org/doc/yade.utils.html#yade.utils.getViscoelasticFromSpheresInteraction

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