Search found 103 matches

by kengawk
Sun Jan 08, 2017 4:39 pm
Forum: OpenSees.exe Users
Topic: How can I read the completed results in OpenSees?
Replies: 2
Views: 3153

Re: How can I read the completed results in OpenSees?

Thanks a lot, Frank!

It's a great help that may solve the problem ,which have troubled me for a quite long time!!
Yesterday I review the recorder commands and I saw that option but neglected it ...
This month I began to close the file and unset the variable immediately after the I/O operation .
Sometime I still met it for undefined reasons.

Your answer is of great help for me! I am sure!
by kengawk
Sun Jan 08, 2017 4:33 pm
Forum: OpenSees.exe Users
Topic: why I cannot delete the file second time
Replies: 2
Views: 3130

Re: why I cannot delete the file second time

thank you, Frank!

Xp and win7, Both of them is 64 bit system.
Sometimes, the error that cannot delete the temp_recovery file would stop the batch process.

Cheers
Ken
by kengawk
Sun Jan 08, 2017 4:25 pm
Forum: Parallel Processing
Topic: MapOfTaggedObjects::addComponent
Replies: 3
Views: 6483

Re: MapOfTaggedObjects::addComponent

Thank you for you help, Frank!

Yeah,I am running multiple parallel process for IDA.
Now it can run smoothly after rebulit the model before the analysis.
I think I found the answer from the forum

Maybe I should know this matter, I think I should more about the details.
Maybe the right way is coding for the great OpenSees.

Thank you for your hard working for OpenSees! I learned a lot here.
I really appreciate it.

Ken
by kengawk
Thu Dec 29, 2016 3:22 pm
Forum: Parallel Processing
Topic: MapOfTaggedObjects::addComponent
Replies: 3
Views: 6483

Re: MapOfTaggedObjects::addComponent

Maybe the model and the timeseries have to be rebuilt before a THA.
by kengawk
Thu Dec 29, 2016 3:25 am
Forum: Parallel Processing
Topic: MapOfTaggedObjects::addComponent
Replies: 3
Views: 6483

MapOfTaggedObjects::addComponent

Dears,

The following is the error message:

MapOfTaggedObjects::addComponent - not adding as one with similar tag exists, tag: 1

I cannot locate the position of problem with the codes for OpenSeesMP.
Acutally, I did add any components to smallMP example except eigen analysis before static analysis.
The code gives that error message after finishing computing a records and recording its results.
by kengawk
Thu Dec 29, 2016 2:26 am
Forum: OpenSees.exe Users
Topic: How can I read the completed results in OpenSees?
Replies: 2
Views: 3153

How can I read the completed results in OpenSees?

Dears,

A problem I found is that the results from openSees always come up after I exit OpenSees.

For an example, I write an fundamental period of a structre with puts command or recorder.

How can I read the completed results in OpenSees right after the operations above?

Thanks!!
by kengawk
Wed Dec 28, 2016 8:24 pm
Forum: OpenSees.exe Users
Topic: why could the base period before THA be bigger
Replies: 0
Views: 2376

why could the base period before THA be bigger

Dear:

I recorded the periods before and after time history analysis respectively during IDA.
Who could give me the reason that the initial period is higher than that after THA?
Thanks!

before analysis
#Dynamic Analysis Parameters:
# gamma value for newmark integration: 0.5
# beta value for newmark integration : 0.25
# damping ratio (0.02-0.05-typical): 0.02
# period (sec.) : 1.2267221416400451 :!: :!:
# stiffness-prop. RAYLEIGH damping parameter; D = alphaM*M : 0
# stiffness proportional damping; +beatK*KCurrent : 0
# mass-prop. RAYLEIGH damping parameter; +betaKcomm*KlastCommitt : 0.007809555705691575
# initial-stiffness proportional damping +beatKinit*Kini : 0


after the analsis
1.2110905780430474
1.2110905780430474
1.2110905780430474
1.2110905780430474
1.2110905780430474
1.3589346320652633
1.2137205643773135
1.2110905780430474
1.2110905780430474
1.2396251479253928
1.2110905780430474
1.2472346769718976
1.2959294432927149
1.2562258404016369
1.6442130174628098
1.890571367411808
1.9458452729578186
1.2705502953148529
1.836261872022902
1.9364574628645292
1.304938344876924
1.9667545858952133
1.8188620889208282
1.9370794623925365
1.9801088744338338
2.0269076867196096
1.9782893664261498
1.9619335723189049
1.941594904314906
1.8558450358638097
1.670138136820399
1.4564661011530338
by kengawk
Wed Dec 28, 2016 3:04 pm
Forum: OpenSees.exe Users
Topic: why I cannot delete the file second time
Replies: 2
Views: 3130

why I cannot delete the file second time

Dear,

At first run, the following code can delete the temp_grp.txt.
When I run it second time, it shows:error deleting "./temp_grp.txt": permission denied. :?: :?:

the following is codes.


wipe
set val1 [clock seconds];
set file_ID "Param_test1.txt"
set comments "#"
set file [open [format "%s" $file_ID] "r"]

set count_grp 0
while {-1 != [gets $file line] } {
if { [string first "#" $line] != 0 } {


set count_grp [expr $count_grp + 1]
# wrong # args: should be "set varName ?newValue?" <---set count_grp 1 [expr $count_grp + 1]


if [catch {open ./temp_grp.txt r} field] {

#puts "field: $field"
puts stderr "no file finded,create!!"

set field [open ./temp_grp.txt w]

puts $field $count_grp
close $field
unset field
puts "record group count1: $count_grp"

} else {


set grp_seq [read $field]
if {$count_grp < $grp_seq} {


puts "count_grp < grp_seq"
close $field
unset field
continue

} else {

set field [open ./temp_grp.txt w]
puts $field $count_grp
close $field
unset field
}
# end of that if $count1 < $grp_seq

}
#########
}
}

#-----------------------------------------
#########
puts "del temp_grp.txt!!"
file delete "./temp_grp.txt"
#########
#-----------------------------------------

set val2 [clock seconds]
set elapsedTime [expr $val2-$val1]
set days [expr int($elapsedTime/86400)]
set hours [expr int(($elapsedTime-$days*86400)/3600)]
set minutes [expr int(($elapsedTime- $days*86400-$hours*3600)/60)]
set seconds [expr int($elapsedTime- $days*86400-$hours*3600-$minutes*60)]
puts "COMPLETED :"
puts "Total Time Required --> $days days $hours hours $minutes minutes $seconds seconds"
wipe
[\code]
by kengawk
Thu Dec 22, 2016 2:19 pm
Forum: OpenSees.exe Users
Topic: why I cannot delete the temp file in openSees?
Replies: 2
Views: 3254

Re: why I cannot delete the temp file in openSees?

forgot to close the file before continue!!!
by kengawk
Thu Dec 22, 2016 7:38 am
Forum: OpenSees.exe Users
Topic: why I cannot delete the temp file in openSees?
Replies: 2
Views: 3254

Re: why I cannot delete the temp file in openSees?

# ModelD.tcl: generic input shell for use with dynamic models
# Units: kip, in
# Kevin Mackie, 2001/08/01
# mackie@ce.berkeley.edu
# Parameters.tcl Parameters1.tcl
# Takes ground motion and structural input parameters from higher
# level procedure and outputs data to files for computation of UCSD
# output quantities. Performs dynamic excitation only

proc ModelD {param_group directory sf skew L LoH fy fc rho_s DcDs ksoil wt rhos_trans deck abut ida} {

wipe
set directory1 "motion/nga_info/"
set g 386.4
set IDAMIN 0.50 ; #ida_level line46
set IDAMAX 3.70 ; #line 66
set ida_incr 0.16 ;# line 64

# -----------------------------------------------------
# set up earthquake files and parameters


set indxfile [open [format "%sIndex.tcl" $directory] "r"]

set total_eqks 0
while {-1 != [gets $indxfile line] } {

if {[string length $line]<4} {

puts "no string,break in ModelD.tcl!!!"
break
}
set total_eqks [expr $total_eqks+1]

scan $line "%s %s %s" eqk_fp($total_eqks) eqk_fn($total_eqks) eqk_fv($total_eqks)
#puts "eqk_fp($total_eqks):$eqk_fp($total_eqks)\n"
#puts "eqk_fn($total_eqks):$eqk_fn($total_eqks)\n"
#puts "eqk_fv($total_eqks):$eqk_fv($total_eqks)\n"
}
close $indxfile
# ok
#

# -----------------------------------------------------
# begin loop of analysis for each ground motion triplet above
for {set loop_var 1} {$loop_var<=$total_eqks} {incr loop_var} {

###### "
if [catch {open ./temp_rec.txt r} field] {
#puts "field: $field"

set field [open ./temp_rec.txt w]
#set count1_0 0
puts $field $loop_var
close $field
} else {

set analysis_seq [read $field]
if {$loop_var < $analysis_seq} {

continue
} else {

}

close $field
}
#########



if { $ida == 1 } {

# perform ida before moving onto next record
while { $ida_stop==0 } {


if [catch {open ./temp_scl.txt r} field] {
#puts "field: $field"

set field [open ./temp_scl.txt w]
#set count1_0 0
puts $field $ida_cnt

close $field

} else {

set scale_seq [read $field]
if {$ida_cnt < $scale_seq} {

set ida_level [expr $ida_level+$ida_incr] ;#
set ida_cnt [expr $ida_cnt + 1]

continue
} else {


}

close $field
}
#end of if temp_scl.txt exists or not
#########
#----------------------------------------------





if { $ida_level > $IDAMAX } {
set ida_stop 1 ;
##
} else {

#
#-----------------------------------------------------
#########
#-----------------------------------------------------

set fileId [open ./temp_scl.txt w+]
if {$fileId ==0} {

#puts $fileId [temp_rec $count1 ]
#close $fileId
} else {

#set count1_0 [expr $loop_var + 1 ]



puts $fileId [expr $ida_cnt + 1 ]
# invalid command name "temp_rec"
close $fileId

}
#########
#----------------------------------------------

###########################
set ida_level [expr $ida_level+$ida_incr] ;
set ida_cnt [expr $ida_cnt + 1]



}
# end of if ida_level> IDAMAX
}


#-----------------------------------------
#########

file delete "./temp_scl.txt"
#########
#-----------------------------------------

} else {

}
# end of if IDA or not
#-----------------------------------------
#########
set fileId [open ./temp_rec.txt w+]
if {$fileId ==0} {

#puts $fileId [temp_rec $count1 ]
#close $fileId
} else {


#set count1_0 [expr $loop_var + 1 ]



puts $fileId [expr $loop_var + 1 ]
# invalid command name "temp_rec"
close $fileId
}
#########
} ;


#-----------------------------------------
######### PROBLEM HERE

file delete "./temp_rec.txt"
#########
#-----------------------------------------

puts ""

return $Tret
}
by kengawk
Thu Dec 22, 2016 7:18 am
Forum: OpenSees.exe Users
Topic: why I cannot delete the temp file in openSees?
Replies: 2
Views: 3254

why I cannot delete the temp file in openSees?

The program checks the temp file in every loop, and fails to delete the temp file when the loop is finished.

I checks the reture variable of the file operation to make sure the program closes the file.

How can I delete the file "./temp_rec.txt" near the end of code ?



Thanks
by kengawk
Wed Sep 14, 2016 10:39 pm
Forum: Parallel Processing
Topic: Why the codes cannot find the index file in AmazonEC2
Replies: 2
Views: 4578

Re: Why the codes cannot find the index file in AmazonEC2

Thanks for your help, Frank!

Yes, the file does exist. The following is that I checked the file. It seems that it's not a problem of file mode.

root@master:~/wjm# ls -l motionindex.tcl
ls -l motionindex.tcl
-rw-r--r-- 1 root root 1158 Sep 13 14:47 motionindex.tcl

root@master:~/wjm# vim motionindex.tcl
vim motionindex.tcl
[?1049h[?1h=[1;24r[34l[34h[?25h[23m[24m[0m[H[J[?25l[24;1H"motionin
dex.tcl" [noeol][dos] 40L, 1158C[1;1H[31m0001[0m /iLMSR/AGW000 [31m8000
0002[0m /iLMSR/B-BRA225 [31m2212
0003[0m /iLMSR/B-ICC000 [31m8000
0004[0m /iLMSR/B-PLS135 [31m2223
0005[0m /iLMSR/B-WSM090 [31m8000
0006[0m /iLMSR/CAP090 [31m7991
0007[0m /iLMSR/CEN245 [31m2999
0008[0m /iLMSR/CNP196 [31m2499
0009[0m /iLMSR/FAR000 [31m2999
0010[0m /iLMSR/FLE234 [31m2999
.
.
.
Now I found that it's not sensitive for the uppercase when sourcing the files.
Thanks again!
@fmk
by kengawk
Tue Sep 13, 2016 7:46 am
Forum: Parallel Processing
Topic: Why the codes cannot find the index file in AmazonEC2
Replies: 2
Views: 4578

Why the codes cannot find the index file in AmazonEC2

Why the codes cannot find the index file in AmazonEC2,that can run in windows?
The following is the error messages.
couldn't open " /root/wjm/motionIndex.tcl": no such file or directory
while executing
"open [format "%sIndex.tcl" $directory] "r""
(procedure "ModelD" line 10)
invoked from within
"ModelD $param_group $directory $Dcol $LDratio $cover $fc $fy $fyh $rhos_log $rh
os_trans $NbCol $trans_bar $Pdefine $LR $gamaw $ida"
("while" body line 5)
invoked from within
"while {-1 != [gets $file line] } {
if { [string first "#" $line] != 0 } {
scan $line "%u %s %f %f %f %f %f %f %f %f %i %f %f %f %f %i" param_..."
(file "Parameters.tcl" line 17)
Process Terminating 0

Thanks!
by kengawk
Sat Aug 27, 2016 3:09 pm
Forum: Parallel Processing
Topic: Starcluster---how to create new rsa file?
Replies: 1
Views: 3754

Re: Starcluster---how to create new rsa file?

Now I can create a new rsa file.
I don't know why...
kengawk wrote:
> It seems that I cannot create any rsa file in .ssh directory once I create a rsa
> file? even I delete the file.
>
>
> C:\Users\Administrator.USER-20160705YO>starcluster createkey mykey -o
> C:/Users/Administrator.USER-20160705YO/.ssh/mykey.rsa
> StarCluster - (http://star.mit.edu/cluster) (v. 0.95.6)
> Software Tools for Academics and Researchers (STAR)
> Please submit bug reports to starcluster@mit.edu
>
> !!! ERROR - keypair mykey already exists
> C:\Users\Administrator.USER-20160705YO>starcluster createkey myfirstkey -o C:/Us
> ers/Administrator.USER-20160705YO/.ssh/myfirstkey.rsa
> StarCluster - (http://star.mit.edu/cluster) (v. 0.95.6)
> Software Tools for Academics and Researchers (STAR)
> Please submit bug reports to starcluster@mit.edu
>
> !!! ERROR - keypair myfirstkey already exists
by kengawk
Sat Aug 27, 2016 3:04 pm
Forum: Parallel Processing
Topic: starcluster——cannot find files after uploading them
Replies: 1
Views: 3670

Re: starcluster——cannot find files after uploading them

Now I went though the whole process for that example.it is that I failed to find that the smallMP directory is copied to the root.
Path!!

Now I can go through the example.

Thanks for your help,Cagatay!

@cgtydmrc
kengawk wrote:
> Dear Frank,
>
> I met a problem when I was trying to conduct starcluster example in win 7 system.
> The command 'mpiexec ­n 2 OpenSeesMP Example.tcl'cannot find files that I uploaded.
>
> The following is the command and screenshot that copy files to the starcluster.
>
> starcluster put smallcluster C:\Users\Administrator.USER-20160705YO\smallMP /root
> C:\Users\Administrator.USER-20160705YO>starcluster put smallcluster C:\Users\Adm
> inistrator.USER-20160705YO\smallMP /root
> StarCluster - (http://star.mit.edu/cluster) (v. 0.95.6)
> Software Tools for Academics and Researchers (STAR)
> Please submit bug reports to starcluster@mit.edu
>
> analysis.tcl 100% ||||||||||||||||||||||||||||||||||| Time: 00:00:00 110.80 K/s
> Example.tcl 100% |||||||||||||||||||||||||||||||||||| Time: 00:00:00 21.78 K/s
> Example1.tcl 100% ||||||||||||||||||||||||||||||||||| Time: 00:00:00 44.78 K/s
> model.tcl 100% |||||||||||||||||||||||||||||||||||||| Time: 00:00:00 49.65 K/s
> ...
>
> But I could not find any files when I login to the masternode, and the command cannot
> find the file 'Example.tcl' as the below shows.
>
> root@master:~# mpiexec ­n 2 OpenSeesMP Example.tcl
> mpiexec -n 2 OpenSeesMP Example.tcl
>
>
> OpenSees -- Open System For Earthquake Engineering Simulation
> Pacific Earthquake Engineering Research Center
> Version 2.5.0 (rev 6248) 32-Bit
>
> (c) Copyright 1999-2016 The Regents of the University of California
> All Rights Reserved
> (Copyright and Disclaimer @ http://www.berkeley.edu/OpenSees/copyright.html)
>
>
> couldn't read file "Example.tcl": no such file or directorycouldn't read
> file "E
> xample.tcl": no such file or directory
> Process Terminating 0
>
> Process Terminating 1
>
>
> Could you give me some tips here? I'll really appreciate it!
>
> Best wishes,
> Kai