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
Need to repeat analysis while change a parameter
Moderators: silvia, selimgunay, Moderators
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"
}
}
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"
}
}