Skip to content

energy calculation #25

@alLouarn

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.

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