How to perform parametric analysis of Opensees in MATLAB?

2 ビュー (過去 30 日間)
Harsh Mistry
Harsh Mistry 2018 年 11 月 28 日
回答済み: Wasim Ramadan 2020 年 5 月 20 日
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 Center および File ExchangePower and Energy Systems についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by