Skip to content

SeaState: Logic for near-surface current#3268

Merged
andrew-platt merged 1 commit intoOpenFAST:rc-5.0.1from
RBergua:SeaState-current-logic
Mar 17, 2026
Merged

SeaState: Logic for near-surface current#3268
andrew-platt merged 1 commit intoOpenFAST:rc-5.0.1from
RBergua:SeaState-current-logic

Conversation

@RBergua
Copy link
Contributor

@RBergua RBergua commented Mar 16, 2026

This PR is ready to be merged

Feature or improvement description
SeaState has three sub-models for current. From readthedocs:

image

In my case, I wanted to use only the depth-independent sub-model. So, I defined the input file as follows:
image

However, OpenFAST aborted complaining that the near-surface current reference depth (CurrNSRef) [sub-model that I'm not using] had to be greater than zero.
image

This is because SeaState is using an internal logic that checks some input parameters even if there any not used.

The proposed change should fix this by using a logic that applies only if the user is using the near-surface sub-model. For example: checking for the near-surface current reference depth, only if the near-surface current velocity at still water level is different than zero.

@RBergua RBergua requested a review from luwang00 March 16, 2026 05:18
@RBergua RBergua added the Module: SeaState SeaState module for wave data generation label Mar 16, 2026
@andrew-platt andrew-platt self-assigned this Mar 17, 2026
@andrew-platt andrew-platt changed the base branch from dev to rc-5.0.1 March 17, 2026 19:25
@andrew-platt andrew-platt added this to the v5.0.1 milestone Mar 17, 2026
@andrew-platt andrew-platt merged commit dba0abe into OpenFAST:rc-5.0.1 Mar 17, 2026
26 checks passed
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