equalDOF : Can I slave multiple joints to one master node?

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

Post Reply
fran
Posts: 39
Joined: Sat Jul 18, 2009 1:47 pm
Location: non

equalDOF : Can I slave multiple joints to one master node?

Post by fran »

Hi,

Is it appropriate to use the script below in order to equate the "X" displacements of the nodes 21, 22, 23,24 ?

equalDOF 21 22 1;
equalDOF 21 23 1;
equalDOF 21 24 1;

Meanwhile if I do not use semicolon at the end of the command lines, it gives an error. Is it necessary to use a semicolon?
silvia
Posts: 3909
Joined: Tue Jan 11, 2005 7:44 am
Location: Degenkolb Engineers
Contact:

Post by silvia »

not sure why the ; is giving problems.
but, yes, you can slave the nodes that way.
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
fran
Posts: 39
Joined: Sat Jul 18, 2009 1:47 pm
Location: non

Post by fran »

Thank you for your answer.

Regarding the semicolon, when I use the line "equalDOF 21 22 1 # Storey 1" it gives the error below:

WARNING invalid dofID: 1 equalDOF RnodeID? CnodeID? DOF1? DOF2? ...expected inte
ger but got "#"
while executing
"equalDOF 21 22 1 # Storey 1"
(file "n3l6.tcl" line 56)


Since it expects an integer, I changed the line as "equalDOF 21 22 1 1 1 1 1 1 # Storey 1" however recieved the same error.

If I use a semicolon "equalDOF 21 22 1;" all works well.
silvia
Posts: 3909
Joined: Tue Jan 11, 2005 7:44 am
Location: Degenkolb Engineers
Contact:

Post by silvia »

yes, that should give an error.
in Tcl, just like matlab, you have to separate commands either with a new line or with a ;
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
Jhno
Posts: 214
Joined: Sat May 05, 2012 2:55 pm
Location: Laval

Re: equalDOF : Can I slave multiple joints to one master nod

Post by Jhno »

Hi,
is there a way to stipulate more than one slave node?
I have this soil deposit consisting of many column of nodes (528 for the moment)... I guess I could do a for loop and have the command executing over the range of node I wish but I wonder if this options was possible within the command? Thanks!
nimatehran
Posts: 15
Joined: Thu Oct 02, 2014 5:09 am
Location: Tehran - Consulting Engineer

Re: equalDOF : Can I slave multiple joints to one master nod

Post by nimatehran »

Dear Jhno;

Yes. It's possible.

Nima
Post Reply