Skip to content

Split FPMIX into NL_VSTRESS and LAGRANGIAN_MIXING - #442

Open
alperaltuntas wants to merge 1 commit into
NCAR:dev/ncarfrom
alperaltuntas:wave-nlvstress-port
Open

Split FPMIX into NL_VSTRESS and LAGRANGIAN_MIXING#442
alperaltuntas wants to merge 1 commit into
NCAR:dev/ncarfrom
alperaltuntas:wave-nlvstress-port

Conversation

@alperaltuntas

Copy link
Copy Markdown
Member

Port Bill Large's updates to his nonlocal momentum flux (FPMIX) parameterization. FPMIX previously did two things at once: add the nonlocal momentum flux increments in the boundary layer, and make the implicit vertical viscosity act on the Eulerian shear by removing the Stokes drift before the solve and restoring it afterward. These are now controlled independently:

  • NL_VSTRESS (replaces FPMIX) controls only the nonlocal stress increments
  • LAGRANGIAN_MIXING, previously an unwired placeholder that stopped the model if enabled, now selects which shear (Lagrangian or Eulerian) vertical mixing acts on.

Also add KPP_USE_ER so the Entrainment Rule boundary layer depth search can be disabled independently of STOKES_MOST (default True, preserving existing behavior)

FPMIX still works during a transition period: an explicitly set FPMIX provides the defaults for both new parameters (with a deprecation warning), so existing configurations reproduce their answers without modification; explicitly set new parameters take precedence.

Testing: pr_mom. All answers are bitwise identical.

Port Bill Large's updates to his nonlocal momentum flux (FPMIX)
parameterization.  FPMIX previously did two things at once: add the
nonlocal momentum flux increments in the boundary layer, and make the
implicit vertical viscosity act on the Eulerian shear by removing the
Stokes drift before the solve and restoring it afterward.  These are
now controlled independently:

  - NL_VSTRESS (replaces FPMIX) controls only the nonlocal stress increments
  - LAGRANGIAN_MIXING, previously an unwired placeholder that stopped
    the model if enabled, now selects which shear (Lagrangian or Eulerian)
    vertical mixing acts on.

Also add KPP_USE_ER so the Entrainment Rule boundary layer depth
search can be disabled independently of STOKES_MOST (default True,
preserving existing behavior)

FPMIX still works during a transition period: an explicitly set FPMIX
provides the defaults for both new parameters (with a deprecation
warning), so existing configurations reproduce their answers without
modification; explicitly set new parameters take precedence.

All answers are bitwise identical.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant