This simplified nonlinear procedure for the estimation of the seismic response of structures uses capacity curves and inelastic spectra. This method has been developed to be used in combination with code-based response spectra, but it is also possible to employ it for the assessment of structural response subject to ground motion records. It also has the distinct aspect of assuming an elastic-perfectly plastic force-displacement relationship in the construction of the bilinear curve. This method is part of recommendations of the Eurocode 8 (CEN, 2005) for the seismic design of new structures, and the capacity curves are usually simplified by a elasto-perfectly plastic relationship.
Note: To run the code in a cell:
SHIFT+ENTER
on your keyboard or press the play button () in the toolbar above.
In [ ]:
from rmtk.vulnerability.derivation_fragility.hybrid_methods.N2 import N2Method
from rmtk.vulnerability.common import utils
%matplotlib inline
In order to use this methodology, it is necessary to provide one (or a group) of capacity curves, defined according to the format described in the RMTK manual.
Please provide the location of the file containing the capacity curves using the parameter capacity_curves_file
.
In [ ]:
capacity_curves_file = "../../../../../../rmtk_data/capacity_curves_Sa-Sd.csv"
In [ ]:
capacity_curves = utils.read_capacity_curves(capacity_curves_file)
utils.plot_capacity_curves(capacity_curves)
Please indicate the path to the folder containing the ground motion records to be used in the analysis through the parameter gmrs_folder
.
Note: Each accelerogram needs to be in a separate CSV file as described in the RMTK manual.
The parameters minT
and maxT
are used to define the period bounds when plotting the spectra for the provided ground motion fields.
In [ ]:
gmrs_folder = "../../../../../../rmtk_data/accelerograms"
minT, maxT = 0.1, 2.0
gmrs = utils.read_gmrs(gmrs_folder)
#utils.plot_response_spectra(gmrs, minT, maxT)
Please provide the path to your damage model file using the parameter damage_model_file
in the cell below.
The damage types currently supported are: capacity curve dependent
, spectral displacement
and interstorey drift
. If the damage model type is interstorey drift
the user can provide the pushover curve in terms of Vb-dfloor to be able to convert interstorey drift limit states to roof displacements and spectral displacements, otherwise a linear relationship is assumed.
In [ ]:
damage_model_file = "../../../../../../rmtk_data/damage_model.csv"
damage_model = utils.read_damage_model(damage_model_file)
In [ ]:
damping_ratio = 0.05
In [ ]:
PDM, Sds = N2Method.calculate_fragility(capacity_curves, gmrs, damage_model, damping_ratio)
The following parameters need to be defined in the cell below in order to fit lognormal CDF fragility curves to the damage probability matrix obtained above:
IMT
: This parameter specifies the intensity measure type to be used. Currently supported options are "PGA"
, "Sd"
and "Sa"
.period
: This parameter defines the time period of the fundamental mode of vibration of the structure.regression_method
: This parameter defines the regression method to be used for estimating the parameters of the fragility functions. The valid options are "least squares" and "max likelihood".
In [ ]:
IMT = "Sa"
period = 0.3
regression_method = "least squares"
In [ ]:
fragility_model = utils.calculate_mean_fragility(gmrs, PDM, period, damping_ratio,
IMT, damage_model, regression_method)
In [ ]:
minIML, maxIML = 0.01, 3.00
In [ ]:
utils.plot_fragility_model(fragility_model, minIML, maxIML)
# utils.plot_fragility_stats(fragility_statistics,minIML,maxIML)
The derived parametric fragility functions can be saved to a file in either CSV format or in the NRML format that is used by all OpenQuake input models. The following parameters need to be defined in the cell below in order to save the lognormal CDF fragility curves obtained above:
taxonomy
: This parameter specifies a taxonomy string for the the fragility functions.minIML
and maxIML
: These parameters define the bounds of applicability of the functions.output_type
: This parameter specifies the file format to be used for saving the functions. Currently, the formats supported are "csv" and "nrml".
In [ ]:
taxonomy = "RC"
minIML, maxIML = 0.01, 3.00
output_type = "csv"
output_path = "../../../../../../rmtk_data/output/"
In [ ]:
utils.save_mean_fragility(taxonomy, fragility_model, minIML, maxIML, output_type, output_path)
A vulnerability model can be derived by combining the set of fragility functions obtained above with a consequence model. In this process, the fractions of buildings in each damage state are multiplied by the associated damage ratio from the consequence model, in order to obtain a distribution of loss ratio for each intensity measure level.
The following parameters need to be defined in the cell below in order to calculate vulnerability functions using the above derived fragility functions:
cons_model_file
: This parameter specifies the path of the consequence model file.imls
: This parameter specifies a list of intensity measure levels in increasing order at which the distribution of loss ratios are required to be calculated.distribution_type
: This parameter specifies the type of distribution to be used for calculating the vulnerability function. The distribution types currently supported are "lognormal", "beta", and "PMF".
In [ ]:
cons_model_file = "../../../../../../rmtk_data/cons_model.csv"
imls = [0.05, 0.10, 0.15, 0.20, 0.25, 0.30, 0.35, 0.40, 0.45, 0.50,
0.60, 0.70, 0.80, 0.90, 1.00, 1.20, 1.40, 1.60, 1.80, 2.00,
2.20, 2.40, 2.60, 2.80, 3.00, 3.20, 3.40, 3.60, 3.80, 4.00]
distribution_type = "lognormal"
In [ ]:
cons_model = utils.read_consequence_model(cons_model_file)
vulnerability_model = utils.convert_fragility_vulnerability(fragility_model, cons_model,
imls, distribution_type)
In [ ]:
utils.plot_vulnerability_model(vulnerability_model)
The derived parametric or nonparametric vulnerability function can be saved to a file in either CSV format or in the NRML format that is used by all OpenQuake input models. The following parameters need to be defined in the cell below in order to save the lognormal CDF fragility curves obtained above:
taxonomy
: This parameter specifies a taxonomy string for the the fragility functions.output_type
: This parameter specifies the file format to be used for saving the functions. Currently, the formats supported are "csv" and "nrml".
In [ ]:
taxonomy = "RC"
output_type = "csv"
output_path = "../../../../../../rmtk_data/output/"
In [ ]:
utils.save_vulnerability(taxonomy, vulnerability_model, output_type, output_path)