Skip to content

SeaState: Small change in WaveTp logic#3231

Merged
andrew-platt merged 2 commits intoOpenFAST:devfrom
RBergua:SeaState_WaveTp_logic
Mar 5, 2026
Merged

SeaState: Small change in WaveTp logic#3231
andrew-platt merged 2 commits intoOpenFAST:devfrom
RBergua:SeaState_WaveTp_logic

Conversation

@RBergua
Copy link
Copy Markdown
Contributor

@RBergua RBergua commented Mar 3, 2026

This PR is ready to be merged.

Feature or improvement description
In SeaState, the peak-spectral period parameter (WaveTp) should only play a role when using WaveMod = 1 or 2 (regular or irregular waves).
image

However, nowadays, there is a check regardless of the wave option selected. For example, when using WaveMod = 5 (externally generated wave-elevation time series), I get:
image

This modification checks for a valid WaveTp only if WaveMod = 1 or 2.

@RBergua RBergua requested a review from luwang00 March 3, 2026 22:55
@RBergua RBergua added the Module: SeaState SeaState module for wave data generation label Mar 3, 2026
@andrew-platt
Copy link
Copy Markdown
Collaborator

Does this apply to 4.2 as well?

@RBergua
Copy link
Copy Markdown
Contributor Author

RBergua commented Mar 4, 2026

Yes, it applies to any SeaState. This condition should have been always there.

@andrew-platt
Copy link
Copy Markdown
Collaborator

Backport to 4.2.1

@andrew-platt andrew-platt self-assigned this Mar 4, 2026
@luwang00
Copy link
Copy Markdown
Contributor

luwang00 commented Mar 4, 2026

@RBergua Thanks for fixing this. It looks good to me. Maybe change to 0.0_ReKi as @deslaughter suggested before.

@RBergua
Copy link
Copy Markdown
Contributor Author

RBergua commented Mar 4, 2026

Good point! I just updated it to 0.0_SiKi to be aligned with the Registry. Thanks, @luwang00!

@andrew-platt andrew-platt merged commit d0cc13d into OpenFAST:dev Mar 5, 2026
13 checks passed
andrew-platt added a commit that referenced this pull request Mar 5, 2026
This was referenced Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module: SeaState SeaState module for wave data generation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants