Can not add ViscElMat in O.material

Asked by ZHU

I met a problem today earlier.

Running script ./test.py
Traceback (most recent call last):
  File "./yade-1.0", line 175, in runScript
    execfile(script,globals())
  File "./test.py", line 34, in <module>
    O.materials.append(ViscElMat(kn=1e7,ks=1e7,cn=39.5,cs=39.5,density=2530.0,frictionAngle=atan(0.4)),label='sphereMat')
ArgumentError: Python argument types in
    MaterialContainer.append(MaterialContainer, ViscElMat)
did not match C++ signature:
    append(pyMaterialContainer {lvalue}, std::vector<boost::shared_ptr<Material>, std::allocator<boost::shared_ptr<Material> > >)
    append(pyMaterialContainer {lvalue}, boost::shared_ptr<Material>)

What is the problem? Does someone know it?

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#1

As said in another mail, check your brackets. This syntax error will be
the same whatever the material.

Can you help with this problem?

Provide an answer of your own, or ask ZHU for more information if necessary.

To post a message you must log in.