PS_cal_cpp: Response computation

View source: R/RcppExports.R

PS_cal_cppR Documentation

Response computation

Description

Compute response acceleration, pseudo-spectral acceleration (PSA), and spectral displacement

Usage

PS_cal_cpp(data, period_t, damping, time_dt, type_return)

Arguments

data

An acceleration time series array (in g)

period_t

An array of oscillator periods

damping

Damping ratio, expressed as a decimal

time_dt

Time step, in sec

type_return

A dummy variable controlling output type, set to either 1 or 2. If 1 is selected, it returns a four-row matrix with actual spectral acceleration (in g) in the first row, PSA (in g) in the second row, PSV (cm/s) in the third row, and spectral displacement (cm) in the fourth row at each of the specified periods in period_t. If 2 is selected, it returns a matrix with response displacement (cm) (number of periods in period_t by data points)

Value

The response acceleration and PSA, or spectral velocity and spectral displacement. It depends on type_return.


wltcwpf/RCTC documentation built on March 5, 2023, 11:01 p.m.