1 Introduction

Performance-based earthquake engineering (PBEE) is a structural engineering paradigm that fully embraces the intrinsic uncertainty associated with strong ground motion and employs probabilistic tools to evaluate structural performance in seismic areas (e.g., Cornell and Krawinkler 2000). Perhaps the most notable example is the problem of estimating the rate of earthquakes leading the structure to fail in meeting a performance objective (a situation often referred to as exceedance of a limit state). This calculation can be performed by an implementation of the total probability theorem:

$$\lambda_{f} = \int_{IM} {P\left[ {f\left| {IM = im} \right.} \right] \cdot \left| {d\lambda_{im} } \right|}$$
(1)

The terms appearing in the equation are the sought rate of failure, \(\lambda_{f}\), the rate of exceeding a certain value of a ground motion intensity measure (IM), \(\lambda_{im}\), and the conditional probability of failure given a certain level of seismic intensity, \(P\left[ {f\left| {IM = im} \right.} \right]\); i.e., the fragility of the structure. The term \(\lambda_{im}\) is a measure of the seismic hazard at a specific site and can be evaluated by means of probabilistic seismic hazard analysis (note that the absolute value of the differential, \(\left| {d\lambda_{im} } \right|\), appears in the equation).

The methods used to derive such fragility functions can be classified as empirical, analytical or hybrid; the interested reader is referred to Calvi et al. (2006) for a comprehensive overview. In recent years there has been considerable emphasis on the analytical approach, which is based on numerical models, especially for structure-specific fragility functions. State-of-the-art analytical methods rely on advanced numerical models of the structure subjected to nonlinear dynamic analyses. A classic example of such analysis is incremental dynamic analysis (IDA, Vamvatsikos and Cornell 2002). IDA accounts for the variability of structural response (i.e., the so-called record-to-record variability) by using a sample of recorded accelerograms as seismic input. IDA entails having each accelerogram in the ensemble scaled in amplitude to increasing levels of intensity (as measured by the selected IM) and estimating the structural response at each such level. In fact, because the IM typically does not possess full explanatory power with respect to structural response, the variability of the latter with respect to the former has to be captured. Thus, IDA seeks to map seismic structural response statistically, from the first signs of nonlinear inelastic behavior up to eventual collapse. Proposed extensions of this dynamic analysis methodology reserve the possibility of accounting for uncertainty in the numerical model itself (e.g., Dolsek 2009; Vamvatsikos and Fragiadakis 2010; Vamvatsikos 2014). Alternative-to-IDA dynamic analysis strategies used for estimating structural fragility are cloud analysis and multiple-stripe analysis (e.g., Bazzuro et al. 1998; Jalayer and Cornell 2003).

The main disadvantages of the dynamic-analysis-based derivation of fragility functions is the computational burden involved and the amount of effort that has to go into modelling highly non-linear structural behavior. The combination of numerical model complexity, required number of runs and the need for elaborate result post-processing can add-up to such demands of human and computing resources that engineers find themselves strongly motivated to look for simpler, approximate alternatives. The most notable simplifying alternative, one that has been with PBEE in various forms since its early years, involves making recourse to an equivalent single-degree of freedom (SDoF) inelastic system. One key point in this approximation is the assignment of a force–deformation law governing the SDoF system’s response to monotonic lateral loading, typically referred to as the backbone curve. The definition of this backbone is typically based on the (numerically-evaluated) response of the original multiple-degree of freedom (MDoF) structure to a progressively increasing lateral force profile, known as its static push-over (SPO) curve. Due to their approximate nature, SPO-based methods have limitations that have been extensively documented and discussed (e.g., Krawinkler and Seneviratna 1998; Fragiadakis et al. 2014).

The other key point that is ubiquitous among SPO-based procedures is the calculation of the seismic demand of the equivalent SDoF system and the subsequent estimation of the original MDoF structure’s seismic demand (e.g., Fajfar 2000). Throughout the years, semi-empirical methods available for this calculation have evolved from the equal displacement rule to equations relating strength ratio to ductility per oscillator period (often abbreviated as \(R - \mu - T\) relations, e.g., Vidic et al. 1994) and eventually to the static pushover to IDA (SPO2IDA) algorithm of Vamvatsikos and Cornell (2006). While earlier inelastic-spectra-based approaches were focused on average response of SDoF oscillators with elastic-perfectly-plastic or bilinear backbone curves, the more recent SPO2IDA tool has the ability to treat more complex SPO curves and, more importantly, offers direct estimates of the dispersion associated with the record-to-record variability of structural response. These two elements render SPO2IDA particularly suitable for implementation within the PBEE paradigm, since they facilitate the treatment of uncertainty in seismic structural response for limit states approaching global collapse.

This article comprehensively discusses the earthquake-engineering-oriented software SPO2FRAG (first introduced in Iervolino et al. 2016a), an application coded in MATLAB® environment that permits the computer-aided evaluation of seismic fragility functions for buildings, based on the results of SPO analysis. The SPO2IDA algorithm lies at the core of SPO2FRAG, allowing the application to simulate the results of IDA without running numerous, cumbersome analyses.

The remainder of the paper is structured as follows: first, the background research behind SPO2FRAG is briefly presented, in order to highlight the connection between the PBEE paradigm and the program’s functionality. The next section is dedicated to the detailed description of the program itself, addressing the various internal modules that comprise SPO2FRAG, the inner workings, methodology and flowchart, as well as the various options available to the user. Finally two illustrative examples are presented, along with some evaluation and discussion of the obtained results.

2 Fragility, IDA, and SPO2IDA

2.1 IDA and the IM-based approach

The conceptual basis of SPO2FRAG lies in simulating the results of incremental dynamic analysis using SPO alone. Therefore, the principal assumptions behind IDA and the methodologies for fitting analytical fragility models on IDA results are also relevant in this case and merit briefly recalling them.

IDA collects the responses of a non-linear structure to a suite of accelerograms, as these accelerograms are progressively scaled in amplitude to represent increasing levels of seismic intensity. These structural responses are typically represented by a scalar quantity, the engineering demand parameter (EDP). Examples of EDPs often used for buildings are maximum roof drift ratio (RDR) and maximum interstorey drift ratio over all floors (IDR). Furthermore, a scalar IM is chosen to represent seismic intensity; e.g., peak ground acceleration (PGA) or first-mode spectral acceleration, \(Sa\left( {T_{1} } \right)\). One basic assumption is that such an IM is sufficient, that is, the EDP random variable conditioned on the IM is independent of other ground motion features needed to evaluate the seismic hazard for the site, such as magnitude and source-to-site distance (e.g., Luco and Cornell 2007). Another closely related assumption is the so-called scaling robustness of the chosen IM, meaning that using records scaled to the desired amplitude of the IM, rather than records where said amplitude occurred naturally, will not introduce bias into the distribution of structural responses obtained (e.g., Iervolino and Cornell 2005). This allows plotting EDP against IM as each individual record is scaled upwards, resulting in an IDA curve.

It is assumed that in the numerical model of the structure employed for IDA, stiffness and strength degradation under dynamic loading are acceptably represented. Consequently, failure of the analysis to provide an EDP value after scaling a record to a certain IM level can be attributed to the onset of dynamic instability, which would physically correspond to the structure’s side-sway collapse (see also Adam and Ibarra 2015). For presentation purposes, this numerical onset of collapse can be displayed at the end of the IDA curve as a horizontal segment of ever-increasing EDP-values for a fixed IM value, or a flat-line (see Fig. 1). In cases where global collapse is deemed to occur at lower IMs due to non-simulated modes of failure (e.g., shear or axial failure of columns) an appropriate flatline may be used instead to terminate the IDA curve earlier.

Fig. 1
figure 1

Example of IM-based derivation of structural fragility using IDA curves (limit state defined as exceedance of a 2% IDR value)

An effective way of summarizing IDA results is to calculate and plot counted fractile curves of either EDP for fixed IM or vice versa (Vamvatsikos and Cornell 2004). Usually, fractile IDA curves at 16, 50 and 84% are chosen for presentation, corresponding to the mean plus/minus one standard deviation of a Gaussian distribution. As a matter of fact, analytical derivation of fragility functions typically involves fitting a parametric probability model to the results of dynamic analysis and the model chosen is very often lognormal. One way of defining the fragility function for a limit state is to assume that there exists a threshold (maximum allowable) value of some EDP, \(edp_{f}\), whose exceedance also signals failure, i.e., exceedance of the limit state, according to Eq. (2).

$$P\left[ {f\left| {IM = im} \right.} \right] = P\left[ {EDP > edp_{f} \left| {IM = im} \right.} \right] = P\left[ {IM_{f}^{LS} \le im} \right].$$
(2)

An alternative way of looking at this fragility definition, within the IDA framework, can be stipulated by considering a random variable representing the IM level at which to scale a specific record in order to fail the structure (i.e., causing the event \(EDP > edp_{f}\)), denoted as \(IM_{f}^{LS}\). In this case, the fragility function can be written as the probability of this random variable being equal or lower than the level of seismic intensity possibly occurring at the site, according to Eq. (2)—see also Jalayer and Cornell (2003). By making the assumption that \(IM_{f}^{LS}\) follows a lognormal distribution, the fragility function will be completely defined by estimating the two parameters of the underlying Gaussian, i.e., the mean of the logs \(\eta\) and the logarithmic standard deviation \(\beta\). These parameters can be estimated using the sample of \(IM_{f,i}^{LS}\) values shown in Fig. 1 as the intersection of the individual IDA curves and the \(EDP = edp_{f}\) vertical line. As a consequence, it is possible to write the fragility function via the standard Gaussian function \(\Phi ( \cdot )\):

$$P\left[ {IM_{f}^{LS} \le im} \right] = \Phi \left[ {\frac{{\ln \left( {im} \right) - \eta }}{\beta }} \right].$$
(3)

This approach, expressed by Eqs. (23), is known as the IM-based derivation of the fragility function. As evidenced in Fig. 1, the IM-based approach is particularly convenient when global collapse becomes the limit state of interest: any vertical line intersecting all the records’ flat-lines will provide the empirical distribution for collapse intensity to which a model such as the lognormal appearing in Eq. (3) can be fitted. This, in turn, may be used to compute the failure rate via Eq. (1). In general, though, pinpointing a fixed value of \(edp_{f}\) that signals the transition between limit states can be hard due to the uncertainties involved.

It should be highlighted that when using IDA to estimate the fragility \(P\left[ {f\left| {IM = im} \right.} \right]\) appearing in Eq. (1), the two already mentioned assumptions of sufficiency and robustness to scaling are endorsed by default, due to the very nature of the analysis. In what follows, it will be assumed that first mode spectral acceleration, \(Sa\left( {T_{1} } \right)\), is a sufficient-enough IM with respect to roof and interstorey drifts for the structures considered and thus the problem of fragility estimation will be treated as site-independent.

2.2 Static pushover analysis and SPO2IDA

SPO analysis finds application in the context of earthquake engineering as part of several approximate procedures that relate the inelastic seismic response of structures to that of some equivalent SDoF system. The popularity of such methods can be attributed to their inherent simplicity and eventual adoption by normative documents and guidelines on seismic structural design/assessment. Some of the earlier examples of SPO-based procedures made recourse to elastic-perfectly plastic or bilinear SDoF equivalent oscillators and relied on inelastic displacement ratio predictive equations or \(R - \mu - T\) (strength ratio—ductility—period) relations to obtain estimates of their average inelastic response. More recently, the trend has been shifting towards accounting for the variability of inelastic seismic response around its central value and towards expanding the limits of structural assessment to include global collapse (e.g., Vamvatsikos and Cornell 2005). The latter of these trends practically translates into the adoption of more elaborate numerical models for the structure and consequently SPO curves that trace monotonic response to lateral loading down the (in-cycle) strength-degradation descending branch and along an eventual residual strength plateau. This, in turn, gives rise to the need for analytical models that predict the response of SDoF systems with more complex backbone curves, such as the quadrilinear depicted in Fig. 2.

Fig. 2
figure 2

Quadrilinear monotonic backbone curve in dimensionless \(\left\{ {R,\mu } \right\}\) coordinates and defining parameters (a), SPO2IDA prediction against actual quadrilinear-backbone SDoF oscillator (T = 0.56 s) IDA curves obtained using all forty-four components of the FEMA P695 far-field ground motion set (b)

In this format, the quadrilinear backbone can be completely defined by five parameters shown in Fig. 2a: the hardening slope \(\alpha_{h}\) (positive ratio of post-yield stiffness to elastic stiffness), the capping-point ductility \(\mu_{c}\) (point where loss of strength with increasing deformation begins), the post-capping slope \(\alpha_{c}\) (negative slope corresponding the ratio of the negative post-capping stiffness divided by the initial elastic stiffness), the height of the residual strength plateau \(r_{p}\) (ratio of residual strength divided by yield strength) and the fracture ductility \(\mu_{f}\) (point corresponding to sudden, complete loss of strength). It is recalled that ductility is defined as the ratio of displacement response to yield displacement, \(\mu = {\delta \mathord{\left/ {\vphantom {\delta {\delta_{y} }}} \right. \kern-0pt} {\delta_{y} }}\), while the strength ratio \(R = {{Sa\left( T \right)} \mathord{\left/ {\vphantom {{Sa\left( T \right)} {Sa\left( T \right)}}} \right. \kern-0pt} {Sa\left( T \right)}}_{y}\) is defined as the ratio of the spectral acceleration intensity to its value causing yield, or, equivalently, the ratio of the elastic seismic force over the yield base shear of the system (\(R\) is sometimes encountered in the literature under the term strength reduction factor).

Vamvatsikos and Cornell (2006) proposed a set of semi-empirical analytical equations aimed at predicting the median and (record-to-record) variability of peak seismic response of SDoF oscillators featuring quadrilinear SPOs. These equations use the SPO parameters \(\alpha_{h}\), \(\mu_{c}\), \(\alpha_{c}\), \(r_{p}\), \(\mu_{f}\) and period of natural vibration \(T\) as predictor (independent) variables to estimate the SDoF structure’s 16, 50 and 84% fractile IDA curves in \(\left\{ {R,\mu } \right\}\) coordinates. For this reason, this set of equations has been named SPO2IDA. The equations that comprise SPO2IDA were fit against the responses of SDoF oscillators with critical viscous damping ratios, \(\zeta\), equal to five percent and with hysteretic behavior exhibiting moderate pinching but no cyclic degradation of stiffness or strength. These oscillators were subjected to a suite of thirty recorded ground acceleration time-histories, recorded on firm soil and most likely unaffected by near-source directivity effects. An example of an SPO2IDA prediction for a quadrilinear-backbone SDoF system, plotted against the actual (individual and fractile) IDA responses to a set of forty-four accelerograms, can be found in Fig. 2b. The limits of applicability for SPO2IDA in terms of the independent variables are the following: \(0.10s \le T \le 4.0s, 0.0 \le \alpha_{h} \le 0.90, 1.0 < \mu_{c} \le 9.0, 0.02 \le \left| {\alpha_{c} } \right| \le 4.0, \text{and}\ 0.0 \le r_{p} \le 0.95.\)

The key observation behind the development of SPO2IDA was the relatively consistent behavior of the IDA fractile curves corresponding to the various segments of the underlying SPO (i.e., hardening, softening, residual). This behavior is visible in Fig. 2b, where the SPO is plotted along with the IDA fractiles (both calculated and predicted). While an almost-constant ascending slope characterizes the initial post-yield IDA segments, this gives way to gradual flattening upon crossing of the capping point. This flattening is temporarily arrested when the residual plateau is encountered, but only until the fracture point leads to the flat-lines that indicate collapse. Although analytically complex, SPO2IDA is an algorithm that has proven well-suited to computer implementation. SPO2FRAG fully exploits SPO2IDA’s potential as a PBEE tool by surrounding it with a set of modules that render the SPO-based estimation of seismic structural fragility practical. The complete conceptual and operational details are presented in the following sections.

2.3 Definition of an equivalent SDoF system

The choice of an equivalent SDoF system for a given structure lies at the core of all SPO-based analysis methods. This choice entails the definition of the SDoF oscillator’s mass, \(m^{*}\), yield strength, \(F_{y}^{*}\), yield displacement, \(\delta_{y}^{*}\) and as many of the dimensionless backbone parameters (see Fig. 2a) as are applicable to the case at hand (i.e., depending on whether one is opting for a bilinear, trilinear or full quadrilinear approximation of the SPO curve).

With reference to Fig. 3, we assume that a generic n-storey frame building is subjected to a lateral load profile \(F_{i} = \kappa \cdot m_{i} \cdot \varphi_{i}\), where \(F_{i}\) is the force acting on the i-th storey, \(m_{i}\) represents floor mass, the elements \(\varphi_{i}\) define a dimensionless displacement profile, which is assumed constant with unit value at roof level (\(\varphi_{n} = 1\)), and \(\kappa\) is a scale factor with dimensions of acceleration. By gradually increasing the scale factor \(\kappa\), recording the displacement response of the deforming structure at roof level, \(\delta^{roof}\), and plotting that displacement against base shear, \(F_{b} = \sum\nolimits_{i = 1}^{n} {F_{i} }\), we obtain the SPO curve—Fig. 3c. This curve is used to determine the monotonic backbone of an SDoF system whose mass, \(m^{*}\), is given as a function of the structure’s floor masses by \(m^{*} = \sum\nolimits_{i = 1}^{n} {m_{i} \cdot \varphi_{i} }\) and whose reaction force \(F^{*}\) and displacement \(\delta^{*}\) are related to the structure’s base shear and roof displacement by dividing with the modal participation factor \(\varGamma\) (\(F^{*} = {{F_{b} } \mathord{\left/ {\vphantom {{F_{b} } \varGamma }} \right. \kern-0pt} \varGamma }\) and \(\delta^{*} = {{\delta^{roof} } \mathord{\left/ {\vphantom {{\delta^{roof} } \varGamma }} \right. \kern-0pt} \varGamma }\)), which is calculated as \(\varGamma = {{m^{*} } \mathord{\left/ {\vphantom {{m^{*} } {\sum\nolimits_{i = 1}^{n} {m_{i} \cdot \Phi_{i}^{2} } }}} \right. \kern-0pt} {\sum\nolimits_{i = 1}^{n} {m_{i} \cdot \varphi_{i}^{2} } }}\) (Fajfar 2000).

Fig. 3
figure 3

Definition of equivalent SDoF system: SPO analysis of the strtucture (a), definition of dynamic characteristics of the SDoF system (b), definition of monotonic backbone of the SDoF system based on SPO curve (c)

The period of vibration of the equivalent SDoF system, \(T^{*}\), is calculated as \(T^{*} = 2\pi \cdot \sqrt {\frac{{m^{*} \cdot \delta_{y}^{*} }}{{F_{y}^{*} }}}\). As indicated by Fig. 3c, the definition of \(F_{y}^{*}\) and \(\delta_{y}^{*}\) depends on the piece-wise linear approximation adopted for the SPO curve. As far as specific methodologies towards obtaining said approximation are concerned, the literature offers some variety but little consensus. Normative documents such as Eurocode 8 (CEN 2004), FEMA-356 (ASCE 2000) and FEMA-273 (BSSC 1997) suggest some procedures for obtaining elastic-perfectly-plastic or bilinear approximations for the backbone of the equivalent SDoF based on ad-hoc criteria such as area balancing (CEN 2004). Furthermore, when it comes to trilinear or quadrilinear SPO fits that bring to the table a larger number of parameters to be estimated, such simple rules are not enough. In fact, more advanced methods towards constructing trilinear SPO curve approximations were proposed in FEMA-440 (2005), ASCE/SEI 41-06 (ASCE 2007) as well as by Han et al. (2010) and Vamvatsikos and Cornell (2005).

Recently, De Luca et al. (2013) set forth a set of rules for obtaining quadrilinear approximations that may potentially include a residual strength plateau. In that work, the optimization of the piece-wise linear fit was performed by comparing the IDA curves of the multi-linear-backbone SDoF oscillator with those of the system sporting the exact backbone. For this reason, this was considered the most suited algorithm for inclusion within SPO2FRAG’s modules. In the aforementioned study, the authors paid particular attention to systems with SPOs exhibiting notable changes of stiffness already from the early, low-base-shear stages, e.g., Fig. 3c. Such behavior, which can be due to, for example, gradual cracking of reinforced concrete (RC) members makes pinpointing a nominal yield point for an equivalent SDoF system especially challenging. It was concluded that the elastic segment of the equivalent system’s backbone should correspond to a secant stiffness at an early point on the SPO curve, at around 5–10% of maximum base shear. This is due to the fact that when the elastic stiffness attributed to the equivalent system, \({{F_{y}^{*} } \mathord{\left/ {\vphantom {{F_{y}^{*} } {\delta_{y}^{*} }}} \right. \kern-0pt} {\delta_{y}^{*} }}\), significantly departs from the initial tangent stiffness of the actual structure, the IDA curves corresponding to the linearized backbone display poor fit with respect to the IDAs of the exact backbone at the comparatively low-seismic-intensity region. This is especially relevant in cases where absence of a clearly defined elastic segment and high initial curvature characterizes the SPOs.

2.4 Consideration of MDoF effects

Once an equivalent SDoF oscillator has been fully determined, SPO2IDA can provide an approximation for the three fractile IDA curves of this SDoF system in \(\left\{ {R,\mu } \right\}\) coordinates, as already discussed (see Fig. 4a). The predicted IDAs can be regarded as fractiles of strength ratio, \(R_{x\% }\), given \(\mu\), with \(x = \left\{ {16 ,50 ,84\% } \right\}\). However, two further steps are needed before this result can be used to obtain a meaningful estimate for the fragility of the original MDoF structure. First of all, the SDoF IDA curves must be transformed from \(\left\{ {R,\mu } \right\}\) into an IM—EDP format appropriate for the structure. Second step is to address the variability of response at the nominal yield point \(R = \mu = 1\). Prior to this point, the three IDA \(R_{x\% }\) fractiles of the SDoF system coincide, corresponding to zero response variability around the median. On the other hand, the MDoF structure does exhibit response variability at that point. If the nominal yield point corresponds to the structure remaining in the elastic range, some limited variability will exist due to higher-mode contributions to base shear. Higher variability may be expected when the nominal yield corresponds to deformation levels where the structure is already manifesting some non-linear behavior (e.g., Fig. 3c). In either case, the missing amount of variability should be estimated and injected back into the SDoF-derived approximation of the IDA curves. This is especially important when fragility for low-damage limit states is being sought. These operations are schematically presented in Fig. 4b.

Fig. 4
figure 4

Schematic representation of the conceptual basis of SPO2FRAG: obtaining SPO2IDA-predicted IDA fractiles for the equivalent SDoF system (a), transforming the SDoF IDA curves to MDoF IM-EDP coordinates (b), fitting Gaussian models to the transformed IDA fractiles according to the IM-based procedure (c)

Since the restoring force of the SDoF system depends on spectral acceleration at its natural period, \(T^{*}\), the transformation of IM is the most immediate operation: the 16, 50 and 84% fractiles of \(Sa\left( {T^{*} ,5\% } \right)\) are obtained from their counterpart \(R\) fractiles according to \(Sa\left( {T^{*} ,5\% } \right)_{x\% } = R_{x\% } \cdot \frac{{\delta_{y} }}{\varGamma } \cdot \left( {\frac{2\pi }{{T^{*} }}} \right)^{2} { ,}\;x \in \left\{ {16,50,84} \right\}\).

The passage from ductility demand to RDR and IDR can be performed according to Eq. (4), where \(h_{i}\) denotes the height of the i-th storey and \(\varGamma_{eff}\) is an effective modal participation factor that can be used instead of \(\varGamma\):

$$\left\{ {\begin{array}{ll} {RDR = \varGamma_{eff} \cdot \frac{{\mu \cdot \delta_{y}^{*} }}{{\sum\nolimits_{i = 1}^{n} {h_{i} } }}} \\ {IDR = COD \cdot RDR} \\ \end{array} } \right..$$
(4)

In Eq. (4), the notation COD stands for coefficient of distortion (e.g., Moehle 1992). COD is defined as the ratio of maximum IDR (over all storeys) to the roof drift and is a function of \(R\). This is expressed by Eq. (5), where \(\delta_{i}\) represents the SPO displacement of the i-th storey at base shear level \(R \cdot F_{y}\) and \(H = \sum\nolimits_{i = 1}^{n} {h_{i} }\) the total building height:

$$COD = \frac{{\mathop {\hbox{max} }\nolimits_{i} \left\{ {{{\left( {\delta_{i} - \delta_{i - 1} } \right)} \mathord{\left/ {\vphantom {{\left( {\delta_{i} - \delta_{i - 1} } \right)} {h_{i} }}} \right. \kern-0pt} {h_{i} }}} \right\}}}{{{{\delta_{n} } \mathord{\left/ {\vphantom {{\delta_{n} } H}} \right. \kern-0pt} H}}}.$$
(5)

On the other hand, the effective modal participation factor \(\varGamma_{eff}\) appearing in Eq. (4) is intended to account for higher-mode effects and possible early (prior to nominal yield) non-linear behavior; for an example see Katsanos and Vamvatsikos (2017). Note that \(\varGamma_{eff}\) can be simply substituted by \(\varGamma\) when such effects are not of concern. In the context of SPO2FRAG, \(\varGamma_{eff}\) corresponds to an approximate analytical model that was developed using IDA results obtained for twenty-eight plane, steel and RC moment-resisting frames (MRFs) having two to eight storeys, first-mode periods within 0.25–2.00 s and using both distributed and concentrated plasticity models. The proposed functional form for \(\varGamma_{eff}\) is:collapse intensity of 5%-damped SDoF systems

$$\left\{ \begin{array}{lllll} \varGamma_{eff} = \varGamma + R^{2} \cdot \left( {{{\sum\limits_{i = 1}^{n} {m_{i} } } \mathord{\left/ {\vphantom {{\sum\limits_{i = 1}^{n} {m_{i} } } {\sum\limits_{i = 1}^{n} {m_{i} } \cdot \varphi_{i} }}} \right. \kern-0pt} {\sum\limits_{i = 1}^{n} {m_{i} } \cdot \varphi_{i} }} - \varGamma } \right) \cdot \left[ {\frac{{\widetilde{Sa}\left( {T_{2} } \right)}}{{Sa\left( {T^{*} } \right)}} - 1} \right] \cdot \left[ {1 - 0.5 \cdot \left( {\frac{{T^{*} }}{{T_{1} }}} \right)^{{{1 \mathord{\left/ {\vphantom {1 2}} \right. \kern-0pt} 2}}} } \right]_{ \, } ,\quad 0\, { < }\,R \,\le\, 1 \hfill \\ \varGamma_{eff} = \varGamma + \left( {{{\sum\limits_{i = 1}^{n} {m_{i} } } \mathord{\left/ {\vphantom {{\sum\limits_{i = 1}^{n} {m_{i} } } {\sum\limits_{i = 1}^{n} {m_{i} } \cdot \varphi_{i} }}} \right. \kern-0pt} {\sum\limits_{i = 1}^{n} {m_{i} } \cdot \varphi_{i} }} - \varGamma } \right) \cdot \left[ {\frac{{\widetilde{Sa}\left( {T_{2} } \right)}}{{Sa\left( {T^{*} } \right)}} - 1} \right] \times \\ \times \left[ {1 - 0.5 \cdot \left( {\frac{{T^{*} }}{{T_{1} }}} \right)^{{{1 \mathord{\left/ {\vphantom {1 2}} \right. \kern-0pt} 2}}} - 1.7 \cdot \left( {\frac{R - 1}{{R_{50\% }^{col} - 1}}} \right)^{{{1 \mathord{\left/ {\vphantom {1 2}} \right. \kern-0pt} 2}}} + 1.3 \cdot \left( {\frac{R - 1}{{R_{50\% }^{col} - 1}}} \right)^{{{1 \mathord{\left/ {\vphantom {1 2}} \right. \kern-0pt} 2}}} \cdot \left( {\frac{{T^{*} }}{{T_{1} }}} \right)^{{{1 \mathord{\left/ {\vphantom {1 2}} \right. \kern-0pt} 2}}} } \right]_{ \, } ,\quad 1\,{ < }\,R\, \le\, R_{50\% }^{col} \hfill \\ \varGamma_{eff} = \varGamma + \left( {{{\sum\limits_{i = 1}^{n} {m_{i} } } \mathord{\left/ {\vphantom {{\sum\limits_{i = 1}^{n} {m_{i} } } {\sum\limits_{i = 1}^{n} {m_{i} } \cdot \varphi_{i} }}} \right. \kern-0pt} {\sum\limits_{i = 1}^{n} {m_{i} } \cdot \varphi_{i} }} - \varGamma } \right) \cdot \left[ {\frac{{\widetilde{Sa}\left( {T_{2} } \right)}}{{Sa\left( {T^{*} } \right)}} - 1} \right] \cdot \left[ {0.8 \cdot \left( {\frac{{T^{*} }}{{T_{1} }}} \right)^{{{1 \mathord{\left/ {\vphantom {1 2}} \right. \kern-0pt} 2}}} - 0.7} \right]_{ \, } ,\quad R > R_{50\% }^{col} \hfill \\ 1.0 \le \left( {{{T^{*} } \mathord{\left/ {\vphantom {{T^{*} } {T_{1} }}} \right. \kern-0pt} {T_{1} }}} \right)^{{{1 \mathord{\left/ {\vphantom {1 2}} \right. \kern-0pt} 2}}} \le 1.50,\quad 1.0 \le {{\widetilde{Sa}\left( {T_{2} } \right)} \mathord{\left/ {\vphantom {{\widetilde{Sa}\left( {T_{2} } \right)} {Sa\left( {T^{*} } \right)}}} \right. \kern-0pt} {Sa\left( {T^{*} } \right)}} \le 3.0 \hfill \\ \end{array} \right.$$
(6)

In Eq. (6), \(\widetilde{Sa}\left( {T_{2} } \right)\) represents the geometric mean spectral acceleration at the second-mode period, when all records of the ground motion suite employed by Vamvatsikos and Cornell (2006) for SPO2IDA are scaled to a common \(Sa\left( {T^{*} } \right)\) value. On the other hand, \(R_{50\% }^{col}\) represents the median strength ratio causing collapse, taken as the median SPO2IDA flat-line height.

Note that according to Eq. (6), \(\varGamma_{eff}\) can assume values between \(\varGamma\)(lower bound) and \({{\sum\nolimits_{i = 1}^{n} {m_{i} } } \mathord{\left/ {\vphantom {{\sum\nolimits_{i = 1}^{n} {m_{i} } } {\sum\nolimits_{i = 1}^{n} {m_{i} \cdot \varphi_{i} } }}} \right. \kern-0pt} {\sum\nolimits_{i = 1}^{n} {m_{i} \cdot \varphi_{i} } }}\) (upper bound). The upper bound value corresponds to activation of the full structural mass along the vibration mode \(\varphi_{i}\). Furthermore, \(\varGamma_{eff}\) depends on \(R\), \({{T^{*} } \mathord{\left/ {\vphantom {{T^{*} } {T_{1} }}} \right. \kern-0pt} {T_{1} }}\), and \({{\widetilde{Sa}\left( {T_{2} } \right)} \mathord{\left/ {\vphantom {{\widetilde{Sa}\left( {T_{2} } \right)} {Sa\left( {T^{*} } \right)}}} \right. \kern-0pt} {Sa\left( {T^{*} } \right)}}\). The ratio \({{T^{*} } \mathord{\left/ {\vphantom {{T^{*} } {T_{1} }}} \right. \kern-0pt} {T_{1} }}\) is a measure of how far the nominal yield point of the equivalent SDoF system trespasses into non-linear territory; higher values of this ratio correspond to SPO curves with considerable initial curvature. The ratio \({{\widetilde{Sa}\left( {T_{2} } \right)} \mathord{\left/ {\vphantom {{\widetilde{Sa}\left( {T_{2} } \right)} {Sa\left( {T^{*} } \right)}}} \right. \kern-0pt} {Sa\left( {T^{*} } \right)}}\) is in place to account for the response-amplifying effect of higher modes, when the structure is excited by accelerograms exhibiting larger spectral ordinates at the second-mode period. It has been known for some time that, in MRF structures, such effects persist into the non-linear response range (e.g., Shome and Cornell 1999).

The second part of the SDoF to MDoF transition consists of adding the missing variability at nominal yield, \(\beta_{y}\). Vamvatsikos and Cornell (2005) suggested that this can be achieved by running a set of linear-elastic response history analyses of the structure. Although that approach may work when nominal yield of the equivalent SDoF system coincides with the linear-elastic limit of the structure, in order to deal with a generic case, when the former delves into non-linear territory, a semi-empirical relation was developed for the purposes of SPO2FRAG. This relation was calibrated using the same stock of buildings’ numerical models as for Eq. (6):

$$\left\{ \begin{array}{llll} \beta_{y} = \sqrt {\beta_{yo}^{2} + \beta_{{y,T_{2} }}^{2} } \hfill \\ \beta_{yo} = {1 \mathord{\left/ {\vphantom {1 {2 \,\cdot }}} \right. \kern-0pt} {2\, \cdot }}\ln \left( {{{Sa_{y,84\% }^{bilin} } \mathord{\left/ {\vphantom {{Sa_{y,84\% }^{bilin} } {Sa_{y,16\% }^{bilin} }}} \right. \kern-0pt} {Sa_{y,16\% }^{bilin} }}} \right) \hfill \\ \beta_{{y,T_{2} }} = 0.04 + 0.04 \cdot \frac{{\widetilde{Sa}\left( {T_{2} } \right)}}{{Sa\left( {T^{*} } \right)}} \cdot \left[ {2.6 - 1.6 \cdot \left( {\frac{{T_{\sec } }}{{T_{1} }}} \right)^{{{1 \mathord{\left/ {\vphantom {1 2}} \right. \kern-0pt} 2}}} } \right] \hfill \\ T_{\sec } = 2\pi \cdot \sqrt {\frac{{m^{*} \cdot \delta_{y} }}{{F_{y} }}} ,\quad 1.0 \le \left( {{{T_{\sec } } \mathord{\left/ {\vphantom {{T_{\sec } } {T_{1} }}} \right. \kern-0pt} {T_{1} }}} \right)^{{{1 \mathord{\left/ {\vphantom {1 2}} \right. \kern-0pt} 2}}} \le 1.5 \, \hfill \\ \end{array} \right.$$
(7)

According to Eq. (7), two separate contributions are considered in the estimate of \(\beta_{y}\). The term \(\beta_{yo}\) that accounts for early non-linear behavior (i.e., curvature of the SPO curve prior to the nominal yield point) and the term \(\beta_{{y,T_{2} }}\) that accounts for purely higher-mode contribution to variability at yield. The other terms introduced in Eq. (7) are the secant-to-first-mode period ratio \({{T_{\sec } } \mathord{\left/ {\vphantom {{T_{\sec } } {T_{1} }}} \right. \kern-0pt} {T_{1} }}\) and the \(Sa_{y,x\% }^{bilin}\) fractiles that determine \(\beta_{yo}\). The terms \(Sa_{y,x\% }^{bilin}\) appearing in Eq. (7), correspond to the x% SPO2IDA fractiles of an auxiliary SDoF system, whose bilinear backbone is fitted using only the SPO segment that precedes the nominal yield point; this means that \(\beta_{yo}\) attains higher values as the nominal yield point advances into the non-linear part of the SPO curve and reduces to zero whenever nominal yield is found on the initial linear segment. The \({{T_{\sec } } \mathord{\left/ {\vphantom {{T_{\sec } } {T_{1} }}} \right. \kern-0pt} {T_{1} }}\) ratio used in the calculation of the \(\beta_{{y,T_{2} }}\) term is another proxy for early SPO curvature; note that according to Eq. (7), the influence of the higher-mode term \(\beta_{{y,T_{2} }}\) diminishes for increasing values of \({{T_{\sec } } \mathord{\left/ {\vphantom {{T_{\sec } } {T_{1} }}} \right. \kern-0pt} {T_{1} }}\). This is explained by the fact that larger values of \({{T_{\sec } } \mathord{\left/ {\vphantom {{T_{\sec } } {T_{1} }}} \right. \kern-0pt} {T_{1} }}\) imply substantial initial curvature of the SPO curve, in which case the competing term \(\beta_{yo}\) tends to account for most of the variability. It should be noted that the combination of employing the \(\varGamma_{eff}\) concept and injecting the missing variability at yield \(\beta_{y}\), constitutes a simplified method of dealing with higher-mode effects in the context of SPO analysis that was tailor-made to suit the needs of the SPO2FRAG software; therefore, caution is advised should it be used to confront this complex issue outside this context.

2.5 SPO-based fragility

Having thus simulated the three IDA fractile curves, based on the SPO of the structure, the parameters of the lognormal fragility model of Eq. (3) can be fitted for each limit-state (Fig. 4c). Since the SPO-based IDA approximation does not provide the individual IDA curves, but only fractiles, the fragility parameters can be estimated as:

$$\left\{ \begin{array}{ll} \eta = \ln \left( {Sa_{f,50\% }^{LS} } \right) \hfill \\ \beta = \ln \left( {{{Sa_{f,50\% }^{LS} } \mathord{\left/ {\vphantom {{Sa_{f,50\% }^{LS} } {Sa_{f,16\% }^{LS} }}} \right. \kern-0pt} {Sa_{f,16\% }^{LS} }}} \right) \hfill \\ \end{array} \right.$$
(8)

The terms \(Sa_{f,x\% }^{LS}\) represent the x% fractile of the structural intensity causing exceedance of each limit state LS, as defined when introducing Eq. (2) and IM-based fragility.

Finally, once the lognormal fragility parameters \(\left\{ {\eta ,\beta } \right\}\) have been estimated from the SPO analysis one may consider two a posteriori modifications. One modification to the median, in order to account for structural damping other than \(\zeta = 5\%\) and another modification to the dispersion that accounts for additional response variability due to structural modelling uncertainty. In the \(\zeta \ne 5\%\) case, it is considered that it is sufficient to modify the median and only for limit states nearing collapse. In fact, Han et al. (2010) proposed a modification factor, \(C_{\zeta }\), to be applied to the median collapse intensity of 5%-damped SDoF systems:

$$\left\{ \begin{array}{ll} R_{50\% }^{col} \left( \zeta \right) = C_{\zeta } \cdot R_{50\% }^{col} \left( {\zeta = 5\% } \right) \\ \hfill \\ C_{\zeta } = 1 - \frac{0.07 \cdot \ln \zeta + 0.20}{{\left( {T^{*} } \right)^{0.38}\, \cdot\, \left| {\alpha_{c} } \right|^{ - 0.26}\, \cdot\, \mu_{c}^{ - 0.44} }} \hfill \\ \end{array} \right.$$
(9)

However, even for structures with \(\zeta \ne 5\%\), it is desirable to maintain \(Sa\left( {T^{*} ,5\% } \right)\) as IM, since hazard is typically available in terms of 5%-damped spectral ordinates. Therefore, the necessary modification boils down to Eq. (10), where \(\eta_{\zeta }^{col}\) represents the logarithmic mean collapsing intensity of a \(\zeta \ne 5\%\) structure in terms of \(Sa\left( {T^{*} ,5\% } \right)\) and \(\eta_{\zeta = 5\% }^{col}\) is the uncorrected SPO2IDA estimate from Eq. (8), that considers \(\zeta = 5\%\) by default:

$$\eta_{\zeta }^{col} = \eta_{\zeta = 5\% }^{col} - \ln C_{\zeta }$$
(10)

Apart from the modification of Eq. (10), which is applicable at collapse, a modification factor is also applied to the median failure intensity of any limit states defined by EDP thresholds in proximity to collapse. These modification factors are obtained by interpolation, based on the requisite that \(\eta\) increase monotonically with \(edp_{f}\).

When a single deterministic numerical model of the structure is subjected to IDA, the distribution of the obtained responses reflects record-to-record variability. However, one may also wish to account for uncertainty underlying the mechanical model parameters (such as material strength, member hysteretic behavior, mass distribution, etc.). A simple method for dealing with this issue, adopted by Cornell et al. (2002), is the so-called first-order assumption, whereby the mean logarithmic failure intensity is itself a normal random variable, depending on the probabilistic configuration of the structural model, with a standard deviation \(\beta_{U}\) and mean \(\eta\). Then, the fragility function remains lognormal with the same mean, but with variance \(\beta_{tot}^{2} = \beta^{2} + \beta_{U}^{2}\), with \(\beta\) representing response variability estimated directly from SPO2IDA and Eq. (8). The variability due to modelling uncertainty, \(\beta_{U}\), can either directly assume a value proposed in the literature (e.g., values suggested in FEMA P-695 for the collapse limit state) or be estimated by combining SPO2IDA and Monte-Carlo simulation, similar to what was suggested by Fragiadakis and Vamvatsikos (2010), to follow.

3 Operational outline of SPO2FRAG

The SPO2FRAG tool is essentially a software implementation of the methodology for the SPO-based derivation of seismic fragility functions presented in detail in the preceding section. This engineering application revolves around a graphical user interface (GUI), which is divided in three parts (Fig. 5): the SPO to IDA and fragility toolboxes, panels for the visualization of intermediate results (SPO processing and IDA curve generation) and an output panel where the end result in the form of fragility curves is visualized.

Fig. 5
figure 5

Main SPO2FRAG GUI displaying a completed elaboration of fragility curve calculation

In operational terms, SPO2FRAG comprises a series of individual modules that function independently and complement one another:

  1. 1.

    input interface;

  2. 2.

    automatic multi-linearization tool;

  3. 3.

    dynamic characteristics interface;

  4. 4.

    SPO2IDA module;

  5. 5.

    EDP conversion tool;

  6. 6.

    limit-state definition interface;

  7. 7.

    additional variability management tool;

  8. 8.

    fragility parameter-fitting module.

These modules are organized into two toolboxes on the main GUI and operate according to the flowchart of Fig. 6.

Fig. 6
figure 6

SPO2FRAG flowchart, schematically showing the grouping of the sub-modules into “SPO2IDA tools” and “Fragility curve tools”

3.1 Data input and definition of equivalent SDoF system

The SPO2FRAG tool does not include structural analysis code and operates on the premise that the necessary static non-linear and any optional modal analysis are performed externally. Therefore, any SPO2FRAG project starts at the data input interface, which reads SPO force–displacement results from either a text or a spreadsheet file.

The user is advised to provide SPO displacements at all storeys (rather than just at roof level) since this lateral deformation profile \(\delta_{i}\) can then be used by the program to compute the COD according to Eq. (5), permitting a direct SPO-based conversion of RDR to IDR—Eq. (4). During input, the SPO curve is subjected to some rudimentary checks for correctness and consistency. Subsequently, the roof displacement and base shear values are forwarded to the automated piece-wise linear fitting module.

The multi-linear fit module is intended to aid the user in the definition of the equivalent SDoF backbone curve and allows for the options listed below:

  • quadrilinear fit—the SDoF backbone curve receives a piece-wise linear fit based on the work of De Luca et al. (2013), potentially comprising a maximum of four segments: elastic, hardening, softening and residual strength. Corresponding parameter values are determined via a Monte-Carlo-based optimization algorithm.

  • bilinear fit—two-segment (elastic-hardening) fit in the spirit of the FEMA-356 displacement coefficient method (ASCE 2000), again according to criteria set forth by De Luca et al. (2013).

  • elastic-perfectly-plastic fit—simple bilinear elastoplastic fit based on area balancing, compatible with code prescriptions (e.g., CEN 2004), ending when strength drops below 80% of maximum (or at the last available SPO point).

  • user-defined backbone parameters—manual input by the user.

The multitude of fitting-scheme choices is intended to accommodate various levels of refinement in the numerical modelling, at the user’s discretion. The user is also given the option to intervene and override any of the automatically assigned backbone parameters.

Once the backbone parameters have been established, data input continues with the dynamic characteristics and geometric configuration of the structure (Fig. 7). Additional data required at this stage consist of floor masses and storey heights, the first and second mode vibration periods and the participating mass factor. In cases where the user has provided SPO displacement values at all storeys, SPO2FRAG offers the option of internally approximating the modal participation factor, participating mass and first-mode period. First of all, a segment of the SPO curve is sought that corresponds to linear-elastic response (within a certain tolerance). The force (base shear) and ith floor displacement values at the end of said segment are denoted as \(F_{el}\) and \(\delta_{el,i}\), \(i = \left\{ {1, \ldots ,n} \right\}\) with \(n\) corresponding to the top-most storey, as per the convention of Fig. 3. By making the assumption that the lateral force profile sufficiently approximates the first modal load vector, \(\varGamma\), \(T_{1}\) and the participating mass, \(\tilde{m}\), can be automatically estimated by the program according to Eq. (11).

Fig. 7
figure 7

Multi-linear backbone definition for the equivalent SDoF system and input of dynamic and geometric characteristics of the MDoF structure (spring-mass representation is purely indicative) within the SPO2FRAG GUI

$$\left\{ \begin{array}{lll} \varGamma \approx \delta_{el,n} \cdot {{\left( {\sum\limits_{i = 1}^{n} {m_{i} \cdot \delta_{el,i} } } \right)} \mathord{\left/ {\vphantom {{\left( {\sum\limits_{i = 1}^{n} {m_{i} \cdot \delta_{el,i} } } \right)} {\left( {\sum\limits_{i = 1}^{n} {m_{i} \cdot \delta_{el,i}^{2} } } \right)}}} \right. \kern-0pt} {\left( {\sum\limits_{i = 1}^{n} {m_{i} \cdot \delta_{el,i}^{2} } } \right)}} \hfill \\ \tilde{m} \approx \frac{{\left( {\sum\nolimits_{i = 1}^{n} {m_{i} \cdot \delta_{el,i} } } \right)^{2} }}{{\sum\nolimits_{i = 1}^{n} {m_{i} \cdot \delta_{el,i}^{2} } \cdot \sum\nolimits_{i = 1}^{n} {m_{i} } }} \hfill \\ T_{1} \approx 2\pi \cdot \sqrt {{{F_{el} } \mathord{\left/ {\vphantom {{F_{el} } {\left( {\sum\limits_{i = 1}^{n} {m_{i} \cdot \delta_{el,i} } } \right)}}} \right. \kern-0pt} {\left( {\sum\limits_{i = 1}^{n} {m_{i} \cdot \delta_{el,i} } } \right)}}} \hfill \\ \end{array} \right.$$
(11)

This is also the point where the user is called upon to decide whether to opt for the SDoF to MDoF EDP conversions using \(\varGamma_{eff}\) as per Eq. (6) or to simply set \(\varGamma = \varGamma_{eff}\). The former choice can add accuracy to the approximation for structures with non-negligible higher-mode contribution to the response, while the latter is a cautionary choice for cases when the user desires to employ some particular backbone fit of his own devising.

3.2 The SPO2IDA module and SDoF to MDoF conversions

Once the data input and multi-linear fit of the SPO curve phases have been concluded, the SPO2IDA module is activated, providing the approximated 16, 50 and 84% IDA fractile curves in \(\left\{ {R,\mu } \right\}\) terms. This SPO2IDA output is internally converted into \(Sa\left( {T^{*} ,5\% } \right)\) versus drift coordinates. In cases where the SPO displacements at all storeys have been provided, the default is to convert the IDAs into IDR with the aid of Eq. (5); otherwise, RDR is employed, as estimated via Eq. (4). In the latter case, the user is still given the option to switch to IDR, using the approximate equations for the lateral post-yield deformation profile suggested in FEMA P-58-1 (FEMA 2012).

3.3 Definition of performance limit states

By default, SPO2FRAG recognizes five seismic performance limit states, but the user is given the choice to add or remove limit states for each project. The first four limit states are labeled fully operational, immediate occupancy, life safety and collapse prevention (see SEAOC 1995; FEMA 2000 for definitions). The fifth limit state, labeled side-sway collapse, is added by SPO2FRAG when the SPO curve exhibits strength degradation in the form of a negative-stiffness branch. This limit state corresponds to dynamic instability and is matched to the IDA flat-lines, without requesting any further user-input. The user may also opt to introduce any non-simulated collapse modes by appropriately truncating the SPO curve, whereby this limit-state (and the corresponding flatlines) more reliably indicate the occurrence of global collapse. For the remainder of the limit states, the user is expected to define thresholds in terms of EDP that determine each one’s exceedance. Exceedance thresholds may be inserted explicitly or defined on the SPO curve (e.g., at specified values of global ductility or percentage of peak strength loss), via a dedicated tool contained in the limit-state module (Fig. 8). An additional option available to the user is to treat some or all of these exceedance thresholds as random variables by assuming that they follow a lognormal distribution. In this case, the threshold EDP value is taken as the median value and the user must define the log-standard deviation as well.

Fig. 8
figure 8

Limit-state threshold definition window and subsidiary tool for operating on the SPO curve while defining the thresholds

3.4 Managing additional sources of variability

At this point, even though SPO2FRAG has accumulated sufficient information to be able to proceed with the estimation of the fragility function parameters according to Eq. (8), two issues pertaining to the introduction of additional response variability remain to be addressed on an optional basis. The first of these issues is the fact that, prior to nominal yield, the MDoF system exhibits record-to-record variability that has not yet been accounted for in the SDoF to MDoF transformation, resulting in the 16 and 84% IDA fractiles temporarily coinciding with the median for drift values corresponding to \(R \le 1\). This shortcoming can be remedied at this juncture by injecting an estimate for this missing variability at nominal yield, which is then propagated along the IDA 16 and 84% fractiles. Users may employ the values automatically provided by SPO2FRAG, according to Eq. (7), or override them with their own values from external analysis (e.g., as suggested by Vamvatsikos and Cornell 2005). This addition can be important when the fragilities of high-performance limit states are of interest (i.e., those corresponding to practically unscathed post-earthquake functionality of the building).

The second optional issue concerns cases where one wishes to account for model uncertainty in the fragility curves. This translates to additional response variability, which can be incorporated into the approximated SPO2FRAG IDA curves by symmetrically (in log-space) distancing the 16 and 84% fractiles away from the median. This only leaves the parameter \(\beta_{U}\) to be determined for each limit state and the corresponding SPO2FRAG module offers two options for doing so (Fig. 9). The first option entails user-definition of a \(\beta_{U}\) value at one of the predetermined limit states. This value could be obtained from the technical literature and should be appropriate for the structure and the level of modeling sophistication at hand. This additional uncertainty is then propagated along the IDA curves in a manner that ensures their monotonicity.

Fig. 9
figure 9

SPO2FRAG’s window for the additional variability management module

The second option is to estimate \(\beta_{U}\) via a combination of SPO2IDA and Monte Carlo simulation. In this second case, some of the parameters that define the equivalent SDoF backbone are treated as lognormally distributed, independent random variables, whose variance is determined by the user (the median is taken by default as the value defining the current equivalent SDoF backbone). According to this methodology, a number of \(M\) Monte Carlo realizations of the backbone are created by sampling from these distributions and subsequently SPO2IDA is used to obtain the median intensity per limit state exceedance for the jth backbone realization, \(\left( {Sa_{f,50\% }^{LS} } \right)_{j}\), \(j = \left\{ {1, \ldots ,M} \right\}\). Then, \(\beta_{U}\) can be estimated according to Eq. (12).

$$\beta_{U} = \sqrt {\frac{1}{M - 1} \cdot \sum\limits_{j = 1}^{M} {\left[ {\ln \left( {Sa_{f,50\% }^{LS} } \right)_{j} - \frac{1}{M} \cdot \sum\limits_{i = 1}^{M} {\ln \left( {Sa_{f,50\% }^{LS} } \right)_{i} } } \right]^{2} } }$$
(12)

This operation follows the spirit of the methodology of Fragiadakis and Vamvatsikos (2010), the difference being that, in this case, the Monte Carlo simulations are performed by sampling directly the piece-wise linear equivalent SDoF backbones, rather than by executing new SPO analysis runs.

3.5 Fragility curve parameters

Upon the conclusion of the preceding operations (even without consideration of additional uncertainty) the fragility function estimation module may be activated. At this point, SPO2FRAG will query the user regarding the damping ratio \(\zeta\) characterizing the structure and the choice of estimator for the dispersion parameter (see also Fig. 10). The former information is needed whenever a correction for \(\zeta \ne 5\%\) should be applied to the estimated logarithmic mean according to Eq. (10), while the latter provides an alternative to the estimation of \(\beta\) given in Eq. (8): instead of using the log-space distance between the 50th and the 16th percentile failure intensities, one may opt to use instead the log-space half-distance between the 84th and 16th percentiles, \(\beta = {1 \mathord{\left/ {\vphantom {1 2}} \right. \kern-0pt} 2} \cdot \ln \left( {{{Sa_{f,84\% }^{LS} } \mathord{\left/ {\vphantom {{Sa_{f,84\% }^{LS} } {Sa_{f,16\% }^{LS} }}} \right. \kern-0pt} {Sa_{f,16\% }^{LS} }}} \right)\).

Fig. 10
figure 10

SPO2FRAG’s dialogue window upon activation of the fragility-function estimation module

SPO2FRAG uses Eq. (8) by default for two reasons. If one selects, among alternative SPO lateral force profiles, the one that leads to the earliest failure of the structure (as recommended by Vamvatsikos and Cornell 2005) the SPO-based backbone will correspond to that single collapse mechanism. On the other hand, IDA of the MDoF structure will reveal a variety of collapse mechanisms for different records—see for example Haselton et al. (2011). Recognizing that the IDA curves corresponding to the more favorable collapse mechanisms should be more influential towards the shape of the 84% failure intensity fractile, it is to be equally expected that the more unfavorable (e.g., soft-storey mechanisms) similarly dominate the 16% fractile. Hence, one concludes that choosing the most unfavorable SPO lateral load profile could result in the lower (50 and 16%) fractile curves being better approximated through SPO2IDA than the 84% one. The second reason is that Eq. (8) may be regarded as compatible with a truncated IDA analysis strategy (e.g., Baker 2015), where an analyst chooses to run IDA but only scale records up to a certain IM level (e.g., until 50% of records induce collapse). This truncated IDA scheme may be dictated by the desire to avoid any scaling bias that might lurk above the considered IM limit (see for example Kwong et al. 2015).

For all limit states that have been assigned deterministic exceedance thresholds, estimation of the lognormal fragility function parameters \(\left\{ {\eta ,\beta } \right\}\) proceeds as described in detail in paragraph 2.5. In cases where some limit states have been assigned exceedance thresholds with an associated lognormal probability density, the fragility function is estimated by means of numerically evaluating, via Monte Carlo, the integral resulting from application of the total probability theorem:

$$P\left[ {IM_{f}^{LS} \le im} \right] = \int\limits_{{EDP_{f} }} {\Phi \left[ {\frac{{\ln \left( {im} \right) - \eta_{{edp_{f} }} }}{{\beta_{{edp_{f} }} }}} \right] \cdot f_{{EDP_{f} }} \left( {edp_{f} } \right) \cdot d\left( {edp_{f} } \right)}$$
(13)

In Eq. (13), \(f_{{EDP_{f} }} \left( {edp_{f} } \right)\) is the probability density function of \(EDP_{f}\) and \(\eta_{{edp_{f} }}\), \(\beta_{{edp_{f} }}\) are the logarithmic mean and standard deviation of \(IM_{f}^{LS}\) conditional on the limit state threshold assuming each specific value \(EDP = edp_{f}\). A noteworthy result of normal theory applicable in this case is that, when \(f_{{EDP_{f} }} \left( {edp_{f} } \right)\) is a lognormal density, then \(P\left[ {IM_{f}^{LS} \le im} \right]\), as given by Eq. (13), also follows the lognormal model.

3.6 Consideration of estimation uncertainty

The SPO2FRAG tool estimates seismic fragility according to the IM-based procedure described in paragraph 2.1, by simulating dynamic analysis results via the SPO2IDA algorithm. Since the SPO2IDA equations were fit against IDA responses to a suite of thirty recorded accelerograms (Vamvatsikos and Cornell 2006), the fragility parameter estimates provided by SPO2FRAG can be implicitly regarded as (fixed-size) sample estimators of a Gaussian model’s parameters. As such, the estimators for the mean and variance are probabilistic results that are affected by uncertainty of estimation, i.e., the uncertainty inherent in estimating the mean and variance of a population based on an extracted finite-size sample (Mood et al. 1974).

Since quantification of estimation uncertainty associated with structural fragility may be of interest for the seismic risk analyst, SPO2FRAG calculates the boundaries of the 90% confidence interval for each limit state’s parameter estimates. Furthermore, SPO2FRAG also provides the user with a visual representation of the estimation uncertainty associated with the fragility curves obtained, shown in Fig. 11. The plot depicted is generated using parametric bootstrap (Efron 1982). The parametric bootstrap belongs to a family of resampling schemes for the approximate calculation of estimator statistics and is simulation-based. In the case at hand, a fixed number of twenty-five hundred bootstrap samples of size thirty are extracted from the Gaussian distribution defined by the SPO2FRAG-estimated fragility parameters. Then, a new pair of lognormal fragility parameters is re-estimated for each extraction. Finally, the fragility functions corresponding to each bootstrap extraction are plotted against the originally fitted fragility curve, resulting in Fig. 11.

Fig. 11
figure 11

Visualization of estimation uncertainty underlying the fragility parameter estimates with the aid of a parametric-bootstrap-generated set of alternative fragility curves

4 Illustrative SPO2FRAG applications

In order to be able to illustrate SPO2FRAG’s function and compare the resulting fragility functions with their dynamic-analysis-derived counterparts, two applications on MRFs are presented where seismic fragility functions are obtained both by means of SPO2FRAG and via IDA.

4.1 Structures, numerical models and set of ground motions used in the analyses

The two case-study structures used in these examples are a four-storey steel MRF and a six-storey RC-MRF. The four-storey steel MRF (Fig. 12a) belongs to a set of archetype structures designed and employed for the purposes of the NIST GCR 10-917-8 report (NIST 2010). On the other hand, the six-storey RC-MRF (Fig. 12c) was designed and used by Baltzopoulos et al. (2015), where information on member detailing can be found.

Fig. 12
figure 12

Geometry of centerline idealizations of the two MRFs and corresponding SPO curves. Four-storey steel MRF geometry (a) and SPO (b). Six-storey RC-MRF geometry (c) and SPO (d)

Both frames were modelled numerically using 2D centerline finite element representations in the OpenSEES structural analysis platform (McKenna et al. 2000). Material non-linearity was accounted for using a concentrated plasticity approach. The properties of the monotonic backbone of the plastic hinges at member edges were estimated using the regression equations suggested by Lignos and Krawinkler (2011) for the steel and those by Haselton and Deierlein (2007) for the RC frame, while a moderately pinching hysteretic law proposed by Ibarra et al. (2005) was assigned to both. Structural damping of \(\zeta = 2\%\) was assumed for the steel and \(\zeta = 5\%\) for the RC frame, modelled according to the recommendations of Zareian and Medina (2010). Geometric non-linearity in the form of \(P - \Delta\) effects was also taken into account. The SPO curves of both frames, obtained using first-mode-proportional load patterns, are shown in Fig. 12, along with the equivalent SDoF backbone of their SPO2FRAG elaboration.

For the purpose of running IDA with these numerical structural models, a set of eighty recorded accelerograms was assembled. This set includes the twenty-two ground motions of the far-field set in FEMA-P695 (FEMA 2009), which was enriched by another eighteen records from the Engineering Strong Motion database (http://esm.mi.ingv.it). Both recorded horizontal components at each station are applied to the plane structural models separately. Overall, the ground motion suite includes records from events with magnitude from 6.0 to 7.6, recorded at distances from 5 to 50 km on firm soil (EC 8 classification A, B or C), not containing relevant directivity effects and exhibiting PGA in the range from 0.12 to 0.90 g.

4.2 Comparison of IDA- and SPO2FRAG-based fragility estimates

Both structures were subjected to IDA using the set of eighty accelerograms described above, while their SPO curves were used to simultaneously run fragility estimates in SPO2FRAG. In order to limit the number of required analyses to reasonable levels, IDA was run using the hunt-and-fill algorithm proposed by Vamvatsikos and Cornell (2004). For both structures, limit state exceedance thresholds were defined in terms of IDR. Immediate occupancy, life safety and collapse prevention IDR thresholds were determined using the SPO results, by imposing the maximum plastic rotation acceptance criteria of FEMA-356 to the critical elements (first-storey columns). The fully operational threshold was set to 0.5% IDR for the RC-MRF and near the nominal yield for the steel MRF. Global collapse was left to be automatically determined by SPO2FRAG based on the predicted flat-line heights of the IDA fractiles for the RC-MRF (thus mainly corresponding to side-sway collapse) while for the steel MRF it was set to the IDR corresponding to 50% loss of strength measured on the SPO curve, by using the relevant in-built tool (e.g., Fig. 8) to capture additional modes of failure that may be expected to appear at such large drifts. Furthermore, for the steel four-storey MRF, \(\varGamma_{eff}\) according to Eq. (6) was employed due to the more flexible frame’s higher-mode sensitivity and the correction due to \(\zeta \ne 5\%\) was applied according to Eq. (10). Finally, the default choice of Eq. (8) was employed for the estimation of dispersion in both cases (see also Fig. 10).

In Fig. 13 the IDA results, for both structures, can be seen with the SPO2FRAG predictions superimposed. Additionally, the fragility curves obtained for each limit state by SPO2FRAG are presented for comparison with the same curves derived from the IDA results using Eq. (14) for the estimate of \(\beta\), where the index \(i = \{ 1, \ldots N\}\) refers to the response to the ith accelerogram.

Fig. 13
figure 13

Analytical IDA curves and corresponding SPO2FRAG predictions for the four-storey steel MRF (a) and the six-storey RC-MRF (b). Comparison of IDA- and SPO2FRAG-based lognormal fragility functions per limit state for the four-storey steel MRF (c) and the six-storey RC-MRF (d)

$$\beta = \sqrt {\frac{1}{N - 1} \cdot \sum\limits_{i = 1}^{N} {\left[ {\left( {\ln \left( {Sa_{f,i}^{LS} } \right) - \ln \left( {Sa_{f,50\% }^{LS} } \right)} \right)^{2} } \right]} }$$
(14)

The corresponding parameter estimates are provided in Tables 1 and 2. In order to get an appreciation of the effect that the choice of employing \(\varGamma_{eff}\) (a choice made for the case of the steel MRF alone) bears on these results, it is mentioned that the SPO2FRAG prediction of median intensity at collapse for the four-storey steel MRF using \(\varGamma\) is 0.60 g (compare with 0.59 g in Table 1 resulting from using \(\varGamma_{eff}\) instead). On the other hand, for the six-storey RC-MRF, the choice of using \(\varGamma_{eff}\) or \(\varGamma\) leaves the median collapse intensity practically unaffected.

Table 1 Lognormal fragility function parameter estimates from SPO2FRAG and IDA and corresponding annual limit-state exceedance rates (events/year) for the four-storey steel MRF assumed to be situated at L’Aquila
Table 2 Lognormal fragility function parameter estimates from SPO2FRAG and IDA and corresponding annual limit-state exceedance rates (events/year) for the six-storey RC-MRF assumed to be situated at Ancona

4.3 Comparing SPO2FRAG and IDA results in the context of seismic risk assessment

In order to better appreciate the agreement between the SPO2FRAG and IDA results, integration with seismic hazard was performed by plugging Eq. (3) into Eq. (1), thus obtaining estimates of the annual exceedance rate for each limit state (without considering estimation uncertainty for the sake of simplicity).

To be able to do so, it was assumed that the four-storey steel MRF is situated at a site near the Italian city of L’Aquila and the six-storey RC-MRF at a site near the Italian port-town of Ancona. For both of these sites, the seismic hazard was calculated with the aid of the REASSESS software (Iervolino et al. 2016b), assuming firm soil conditions. The hazard at these sites was calculated using the seismic source model from Meletti et al. (2008), seismicity rates from Barani et al. (2009, 2010) and the ground motion prediction equation proposed by Akkar and Bommer (2010). The annual exceedance rates of the 5%-damped spectral acceleration at \(T^{*}\) are shown in Fig. 14. The calculated annual rates of limit-state exceedance are included among the results reported in Tables 1 and 2. The good agreement between the SPO2FRAG and analytically-derived estimate is evident.

Fig. 14
figure 14

Map of Italy showing the two sites of interest and the seismic sources considered for the seismic hazard calculations (a) and calculated hazard curves to be integrated with structural fragility of the case-study examples (b): annual exceedance rate of \(Sa\left( {1.80s,5\% } \right)\) at L’Aquila and the same for \(Sa\left( {1.20s,5\% } \right)\) at Ancona. As the Akkar and Bommer (2010) ground motion prediction equation is employed, the closest available periods to \(T^{*}\) are used for each case to avoid interpolation

5 Conclusions

The present article introduced SPO2FRAG, an interactive MATLAB®-coded PBEE tool useful for approximate, computer-aided calculation of building fragility functions based on static pushover analysis. SPO2FRAG (available under a Creative Commons license: attribution—non commercial—non derived) comes as a standalone application, with various intercommunicating modules nested behind a user-friendly graphical user interface.

The software uses SPO results as a vehicle to obtain an equivalent SDoF representation of the non-linear structure and subsequently goes on to employ the SPO2IDA algorithm to avoid the need for time-consuming dynamic analysis for obtaining probabilistic estimates of seismic response. A series of specifically-developed tools are then called upon to effect and SDoF-to-MDoF response transformation, culminating in the calculation of fragility parameters and going as far as providing information related to the underlying estimation uncertainty. In the preceding sections, the workflow of a complete SPO2FRAG operation was outlined from both the user-end and the software-end. A practical user guide (tutorial) can be found online at http://wpage.unina.it/iuniervo/doc_en/SPO2FRAG.htm. Summarizing, the software is characterized by versatility, accepting as input static pushover results obtained from the structural analysis software package of the user’s choice and allowing the user to control the IDA simulation and fragility estimation procedure at its various steps and intervene where one deems necessary.

The viability of SPO2FRAG as a calculation tool was demonstrated by means of two case-study examples, where fragility functions estimated using the software were compared and found in agreement with the analytical solution involving IDA. It was therefore shown that, for regular, symmetric frames (i.e., cases of fist-mode dominated structures for which the fundamental assumptions behind static pushover analysis apply) SPO2FRAG is able to provide expedient solutions to the issue of analytical, building-specific seismic fragility estimation, under the assumptions behind IDA.