Unblocking blockedDOFs

Asked by Najm

Hi,

I have the following script:

O.bodies[5].state.blockedDOFs = "xyzXYZ"
O.run(50,True)
O.bodies[6].state.blockedDOFs = "xyzXYZ"
#RELEASE NODE# 5 Make it free
O.run(50,True)

How do I release (unblock) node#5?

Thank you so much for your help!
Najm

Question information

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

Hello,

> I have the following script:

please try to use a MWE [1], W = working ("self-contained", we copy-paste it, run it and get your problem)

> How do I release (unblock) node#5?

what is node#5? O.bodies[5]?

to release a body, simply set its blocked DOFs to empty string
###
b = O.bodies[5] # or whatever other Body
b.state.blockedDOFs = "" # or any other combination
###

cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask

Revision history for this message
Najm (mrhappy) said :
#2

Thank you so much, Jan, for your prompt reply. Yes, O.bodies[5].state.blockedDOFs = "" does the trick.

Thank you for your time!
Najm