Solver verification · Against OpenSees
A portal frame carries gravity load, is pushed sideways and, in a second script, is shaken at its base. The gravity state, the push, the period and the earthquake history are compared.
The reference values are computed by running OpenSees’ own published example scripts. OpenSees Example 1b, Elastic Portal Frame, OpenSees Wiki (S. Mazzoni and F. McKenna, 2006), scripts Ex1b.Portal2D.Push.tcl and Ex1b.Portal2D.EQ.tcl, run unchanged on OpenSees 3.8.0.
Table 1 · Model specification
| Geometry | Two columns 432 in, one beam 504 in; both bases fixed |
|---|---|
| Sections | E = 4 227 ksi. Columns I = 1 080 000 in⁴, A = 3.6×109 in²; beam I = 4 423 680, A = 5.76×109. The script makes each area 106 times its real value, to suppress axial deformation. Bending and axial deformation only, in both programs |
| Load | Gravity: 7.94 kip/in on the beam, in 10 load steps. Push: 2 000 kip at each top joint, displacement-controlled at joint 3 to 10 in in 100 steps |
| Mass and damping | 5.18 kip·s²/in at each top joint, horizontal only in OpenSees. OpenAnstruk derives mass from weight, so it receives a joint weight m·g, which carries the mass vertically as well (Table 3, second row). 2 % at mode 1 in both: stiffness-proportional in OpenSees; in OpenAnstruk, Rayleigh fitted at 0.5847 s and 4.60e-05 s |
| Record | The example’s own record, 0.01 s samples, factor 1; Newmark average acceleration at 0.02 s for 1000 steps in both programs |
| Plane frame | OpenSees solves it in 2D. OpenAnstruk solves it in 3D, with UY, RX and RZ restrained at every joint; the largest out-of-plane reaction is 0 kN |
Fig. 1 · The frame in elevation, with its two base supports. Element numbers are circled.
| Quantity | OpenSees | OpenAnstruk | Difference |
|---|---|---|---|
| Gravity: joint 3 vertical displacement, in | -0.0000000568 | -0.0000000568 | 1.2e-14 % |
| Gravity: base 1 horizontal reaction, kip | 211.7965 | 211.7965 | -1.3e-13 % |
| Gravity: base 1 vertical reaction, kip | 2000.8800 | 2000.8800 | 0 % |
| Gravity: base 1 moment, kip·in | -30498.69 | -30498.69 | -1.7e-13 % |
| Push to 10 in: load factor λ | 2.99083578 | 2.99083578 | 1.8e-08 % |
| Push to 10 in: base shear, kip | 11963.343 | 11963.343 | -1.8e-13 % |
| Push to 10 in: base 1 moment, kip·in | 1350596.8 | 1350596.8 | -1.9e-13 % |
| Push to 10 in: joint 4 drift, in | 10.00000000 | 10.00000000 | -2.0e-13 % |
| Quantity | OpenSees | OpenAnstruk | Difference |
|---|---|---|---|
| Period, mode 1, s | 0.58470050 | 0.58470050 | 5.6e-08 % |
| Period, mode 1: OpenSees given the vertical mass too, s | 0.58470050 | 0.58470050 | 3.7e-08 % |
| Peak roof drift, in (both at t = 18.84 s) | 0.001762504 | 0.001762504 | 1.4e-07 % |
| Peak base shear, kip (both at t = 18.84 s) | 2.1085446 | 2.1085446 | 1.6e-07 % |
Difference = (OpenSees − OpenAnstruk) / OpenAnstruk.

Fig. 2 · Roof drift at joint 3 through the record. OpenSees at every step; OpenAnstruk at the 252 output steps its run keeps, the peak among them.
All 12 quantities agree with OpenSees to within 1.6e-07 %. Along the record the worst step differs by 5.0e-06 % of peak.
What this report does not cover
| Analysis in the example | OpenSees | OpenAnstruk |
|---|---|---|
| Gravity, load-controlled in 10 steps | Static, Newton | Linear static, compared |
| Pushover, displacement-controlled to 10 in | Static, Newton | No displacement control and no nonlinear static analysis; the elastic push is one linear case scaled, compared |
| Eigenvalue analysis | Yes | Yes, compared |
| Earthquake, uniform base excitation, Newmark | Yes | Linear time history, Newmark average acceleration, compared |
| Damping | Rayleigh with any coefficients (here βK only) | Rayleigh by a damping ratio fitted at two periods; the coefficients are not an input |
| Geometric transformation | Linear, P-Δ or corotational | Linear only: the solver is first-order. The scripts use Linear |
| Plane-frame model (2 dimensions, 3 DOF per node) | Yes | Yes, the Plane X-Z model of the DOF tool. Not compared: this report restrains the out-of-plane directions at every joint instead |