Object orientated programming in Tcl

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

Moderators: silvia, selimgunay, Moderators

Post Reply
Thivya
Posts: 3
Joined: Sun Apr 08, 2018 10:47 pm
Location: RWTH Aachen University

Object orientated programming in Tcl

Post by Thivya »

Dear OpenSees community,

I currently started using OpenSees for research purposes and want to program an object orientated programm in tcl with all methods including in OpenSees. Basically I wish to use all given methods in OpenSees but want to create objects (and classes) aswell. Is this possible or is OpenSees only usable as a procedure? I'm not familiar with the complete structure of OpenSees so please excuse my inexperience.

Kind regards

Thivya
batuturk
Posts: 9
Joined: Sun Jun 14, 2015 10:27 am
Location: UCSD

Re: Object orientated programming in Tcl

Post by batuturk »

As of version 8.6, tcl supports OOP. But I suggest you to use C# or Java for OOP where you can easily create tcl scripts that you can run in Opensees environment.
Thivya
Posts: 3
Joined: Sun Apr 08, 2018 10:47 pm
Location: RWTH Aachen University

Re: Object orientated programming in Tcl

Post by Thivya »

batuturk wrote:
> As of version 8.6, tcl supports OOP. But I suggest you to use C# or Java for OOP
> where you can easily create tcl scripts that you can run in Opensees environment.

Hello,
thank you for your reply. I will consider your suggestion :)
Post Reply