Need to repeat analysis while change a parameter

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

Moderators: silvia, selimgunay, Moderators

Post Reply
alaa
Posts: 21
Joined: Mon Jul 18, 2005 3:29 am
Location: egypt , cairo

Need to repeat analysis while change a parameter

Post by alaa »

Dear all
first merry chrismas and happy new year.
:)
i have a model like example 5.1 3drigid frame . and iam looking to run the model and get the master node dispalcment response at different times. then need to change the columns stiffness ( EI) according to any statistical distribution ( may be this parameter will change more that 500 time) so need to repeat the analysis using the same code and change that parameter automatic.
plz need help how to do that ( code).
thanx
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

you can do it a number of ways, the proper way would be to create a proc out
of your current script that too EI as a parameter, a simple hack would be
to change the value in your model script to be $EI and then create another file:

case were you know the values:

test.tcl:
foreach EI {100.0 200.0 whatever values} {
wipe
source yourModel.tcl
}

case were you don't know the values and need to compute:
test.tcl:
set EI 100.0; #start value
set done "NO"
while {$done == "NO"} {
wipe
source yourModel.tcl

# code to cumpute new EI
set EI ..... your code here

# and don't forget to check to see if you are done
if converged {
set done "YES"
}
}
Post Reply