|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.sha.imr.AbstractIMR
org.opensha.sha.imr.AttenuationRelationship
org.opensha.sha.imr.attenRelImpl.CB_2006_AttenRel
@Deprecated public class CB_2006_AttenRel
Title: CB_2006_AttenRel
Description: This implements the Attenuation Relationship developed by Campbell & Bozorgnia (2006, http://peer.berkeley.edu/lifelines/nga_docs/nov_13_06/Campbell-Bozorgnia_NGA_11-13-06.html)
Supported Intensity-Measure Parameters:
Other Independent Parameters:
NOTES: distRupMinusJB_OverRupParam is used rather than distancJBParameter because the latter should not be held constant when distanceRupParameter is changed (e.g., in the AttenuationRelationshipApplet). This includes the stipulation that the mean of 0.2-sec SA should not be less than that of PGA (the latter being given if so).
Verification :
This model has been tested with the test data provided by Campbell and Bozorgnia along with ther NGA report.
I took values as provided in the file and created a text file where each line has following info:
Period (sec) Mag FType FRV FNM ZTOR DIP Vs30 Z25 Rrup Rjb GMP Sigma Tau Chi SigTot
Each element of the line is seperated by space. I read this file and provide the input parameters in
OpenSHA with these values. Then I compare the OpenSHA result with that given by Campbell and Bozorgnia in the test data file.
I am using JUnit testing to validate the implementation of the Campbell and Bozorgnia model.
One can run the JUnit test and compare the OpenSHA results with the Campbell and Bozorgnia NGA model.
If any of the result show discrepancy then JUnit test will fail. When it fails it will
also show for which input parameters the test failed.
| Field Summary | |
|---|---|
protected static Double |
DEPTH_2pt5_WARN_MAX
Deprecated. |
protected static Double |
DEPTH_2pt5_WARN_MIN
Deprecated. |
protected static Double |
DIP_WARN_MAX
Deprecated. |
protected static Double |
DIP_WARN_MIN
Deprecated. |
protected static Double |
DISTANCE_MINUS_WARN_MAX
Deprecated. |
protected static Double |
DISTANCE_MINUS_WARN_MIN
Deprecated. |
protected static Double |
DISTANCE_RUP_WARN_MAX
Deprecated. |
protected static Double |
DISTANCE_RUP_WARN_MIN
Deprecated. |
static String |
FLT_TYPE_NORMAL
Deprecated. |
static String |
FLT_TYPE_REVERSE
Deprecated. |
static String |
FLT_TYPE_STRIKE_SLIP
Deprecated. |
protected static Double |
MAG_WARN_MAX
Deprecated. |
protected static Double |
MAG_WARN_MIN
Deprecated. |
static String |
NAME
Deprecated. |
protected static Double |
RUP_TOP_WARN_MAX
Deprecated. |
protected static Double |
RUP_TOP_WARN_MIN
Deprecated. |
static String |
SHORT_NAME
Deprecated. |
protected static Double |
VS30_WARN_MAX
Deprecated. |
protected static Double |
VS30_WARN_MIN
Deprecated. |
| Fields inherited from class org.opensha.sha.imr.AbstractIMR |
|---|
eqkRupture, eqkRuptureParams, EXCEED_PROB_DEFAULT, EXCEED_PROB_INFO, EXCEED_PROB_MAX, EXCEED_PROB_MIN, EXCEED_PROB_NAME, exceedProbParam, im, intensityMeasureChanged, listener, otherParams, propagationEffectParams, site, siteParams, supportedIMParams, url_info_string, XML_METADATA_IMT_NAME, XML_METADATA_NAME, XML_METADATA_SITE_PARAMETERS_NAME |
| Fields inherited from interface org.opensha.commons.metadata.XMLSaveable |
|---|
XML_METADATA_NAME |
| Constructor Summary | |
|---|---|
CB_2006_AttenRel(ParameterChangeWarningListener listener)
Deprecated. This initializes several ParameterList objects. |
|
| Method Summary | |
|---|---|
URL |
getInfoURL()
Deprecated. This provides a URL where more info on this model can be obtained |
double |
getMean()
Deprecated. Calculates the mean of the exceedence probability distribution. |
double |
getMean(int iper,
double vs30,
double rRup,
double distJB,
double f_rv,
double f_nm,
double mag,
double depthTop,
double depthTo2pt5kmPerSec,
boolean magSaturation,
double pgar)
Deprecated. |
String |
getName()
Deprecated. get the name of this IMR |
String |
getShortName()
Deprecated. Returns the Short Name of each AttenuationRelationship |
double |
getStdDev()
Deprecated. This returns the standard deviation (stdDev) of the intensity-measure level for the current set of parameters. |
double |
getStdDev(int iper,
String stdDevType,
String component)
Deprecated. |
protected void |
initEqkRuptureParams()
Deprecated. Creates the two Potential Earthquake parameters (magParam and fltTypeParam) and adds them to the eqkRuptureParams list. |
protected void |
initIndependentParamLists()
Deprecated. This creates the lists of independent parameters that the various dependent parameters (mean, standard deviation, exceedance probability, and IML at exceedance probability) depend upon. |
protected void |
initOtherParams()
Deprecated. Creates other Parameters that the mean or stdDev depends upon, such as the Component or StdDevType parameters. |
protected void |
initParameterEventListeners()
Deprecated. Adds the parameter change listeners. |
protected void |
initPropagationEffectParams()
Deprecated. Creates the Propagation Effect parameters and adds them to the propagationEffectParams list. |
protected void |
initSiteParams()
Deprecated. Creates the Site-Type parameter and adds it to the siteParams list. |
protected void |
initSupportedIntensityMeasureParams()
Deprecated. Creates the two supported IM parameters (PGA and SA), as well as the independenParameters of SA (periodParam and dampingParam) and adds them to the supportedIMParams list. |
void |
parameterChange(ParameterChangeEvent e)
Deprecated. This listens for parameter changes and updates the primitive parameters accordingly |
void |
resetParameterEventListeners()
Deprecated. Allows to reset the change listeners on the parameters |
protected void |
setCoeffIndex()
Deprecated. This function returns the array index for the coeffs corresponding to the chosen IMT |
void |
setEqkRupture(EqkRupture eqkRupture)
Deprecated. This sets the eqkRupture related parameters (magParam and fltTypeParam) based on the eqkRupture passed in. |
void |
setParamDefaults()
Deprecated. Allows the user to set the default parameter values for the selected Attenuation Relationship. |
protected void |
setPropagationEffectParams()
Deprecated. This sets the two propagation-effect parameters (distanceRupParam and isOnHangingWallParam) based on the current site and eqkRupture. |
void |
setSite(Site site)
Deprecated. This sets the site-related parameter (siteTypeParam) based on what is in the Site object passed in (the Site object must have a parameter with the same name as that in siteTypeParam). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
public static final String SHORT_NAME
public static final String NAME
protected static final Double MAG_WARN_MIN
protected static final Double MAG_WARN_MAX
protected static final Double DISTANCE_RUP_WARN_MIN
protected static final Double DISTANCE_RUP_WARN_MAX
protected static final Double DISTANCE_MINUS_WARN_MIN
protected static final Double DISTANCE_MINUS_WARN_MAX
protected static final Double VS30_WARN_MIN
protected static final Double VS30_WARN_MAX
protected static final Double DEPTH_2pt5_WARN_MIN
protected static final Double DEPTH_2pt5_WARN_MAX
protected static final Double DIP_WARN_MIN
protected static final Double DIP_WARN_MAX
protected static final Double RUP_TOP_WARN_MIN
protected static final Double RUP_TOP_WARN_MAX
public static final String FLT_TYPE_STRIKE_SLIP
public static final String FLT_TYPE_REVERSE
public static final String FLT_TYPE_NORMAL
| Constructor Detail |
|---|
public CB_2006_AttenRel(ParameterChangeWarningListener listener)
| Method Detail |
|---|
public void setEqkRupture(EqkRupture eqkRupture)
throws InvalidRangeException
setEqkRupture in interface IntensityMeasureRelationshipsetEqkRupture in class AbstractIMReqkRupture - The new eqkRupture value
InvalidRangeException - thrown if rake is out of bounds
public void setSite(Site site)
throws ParameterException
setSite in interface IntensityMeasureRelationshipsetSite in class AbstractIMRsite - The new site object
ParameterException - Thrown if the Site object doesn't contain a
Vs30 parameterprotected void setPropagationEffectParams()
setPropagationEffectParams in class AttenuationRelationship
protected void setCoeffIndex()
throws ParameterException
ParameterExceptionpublic double getMean()
getMean in interface ScalarIMRpublic double getStdDev()
ScalarIMR
getStdDev in interface ScalarIMRpublic void setParamDefaults()
setParamDefaults in interface IntensityMeasureRelationshipprotected void initIndependentParamLists()
protected void initSiteParams()
initSiteParams in class AttenuationRelationshipprotected void initEqkRuptureParams()
initEqkRuptureParams in class AttenuationRelationshipprotected void initPropagationEffectParams()
initPropagationEffectParams in class AttenuationRelationshipprotected void initSupportedIntensityMeasureParams()
initSupportedIntensityMeasureParams in class AttenuationRelationshipprotected void initOtherParams()
initOtherParams in class AttenuationRelationshippublic String getName()
getName in interface NamedgetName in interface IntensityMeasureRelationshipgetName in class AbstractIMRpublic String getShortName()
getShortName in interface IntensityMeasureRelationship
public double getMean(int iper,
double vs30,
double rRup,
double distJB,
double f_rv,
double f_nm,
double mag,
double depthTop,
double depthTo2pt5kmPerSec,
boolean magSaturation,
double pgar)
iper - vs30 - rRup - distJB - f_rv - f_nm - mag - depthTop - depthTo2pt5kmPerSec - magSaturation - pgar -
public double getStdDev(int iper,
String stdDevType,
String component)
iper - stdDevType - component -
public void parameterChange(ParameterChangeEvent e)
parameterChange in interface ParameterChangeListenere - ParameterChangeEventpublic void resetParameterEventListeners()
resetParameterEventListeners in interface ScalarIMRresetParameterEventListeners in class AttenuationRelationshipprotected void initParameterEventListeners()
initParameterEventListeners in class AttenuationRelationship
public URL getInfoURL()
throws MalformedURLException
AbstractIMR
getInfoURL in interface IntensityMeasureRelationshipgetInfoURL in class AbstractIMRMalformedURLException - if returned URL is not a valid URL.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||