How to perform parametric analysis of Opensees in MATLAB?

5 次查看(过去 30 天)
model Basic -ndm 1 -ndf 1
node
1 0.0
node
2 0.0
fix
1 1
set
Fy 60.0
set
E 30000.0
set
b -0.1
uniaxialMaterial
Steel01 1 $Fy $E $b
element
zeroLength 1 1 2 -mat 1 -dir 1
set P 100.0
timeSeries
Linear 1
pattern
Plain 1 1 {
load 2 $P
}
constraints Plain
numberer
RCM
test
NormDispIncr 1.0e-6 6 0
algorithm
Newton
system
BandGen
integrator
DisplacementControl 2 1 0.001
analysis
Static
for
{set i 0} {$i<10} {incr i 1} {
analyze
1
set
factor [getTime]
puts
"[expr $factor*$P] [lindex [nodeDisp 2] 0]"
}
print node 2
-----------------------------------------------------------------------------------------------------------------------------------------This is my code for opensees, i would like to perform a parametric analysis for it so how can i vary my load "p" between 0-120 instead of only analysing it for P = 100.

回答(1 个)

Wasim Ramadan
Wasim Ramadan 2020-5-20
Use for loop (In OpenSees code)
for {set p 1} {$p <= 120} {incr p 10}
{
Analysis part
.
.
.
}

类别

Help CenterFile Exchange 中查找有关 Numerical Integration and Differential Equations 的更多信息

产品


版本

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by