Parameter Command

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

Moderators: silvia, selimgunay, Moderators

Post Reply
drowning6
Posts: 20
Joined: Tue Nov 15, 2011 6:03 pm
Location: bucea

Parameter Command

Post by drowning6 »

Dear all,

I wanna use Parameter Command and updateparamter Command.

How can I find the specific name of the paramter?
For example, parameter 1 element 4 section 3 material 1 E
How can I find other properties beside E in this material?

For instance, how can I find the name of sce in the following material
if I want to use Parameter Command?
uniaxialMaterial AxialSp $matTag $sce $fty $fcy <$bte $bty $bcy $fcr>

Thanks.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: Parameter Command

Post by fmk »

not all material and element properties can be set with the parameter command .. if not in the documentation (and for most cases it won't given the people who have added the command) your only action is to look at the source code

http://opensees.berkeley.edu/WebSVN/lis ... k%2FSRC%2F

and see if the element or material has a setParameter() method in the class. The AxialSp class does not have this method and as a consequence you could not use the command.
kavir
Posts: 65
Joined: Thu Dec 19, 2013 6:47 am
Location: ghayen - Iran

Re: Parameter Command

Post by kavir »

Hi
I Used Following Format for Creating node in My Model:

#NBay=Number of Bay

set $Pier1 0.0
set $Pier2 $WBay

for { set x 1} { $x<=[expr $NBay+1]} {incr x} {
set z Pier[format "%i" $x]
node [format "%i1" $x] $$z $Floor1;
}

But After Running, Program Don't Recognize $Pier[format "%i" $x] As a Variable.
Please Help me for Fix this
Toutant
Posts: 32
Joined: Mon Sep 09, 2013 10:33 am
Location: École Polytechnique de Montréal

Re: Parameter Command

Post by Toutant »

Here are 2 alternatives that could possibly work:

A) Define Pier(1) and Pier(2) and then use set z Pier($x) in the loop
or

B) Keep Pier1 and Pier2 variables and use set z [join [concat Pier $x] ""] inside the loop

Also, I think you should create a new thread next time.

Hope it works.
Post Reply