Skip to content

Function to convert from Te to Tp for spectrum creation #209

@mbruggs

Description

@mbruggs

Describe the feature:

There are scenarios in which we have an energy period (Te) and would like to create, for example, a JONSWAP spectrum. The functions for creating the spectrum use Tp rather Te, meaning a means of obtaining Tp for the target spectrum is needed.

DNV 205 (link) has approximates for the JONSWAP spectral moments in section 3.5.5.6 in terms of Hs and Tp

$$ M_{-1} = \frac{1}{16} H_s^2 \omega_p^{-1} \frac{4.2 + \gamma}{5 + \gamma} $$

$$ M_0 = \frac{1}{16} H_s^2 $$

We also have

$$ T_e = 2\pi\frac{M_{-1}}{M_0} $$

Combining the above, we then have

$$ T_e = T_p \frac{4.2 + \gamma}{5 + \gamma} $$

which we can use to get Tp from a Te.

Is this something you might be interesting in having in MHKit? I'm happy to contribute the code but wanted to gauge interest before opening a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions