|
18 | 18 |
|
19 | 19 | set elem_name elasticBeamColumn
|
20 | 20 |
|
21 |
| -puts "EigenFrame.tcl: Verification 2d Bathe & Wilson original Elastic Frame" |
| 21 | +verify about "EigenFrame.tcl: Verification 2d Bathe & Wilson original Elastic Frame" |
22 | 22 |
|
23 | 23 | wipe
|
24 | 24 |
|
@@ -97,25 +97,14 @@ set testOK 0
|
97 | 97 | # print table of camparsion
|
98 | 98 | # Bathe & Wilson Peterson SAP2000 SeismoStruct
|
99 | 99 | 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:" |
101 | 101 | set tolerances {9.99e-6 9.99e-6 9.99e-5}; # tolerances prescribed by documented precision
|
102 | 102 | 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] |
105 | 104 | for {set i 0} {$i<$numEigen} {incr i 1} {
|
106 | 105 | 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]] |
108 | 106 | set resultOther [lindex [lindex $comparisonResults 2] $i]
|
109 | 107 | 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 |
114 | 109 | }
|
115 | 110 |
|
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