Current Status: OpenSees on Ruby/Python

A forum dedicated to feature requests and the future direction of OpenSees, i.e. what would you like, what do you need, what should we explore

Moderators: silvia, selimgunay, Moderators

Post Reply
oleviuqserh
Posts: 65
Joined: Mon Oct 04, 2010 6:24 pm
Location: Colombia

Current Status: OpenSees on Ruby/Python

Post by oleviuqserh »

Dear Frank McKenna and OpenSees Developers,

First of all, thank you very much for providing us with this amazing interpreter for studying the dynamic response of structures under the action of earthquakes and other dynamic loads!

The following is just a remainder :)

This request has been asked several times on the OpenSees Board that I would like to know its current status. Compiling OpenSees on a true object-oriented interpreter, such as Ruby or Python, will enable us to make more powerful and reusable scripts than ever before. For example, a great feature would be the possibility of gathering any information/data stored in the Domain Object, with the purpose of making certain operations with them, as shown in the following example (the syntax was taken from Ruby):

% m=Model.new("basic", 2, 3)
% m.type
=> "basic"

% m.ndm
=> 2

% m.ndf
=> 3

% if m.type == "basic"
% print "The model type is basic."
% end
=> "The model type is basic."

% node1=Node.new(3.00, 5.00)
% node1.x
=> 3.00

% node1.y
=> 5.00

% mat1=UniaxialMaterial.new("Concrete01", 1000, 21000., 0.0018, 15000., 0.0036)
% mat1.type
=> "UniaxialMaterial::Concrete01"

% mat1.tag
=> 1000

% mat1.fpc
=> 21000.

% mat1.epsc0
=> 0.0018

% mat1.fpcu
=> 15000.

% mat1.epsU
=> 0.0036

% 1.35*mat1.fpc
=> 28350.

and so on...

Thank you!

P.S. Perhaps these two links may be very helpful for you, if Ruby is intended to be used:
http://fixnum.org/blog/2007/ruby_c/
http://www.ruby-doc.org/docs/Programmin ... _ruby.html
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: Current Status: OpenSees on Ruby/Python

Post by fmk »

there is no funding to do this. i am slowly adding the code code needed into the existing classes that is needed. when that is done
for the classes used most often, i can then go about writing the code for the different interpreters.

the timeline is unknown.
ronaldnie
Posts: 1
Joined: Fri Jun 14, 2013 12:39 pm
Location: Brookhaven National Lab

Re: Current Status: OpenSees on Ruby/Python

Post by ronaldnie »

Frank,

I actually asked for the possibility of a Python port in 2003 and then have not had a chance to work with OpenSees until now. I am pretty good at programming in Python and Fortran, and to some extent C++. I wonder what the progress you have made now and want to know whether I can step in to help in this regard. I don't have a big budget for me to do this, so, could you explain how big the total effort would be?

More specifically, what tools are you using? for example, SWIG, Cython, Ctypes, or some special ways like that wxPython is for wxWindows.

I hope you could share your experience in this effort so that I can have some idea whether I can do it. Your prompt response is appreciated.

Jinsuo
alysa
Posts: 3
Joined: Sun Feb 10, 2013 9:55 am
Contact:

Re: Current Status: OpenSees on Ruby/Python

Post by alysa »

The thread is so informative and having a latest updates.I like like to visit this again for the next info .
You might also like: short hairstyles for fine hair .
Post Reply