Environment: Data for user defined wave spectrum

A user-defined wave spectrum is given by a table of pairs of values of frequency $f$ and S, the spectral energy $S(f)$.

The given values of $f$ do not need to be equally-spaced. For intermediate values of $f$, OrcaFlex will obtain $S(f)$ by linear interpolation. S(f) is taken as zero for values of $f$ outside the range of the table. Your table should therefore include enough points to adequately define the shape of $S(f)$ (particularly where $S(f)$ has a wide range or high curvature) and should cover the full frequency range over which the spectrum has significant energy.

OrcaFlex reports on the data form the values $\Hs\text{ and }\Tz$ for the given spectrum. These are calculated using the standard formulae \begin{align} \Hs &= 4 m_0^{1/2} \\ \Tz &= (m_0/m_2)^{1/2} \end{align} where $m_0$ and $m_2$ are the zeroth and second spectral moments.