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 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