Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-lib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Maintenance scheduled for Thursday, April 10, from 5 PM to 6 PM ET.
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-lib
Commits
e1da043e
Commit
e1da043e
authored
2 years ago
by
Powers, Peter M.
Browse files
Options
Downloads
Patches
Plain Diff
kuehn seattle
parent
9e868a2f
No related branches found
No related tags found
1 merge request
!282
Gmm updates
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/gov/usgs/earthquake/nshmp/gmm/Gmm.java
+7
-0
7 additions, 0 deletions
src/main/java/gov/usgs/earthquake/nshmp/gmm/Gmm.java
src/main/java/gov/usgs/earthquake/nshmp/gmm/KuehnEtAl_2020.java
+36
-32
36 additions, 32 deletions
...in/java/gov/usgs/earthquake/nshmp/gmm/KuehnEtAl_2020.java
with
43 additions
and
32 deletions
src/main/java/gov/usgs/earthquake/nshmp/gmm/Gmm.java
+
7
−
0
View file @
e1da043e
...
@@ -533,6 +533,13 @@ public enum Gmm {
...
@@ -533,6 +533,13 @@ public enum Gmm {
KuehnEtAl_2020
.
COEFFS
,
KuehnEtAl_2020
.
COEFFS
,
KuehnEtAl_2020
.
CONSTRAINTS_INTERFACE
),
KuehnEtAl_2020
.
CONSTRAINTS_INTERFACE
),
/** @see KuehnEtAl_2020 */
KBCG_20_SEATTLE_M9_INTERFACE_BASIN
(
KuehnEtAl_2020
.
SeattleInterfaceBasin
.
class
,
KuehnEtAl_2020
.
SeattleInterfaceBasin
.
NAME
,
KuehnEtAl_2020
.
COEFFS
,
KuehnEtAl_2020
.
CONSTRAINTS_INTERFACE
),
/** @see KuehnEtAl_2020 */
/** @see KuehnEtAl_2020 */
KBCG_20_CASCADIA_SLAB_BASIN
(
KBCG_20_CASCADIA_SLAB_BASIN
(
KuehnEtAl_2020
.
CascadiaSlabBasin
.
class
,
KuehnEtAl_2020
.
CascadiaSlabBasin
.
class
,
...
...
This diff is collapsed.
Click to expand it.
src/main/java/gov/usgs/earthquake/nshmp/gmm/KuehnEtAl_2020.java
+
36
−
32
View file @
e1da043e
...
@@ -87,6 +87,10 @@ public abstract class KuehnEtAl_2020 implements GroundMotionModel {
...
@@ -87,6 +87,10 @@ public abstract class KuehnEtAl_2020 implements GroundMotionModel {
*
*
* Value of k2 (hard-coded in Python) for PGV is a typo, the value should be
* Value of k2 (hard-coded in Python) for PGV is a typo, the value should be
* -1.955 but -1.995 is used
* -1.955 but -1.995 is used
*
* TODO cascadia automatically include kuehn seattle behavior, seattle flag
* only for M9 : means by default cascadia interface is looking for site term
*
*/
*/
static
final
String
NAME
=
"Kuehn et al. (2020)"
;
static
final
String
NAME
=
"Kuehn et al. (2020)"
;
...
@@ -180,34 +184,14 @@ public abstract class KuehnEtAl_2020 implements GroundMotionModel {
...
@@ -180,34 +184,14 @@ public abstract class KuehnEtAl_2020 implements GroundMotionModel {
θ1
=
(
slab
)
?
coeffs
.
get
(
"theta_1_slab_reg_Ca"
)
:
coeffs
.
get
(
"theta_1_if_reg_Ca"
);
θ1
=
(
slab
)
?
coeffs
.
get
(
"theta_1_slab_reg_Ca"
)
:
coeffs
.
get
(
"theta_1_if_reg_Ca"
);
θ6_2
=
coeffs
.
get
(
"theta_6_2_reg_Ca"
);
θ6_2
=
coeffs
.
get
(
"theta_6_2_reg_Ca"
);
θ7
=
coeffs
.
get
(
"theta_7_reg_Ca"
);
θ7
=
coeffs
.
get
(
"theta_7_reg_Ca"
);
// if (basin == Basin.SEATTLE) {
// θ11 = 0;
// θ11S = coeffs.get("mean_residual_Seattle_basin");
// θ12 = 0;
// } else {
// θ11 = coeffs.get("intercept_Ca");
// θ11S = coeffs.get("mean_residual_Seattle_basin");
// θ12 = coeffs.get("slope_Ca");
// }
}
else
if
(
zone
==
ALASKA
)
{
}
else
if
(
zone
==
ALASKA
)
{
θ1
=
(
slab
)
?
coeffs
.
get
(
"theta_1_slab_reg_Al"
)
:
coeffs
.
get
(
"theta_1_if_reg_Al"
);
θ1
=
(
slab
)
?
coeffs
.
get
(
"theta_1_slab_reg_Al"
)
:
coeffs
.
get
(
"theta_1_if_reg_Al"
);
θ6_2
=
coeffs
.
get
(
"theta_6_2_reg_Al"
);
θ6_2
=
coeffs
.
get
(
"theta_6_2_reg_Al"
);
θ7
=
coeffs
.
get
(
"theta_7_reg_Al"
);
θ7
=
coeffs
.
get
(
"theta_7_reg_Al"
);
// θ11 = 0;
}
else
{
// global
// θ11S = 0;
// θ12 = 0;
}
else
{
// global
θ1
=
(
slab
)
?
coeffs
.
get
(
"mu_theta_1_slab"
)
:
coeffs
.
get
(
"mu_theta_1_if"
);
θ1
=
(
slab
)
?
coeffs
.
get
(
"mu_theta_1_slab"
)
:
coeffs
.
get
(
"mu_theta_1_if"
);
θ6_2
=
coeffs
.
get
(
"mu_theta_6"
);
θ6_2
=
coeffs
.
get
(
"mu_theta_6"
);
θ7
=
coeffs
.
get
(
"mu_theta_7"
);
θ7
=
coeffs
.
get
(
"mu_theta_7"
);
// θ11 = 0;
// θ11S = 0;
// θ12 = 0;
}
}
θ10
=
0.0
;
// Table 4.1: fixed to 0
θ10
=
0.0
;
// Table 4.1: fixed to 0
...
@@ -252,12 +236,12 @@ public abstract class KuehnEtAl_2020 implements GroundMotionModel {
...
@@ -252,12 +236,12 @@ public abstract class KuehnEtAl_2020 implements GroundMotionModel {
public
LogicTree
<
GroundMotion
>
calc
(
GmmInput
in
)
{
public
LogicTree
<
GroundMotion
>
calc
(
GmmInput
in
)
{
double
pgaRef
=
exp
(
calcPgaRef
(
coeffsPGA
,
in
.
Mw
,
in
.
rRup
,
in
.
zTor
));
double
pgaRef
=
exp
(
calcPgaRef
(
coeffsPGA
,
in
.
Mw
,
in
.
rRup
,
in
.
zTor
));
double
μ
=
calcMean
(
coeffs
,
basin
(),
seattle
(),
double
μ
=
calcMean
(
coeffs
,
slab
(),
basin
(),
seattle
(),
in
.
Mw
,
in
.
rRup
,
in
.
zTor
,
in
.
vs30
,
in
.
z2p5
,
pgaRef
);
in
.
Mw
,
in
.
rRup
,
in
.
zTor
,
in
.
vs30
,
in
.
z2p5
,
pgaRef
);
// short periods can't be lower than PGA
// short periods can't be lower than PGA
if
(
coeffs
.
imt
.
isSA
()
&&
coeffs
.
imt
.
period
()
<=
0.1
)
{
if
(
coeffs
.
imt
.
isSA
()
&&
coeffs
.
imt
.
period
()
<=
0.1
)
{
double
μPga
=
calcMean
(
coeffsPGA
,
basin
(),
seattle
(),
double
μPga
=
calcMean
(
coeffsPGA
,
slab
(),
basin
(),
seattle
(),
in
.
Mw
,
in
.
rRup
,
in
.
zTor
,
in
.
vs30
,
in
.
z2p5
,
pgaRef
);
in
.
Mw
,
in
.
rRup
,
in
.
zTor
,
in
.
vs30
,
in
.
z2p5
,
pgaRef
);
μ
=
max
(
μ
,
μPga
);
μ
=
max
(
μ
,
μPga
);
}
}
...
@@ -288,6 +272,7 @@ public abstract class KuehnEtAl_2020 implements GroundMotionModel {
...
@@ -288,6 +272,7 @@ public abstract class KuehnEtAl_2020 implements GroundMotionModel {
private
static
double
calcMean
(
private
static
double
calcMean
(
Coefficients
c
,
Coefficients
c
,
boolean
slab
,
boolean
basin
,
boolean
basin
,
boolean
seattle
,
boolean
seattle
,
double
Mw
,
double
Mw
,
...
@@ -302,7 +287,7 @@ public abstract class KuehnEtAl_2020 implements GroundMotionModel {
...
@@ -302,7 +287,7 @@ public abstract class KuehnEtAl_2020 implements GroundMotionModel {
double
fDepth
=
depthTerm
(
c
,
zTor
);
double
fDepth
=
depthTerm
(
c
,
zTor
);
double
fAtten
=
arcCrossingTerm
(
c
,
rRup
);
double
fAtten
=
arcCrossingTerm
(
c
,
rRup
);
double
fSite
=
siteAmpTerm
(
c
,
vs30
,
pgaRef
);
double
fSite
=
siteAmpTerm
(
c
,
vs30
,
pgaRef
);
double
fBasin
=
basin
?
basinTerm
(
c
,
vs30
,
z2p5
,
seattle
)
:
0.0
;
double
fBasin
=
basin
?
basinTerm
(
c
,
vs30
,
z2p5
,
slab
,
seattle
)
:
0.0
;
return
c
.
θ1
+
fMag
+
fGeom
+
fDepth
+
fAtten
+
fSite
+
fBasin
;
return
c
.
θ1
+
fMag
+
fGeom
+
fDepth
+
fAtten
+
fSite
+
fBasin
;
}
}
...
@@ -375,6 +360,7 @@ public abstract class KuehnEtAl_2020 implements GroundMotionModel {
...
@@ -375,6 +360,7 @@ public abstract class KuehnEtAl_2020 implements GroundMotionModel {
Coefficients
c
,
Coefficients
c
,
double
vs30
,
double
vs30
,
double
z2p5
,
double
z2p5
,
boolean
slab
,
boolean
seattle
)
{
boolean
seattle
)
{
if
(
Double
.
isNaN
(
z2p5
))
{
if
(
Double
.
isNaN
(
z2p5
))
{
...
@@ -383,15 +369,15 @@ public abstract class KuehnEtAl_2020 implements GroundMotionModel {
...
@@ -383,15 +369,15 @@ public abstract class KuehnEtAl_2020 implements GroundMotionModel {
double
z2p5m
=
z2p5
*
1000.0
;
double
z2p5m
=
z2p5
*
1000.0
;
double
δlnZ
=
log
(
z2p5m
)
-
basinZref
(
vs30
);
double
δlnZ
=
log
(
z2p5m
)
-
basinZref
(
vs30
);
double
fb
=
c
.
θ11
+
c
.
θ12
*
δlnZ
;
double
fb
=
0.0
;
// Seattle cap
fb
=
Math
.
min
(
fb
,
c
.
θ11S
);
// Seattle cap
if
(
seattle
)
{
fb
=
c
.
θ11S
;
if
(
seattle
&&
z2p5
>
6.0
&
c
.
imt
.
period
()
>
1.9
)
{
if
(!
slab
&&
z2p5
>
6.0
&
c
.
imt
.
period
()
>
1.9
)
{
double
δz2p5adj
=
log
(
z2p5m
)
-
LN_Z2P5_REF_KUEHN
;
fb
=
log
(
2.0
);
// M9 scaling
double
m9adj
=
log
(
2.0
)
-
(
c
.
θ11
+
c
.
θ12
*
δz2p5adj
);
}
fb
+=
m9adj
;
}
else
{
fb
=
Math
.
min
(
c
.
θ11
+
c
.
θ12
*
δlnZ
,
c
.
θ11S
);
// Seattle cap
}
}
return
fb
;
return
fb
;
}
}
...
@@ -532,6 +518,24 @@ public abstract class KuehnEtAl_2020 implements GroundMotionModel {
...
@@ -532,6 +518,24 @@ public abstract class KuehnEtAl_2020 implements GroundMotionModel {
}
}
}
}
static
final
class
SeattleInterfaceBasin
extends
CascadiaInterface
{
static
final
String
NAME
=
CascadiaInterface
.
NAME
+
" (Seattle basin)"
;
SeattleInterfaceBasin
(
Imt
imt
)
{
super
(
imt
);
}
@Override
boolean
basin
()
{
return
true
;
}
@Override
boolean
seattle
()
{
return
true
;
}
}
static
final
class
CascadiaSlabBasin
extends
CascadiaSlab
{
static
final
class
CascadiaSlabBasin
extends
CascadiaSlab
{
static
final
String
NAME
=
CascadiaSlab
.
NAME
+
" (basin)"
;
static
final
String
NAME
=
CascadiaSlab
.
NAME
+
" (basin)"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment