Skip to contents

Newmark displacement for a single submodel and scenario

Usage

fitDnModel(uhs, ky, Ts, Mw = 6.5, NS = 30L, IDn, NFC = "D100", pulse = FALSE)

Arguments

uhs

A quantile data.table with columns Tn, p, Sa, or an analytic finite-mixture data.table with columns Tn, k, muLn, sigmaLn, and w. OpenQuake fractiles must first be calibrated with fitSaLognormal(); the quantile form is for spectra already represented by quantiles.

ky

numeric scalar, yield acceleration (g)

Ts

numeric scalar, fundamental period (s)

Mw

numeric scalar, moment magnitude

NS

integer, Monte Carlo samples

IDn

character, submodel identifier

NFC

character, near-fault component selector for model BM19: "D100" (maximum component, default) or "D50". Ignored by all other submodels.

pulse

logical, near-fault forward-directivity pulse motion declared by the analyst (BM19 only; see ?Dn_BM19). Default FALSE.

Value

data.table with columns p, Dn, IDn. Dn in cm.

Examples

if (FALSE) { # \dontrun{
uhs <- data.table::fread(
  system.file("extdata", "uhs.csv", package = "newmark"))
fitDnModel(uhs = uhs, ky = 0.1, Ts = 0.3, Mw = 7.5, NS = 100,
           IDn = "AM88")
} # }