jonswap {resourcecode}R Documentation

JONWSAP spectrum

Description

Creates a JONWSAP density spectrum (one-sided), defined by its integral parameters.

Usage

jonswap(hs = 5, tp = 15, fmax = rscd_freq, df = NULL, gam = 3.3)

Arguments

hs

Hs (default: 5m)

tp

Period (default: 10s)

fmax

higher frequency of the spectrum or vector of frequencies (default to resourcecode frequency vector)

df

frequency step (unused if fmax=vector of frequencies)

gam

peak enhancement factor (default: 3.3)

Details

Reference :

Value

Density spectrum with corresponding parameters

Examples

S1 <- jonswap(tp = 15)
S2 <- jonswap(tp = 15, fmax = 0.95, df = 0.003)
plot(S1, type = "l", ylim = c(0, 72))
lines(S2, col = "red")
abline(v = 1 / 15)

[Package resourcecode version 0.2.1 Index]