Variable

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

Moderators: silvia, selimgunay, Moderators

Post Reply
Jhno
Posts: 214
Joined: Sat May 05, 2012 2:55 pm
Location: Laval

Variable

Post by Jhno » Thu Sep 07, 2017 5:02 am

Is there a way to acces the variable (the values of) used to construct the model used in OS? We have the source code, and there are variable used inside of it to compute the data we use. How can we see the value of these (is this possible?).

selimgunay
Posts: 913
Joined: Mon Sep 09, 2013 8:50 pm
Location: University of California, Berkeley

Re: Variable

Post by selimgunay » Thu Sep 07, 2017 3:03 pm

Which variable do you mean? Can you give an example? You can see the values of any variable that you use within the tcl file with the puts command.

Jhno
Posts: 214
Joined: Sat May 05, 2012 2:55 pm
Location: Laval

Re: Variable

Post by Jhno » Fri Sep 08, 2017 4:27 am

https://searchcode.com/codesearch/view/38711595/

This pages show the code for a material. There are variable in that code. These variable are used during the analysis. Can we see their value?

selimgunay
Posts: 913
Joined: Mon Sep 09, 2013 8:50 pm
Location: University of California, Berkeley

Re: Variable

Post by selimgunay » Sun Sep 10, 2017 12:08 am

You can see them if you change the code and add commends to write the variables in a file or print them on screen. You would need to compile OpenSees with your changes.

Post Reply