Skip to content

Commit

Permalink
Bugfix for Issue #1, finished changing variable name from Sa_calc to …
Browse files Browse the repository at this point in the history
…SaCalc. Other minor documentation updates.
  • Loading branch information
Madeleine Flint committed Jun 15, 2020
1 parent 5341d73 commit a33df66
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
12 changes: 4 additions & 8 deletions M2_M3_Main_Run_All.m
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,6 @@
EDP = importdata(['Data/' EDPname struc '.mat']);
RD_c = mu_RD_c(l);

% [Sas(:,l), EDPs(:,:,l), pd_Cs(:,l), paramNCs(:,:,l), ...
% fragSs(:,:,:,l), DamageProbs(:,:,:,l), ...
% Sa_calc, EL_PPs(:,:,l), EL_PP_cases(:,l), EAL_S(:,l),...
% EAL_NS(:,l), EAL_C(:,l)] = M2_PBEE_Simple_Orig(struc, RD_c, Years);
[Sas(:,l), EDPs(:,:,l), pd_Cs(:,l), paramNCs(:,:,l), ...
fragSs(:,:,:,l), DamageProbs(:,:,:,l), ...
EL_PPs(:,:,l), EL_PP_cases(:,l), EAL_S(:,l),...
Expand Down Expand Up @@ -956,13 +952,13 @@
Lstyle = Lstyles{l};
for k = 1:numPP % PP types
for kk = 1:numDS
M2_Plot_Fragility(xlims(kk,:),Sa_calc,...
reshape(fragSs(:,kk,PPcols(l,:),l),length(Sa_calc),3),...
M2_Plot_Fragility(xlims(kk,:),SaCalc,...
reshape(fragSs(:,kk,PPcols(l,:),l),length(SaCalc),3),...
Lstyle, colors(k,:), DSnames{kk},...
[PPnames{k}, num2str(RD_c)],struc,true,true,true)
end
M2_Plot_Fragility(xlims(numDS+1,:),Sa_calc,...
reshape(DamageProbs(:,numDS+1,PPcols(l,:),l),length(Sa_calc),3),...
M2_Plot_Fragility(xlims(numDS+1,:),SaCalc,...
reshape(DamageProbs(:,numDS+1,PPcols(l,:),l),length(SaCalc),3),...
Lstyle, colors(k,:), DSnames{5},...
[PPnames{k},num2str(RD_c)],struc,true,true,true)
end
Expand Down
3 changes: 2 additions & 1 deletion M2_Push2SDOF_concrete_normalized.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
%this script trasnform a pushover curve to a trilinear SDOF backbone
% Transforms a pushover curve to a trilinear SDOF backbone
% written by Mohsen Zaker-Esteghamati
clear
clc
pushdata=csvread('4story_concrete.csv');
Expand Down
5 changes: 3 additions & 2 deletions M2_Push2SDOF_steel.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
%this script trasnform a pushover curve to a trilinear SDOF backbone
% Transforms a pushover curve to a trilinear SDOF backbone
% written by Mohsen Zaker-Esteghamati
clear
clc
pushdata=csvread('4story_steel.csv');
Expand All @@ -18,7 +19,7 @@
PushArea=trapz(xArea,yArea);
%%

%to get the linear part slop
%to get the linear part slope
k=(2*pi/1.32)^2;
Fy=max(pushdata(:,2));

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ Scripts are named according to their module of application, M1, M2, or M3. Data

## Credits and Sources
* M1: [Haseeb Tahir, MS Thesis (2016), Virginia Tech](http://hdl.handle.net/10919/71794)
* M1: DesignSafe repository for Tahir
* M1:[Seismic, Hurricane, and Tsunami Vulnerability Database and Pinch-Point Taxonomy for Mid-Rise Commercial Buildings Repository](https://doi.org/10.17603/ds2-09nn-ze82)
* M1/M2: [USGS Unified Hazard Tool](https://earthquake.usgs.gov/hazards/interactive/)
* M2: [Charleston, SC hazard and GM package](http://www.magma.geos.vt.edu/vtso/anonftp/scdot/report-FWHA-SC-06-09.pdf)
* M2: special moment-resisting frames from Blume Center Technical Reports: concrete from [Haselton and Deierlein (2007)](http://purl.stanford.edu/ny266sf1883); steel from [Lignos and Krawinkler (2012)](http://purl.stanford.edu/yg701cw5473)
Expand Down

0 comments on commit a33df66

Please sign in to comment.