Error When apply constant force

Asked by Felipe on 2017-03-20

Hello guys,

I am applying a constant force on the surface using " O.forces.setPermF(upBox.id,(0,-1000,0)) " and i found the erro below.

 File "/usr/bin/yade", line 182, in runScript
    execfile(script,globals())
  File "teste3luis.py", line 67, in <module>
    O.forces.setPermF(540,(0,-1000,0)) #aqui é a força que deseja aplicar
AttributeError: 'ForceContainer' object has no attribute 'setPermF'

In past, i have already asked how I could apply constant force (https://answers.launchpad.net/yade/+question/406621), and that time had been done.

So, anyone know what is it meaning of this error?

Thanks for advance.

cheers,

Felipe

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
2017-03-21
Last query:
2017-03-21
Last reply:
2017-03-21
Best Jan Stránský (honzik) said : #1

Hi Felipe,
what version of Yade do you use?
probably you use older version than setPermF was implemented. In that case, you can use addF(..., permanent=True)
cheers
Jan

Felipe (felipetthadeu) said : #2

Hello Jan,

I am using the Ubuntu 16.04 Lts and Yade 1.20.0

When I changed to addF, it's work it.

Thanks Jan

cheeres,

felipe

Felipe (felipetthadeu) said : #3

Thanks Jan Stránský, that solved my question.