Skip to content

Commit e2d925d

Browse files
committed
update arch buckling
1 parent 7d7f480 commit e2d925d

File tree

12 files changed

+522
-156
lines changed

12 files changed

+522
-156
lines changed

content/en/benchmarks/frame-0009/test_EigenFrame.tcl

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
set elem_name elasticBeamColumn
2020

21-
puts "EigenFrame.tcl: Verification 2d Bathe & Wilson original Elastic Frame"
21+
verify about "EigenFrame.tcl: Verification 2d Bathe & Wilson original Elastic Frame"
2222

2323
wipe
2424

@@ -97,25 +97,14 @@ set testOK 0
9797
# print table of camparsion
9898
# Bathe & Wilson Peterson SAP2000 SeismoStruct
9999
set comparisonResults {{0.589541 5.52695 16.5878} {0.589541 5.52696 16.5879} {0.589541 5.52696 16.5879} {0.58955 5.527 16.588}}
100-
puts "\n\n Eigenvalue Comparisons:"
100+
#puts "\n\n Eigenvalue Comparisons:"
101101
set tolerances {9.99e-6 9.99e-6 9.99e-5}; # tolerances prescribed by documented precision
102102
set formatString {%15s%15s%15s%15s%15s}
103-
puts [format $formatString OpenSees Bathe&Wilson Peterson SAP2000 SeismoStruct]
104-
set formatString {%15.5f%15.4f%15.4f%15.4f%15.3f}
103+
#puts [format $formatString OpenSees Bathe&Wilson Peterson SAP2000 SeismoStruct]
105104
for {set i 0} {$i<$numEigen} {incr i 1} {
106105
set lambda [lindex $eigenValues $i]
107-
puts [format $formatString $lambda [lindex [lindex $comparisonResults 0] $i] [lindex [lindex $comparisonResults 1] $i] [lindex [lindex $comparisonResults 2] $i] [lindex [lindex $comparisonResults 3] $i]]
108106
set resultOther [lindex [lindex $comparisonResults 2] $i]
109107
set tol [lindex $tolerances $i]
110-
if {[expr abs($lambda-$resultOther)] > $tol} {
111-
set testOK -1;
112-
puts "failed-> [expr abs($lambda-$resultOther)] $tol"
113-
}
108+
verify value $lambda $resultOther $tol
114109
}
115110

116-
117-
if {$testOK == 0} {
118-
puts "PASSED Verification Test EigenFrame.tcl \n\n"
119-
} else {
120-
puts "FAILED Verification Test EigenFrame.tcl \n\n"
121-
}

0 commit comments

Comments
 (0)