Encapsulate tcl files into OpenSees

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

Moderators: silvia, selimgunay, Moderators

Post Reply
nupassin
Posts: 3
Joined: Fri Oct 31, 2014 3:16 am
Location: Dalian University of Technology

Encapsulate tcl files into OpenSees

Post by nupassin »

Dear All,

Can I encapsulate xxx.tcl procedure files into OpenSees source code?
Since I programmed several procedures, not only structural model but also algorithm and material constitutive relationship, using tcl language. As the procedures get more abundant, I realized I should have coded them using C++ from the beginning, which could be encapsulated into OpenSees. Please tell me if there is any possible way that I could compile a OpenSees.exe with these tcl code.

Thank you so much!
imansalehi
Posts: 11
Joined: Sat Jul 28, 2018 12:05 pm

Re: Encapsulate tcl files into OpenSees

Post by imansalehi »

try this function
Tcl_Eval(Tcl_Interp *interp, const char *script);
Post Reply