Constraint Equations

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
burnningcat
Posts: 50
Joined: Mon Jun 18, 2007 1:10 am
Location: ROMA

Constraint Equations

Post by burnningcat »

Dear Sir,

Would anyone teach me how to introduce a constraint equation in OpenSees? For example, how to make DOF3=DOF1+DOF2? I mean how to make the degree of fredom 3 equal to the sum of degree of freedom of 1 and 2?

Thank you for your help!
silvia
Posts: 3909
Joined: Tue Jan 11, 2005 7:44 am
Location: Degenkolb Engineers
Contact:

Post by silvia »

if they are the same dof you can use trusses in series.
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

you would need to write some C++ code to do that
burnningcat
Posts: 50
Joined: Mon Jun 18, 2007 1:10 am
Location: ROMA

Post by burnningcat »

Dear fmk,

Thank you for your reply, but would you please tell me if there is any example to write the constraint equaitons?(like the implementation of a new element and the material). Or would you please tell me from which file I can start?

I know this question is quite difficult to explain, but I really don't know how to start. Thank you!
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

you need to construct an MP_Constraint object .. have a look at the equalDOF command in OpenSees/SRC/modelbuilder/tcl/TclModelbuilder.cpp for an example.
Post Reply