How to add fore on a GridNode.

Asked by Henry

Dear all,
     I want add force on gridnodes in X direction, through the following script. However, it seems that there is no force has been added on the gridnodes.
    for b in O.bodies:
         if isinstance(b.shape,GridNode):
                 O.forces.f(b.id)[0]=100000.0

Is the force can't be added on the grinode?

Thanks a lot!

Regard,
Henry

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Henry
Solved:
Last query:
Last reply:
Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#1
Revision history for this message
Jan Stránský (honzik) said :
#2

Hi Henry,
https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.ForceContainer.addF
cheers
Jan

2014-08-25 16:42 GMT+02:00 Henry <email address hidden>:

> Question #253577 on Yade changed:
> https://answers.launchpad.net/yade/+question/253577
>
> Description changed to:
> Dear all,
> I want add force on gridnodes in X direction, through the following
> script. However, it seems that there is no force has been added on the
> gridnodes.
> for b in O.bodies:
> if isinstance(b.shape,GridNode):
> O.forces.f(b.id)[0]=100000.0
>
> Is the force can't be added on the grinode?
>
> Thanks a lot!
>
> Regard,
> Henry
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Henry (wenjiexu) said :
#3

Thanks a lot!

Best regard,
Henry