Skip to content

energy calculation #25

Description

@alLouarn

Hello,
In the 'as_spectral' function, at the line
energy = np.multiply(energy, spectrum), shouldn't it be
energy = np.multiply(1/16*energy, spectrum) ?

Indeed, since the Jonswap spectrum is calculated for Hm0 = 1, we need to update the Johnswap value by multiplying the calculated Jonswap by the true Hm0**2, ie energy/16.

I'm not sure of what I'm saying, it just appears the values obtain for energy = np.multiply(1/16*energy, spectrum) are more realistic than those obtained with the curent implementation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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