How to perform parametric analysis of Opensees in MATLAB?

3 visualizzazioni (ultimi 30 giorni)
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.

Risposte (1)

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

Categorie

Scopri di più su Programming in Help Center e File Exchange

Prodotti


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by