IDA Analysis Using OpenSeesMP
Posted: Wed Nov 30, 2016 1:25 pm
Hi
I have a structure and an earthquake record.
I want to analyze my structure under two intensities of earthquake (i=1,2), the first analysis should be done on the first processor (processor id =0) and the second one should be done on the second processor (processor id = 1) simultaneously.
here is my code:
set np [getNP]
set pid [getPID]
set count 0
for {set i 1} {$i<=2} {incr i 1} {
if {[expr $num % $np]==$pid} {
*modelScript*
*gravityAnalysis*
set ScaleFactor [expr $i]
set accelx "Series -dt $dt -filePath earthquake.txt -factor [expr $ScaleFactor*$g]"
pattern UniformExcitation 1 1 -accel $accelx
*dynamicAnalysis*
}
incr count 1
}
command for start running in the
mpiexec -np 2 OpenSeesMP code.tcl
But it seems that both processors are running with the same intensity and results are equal.
what is the problem?
Thanks.
I have a structure and an earthquake record.
I want to analyze my structure under two intensities of earthquake (i=1,2), the first analysis should be done on the first processor (processor id =0) and the second one should be done on the second processor (processor id = 1) simultaneously.
here is my code:
set np [getNP]
set pid [getPID]
set count 0
for {set i 1} {$i<=2} {incr i 1} {
if {[expr $num % $np]==$pid} {
*modelScript*
*gravityAnalysis*
set ScaleFactor [expr $i]
set accelx "Series -dt $dt -filePath earthquake.txt -factor [expr $ScaleFactor*$g]"
pattern UniformExcitation 1 1 -accel $accelx
*dynamicAnalysis*
}
incr count 1
}
command for start running in the
mpiexec -np 2 OpenSeesMP code.tcl
But it seems that both processors are running with the same intensity and results are equal.
what is the problem?
Thanks.