Unblocking blockedDOFs

Asked by Najm on 2020-11-05

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:
2020-11-05
Last query:
2020-11-05
Last reply:
2020-11-05

This question was reopened

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

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