-
Notifications
You must be signed in to change notification settings - Fork 542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Charnock cap #1225
Charnock cap #1225
Conversation
Authored by: ukmo-nievesvaliente
Thanks for these updates @ukmo-ccbunney I'll review and start regtests |
I forgot to mention that there will be changes to the |
Hold fire on the regression tests @JessicaMeixner-NOAA - I am seeing some inconsistencies with the minimum charnock value in some tests where it should not be altered. |
@ukmo-ccbunney I have run the regtests already sorry I forgot to post the updates yesterday. Since I've already run them, in case this is helpful: I had seen lots of mod_def and grid.out diffs, but had not yet done the careful check to make sure it was just ST4. I was going to compare with the diffs you got. Let me know when you're ready for me to run again or look more closely, etc. |
So - mostly it is just expected mod_def differences (addition of extra CHACAP variables) |
@ukmo-ccbunney yes, the tp2.14 has unexpected answer changes. The machine i ran the regtests is offline for maitence so I can't look at files beyond these logs, but I see a lot of 0 -> 0.0095 in the answer diffs. |
Yes - similarly for me. I can confirm that all differences are expected (just mod_def change), except for
I am investigating the ww3_tp2.14 differences! |
@ukmo-ccbunney it sounds to me that the changes in the regtests are related to the intitial charnock CHA0=AALPHA that I think is 0.0095 maybe related to L1945? |
|
@ukmo-nievesvaliente I think I have found the issue. The results now look ok for |
All tests are now B4B (ignoring the mod_def changes), except the usual suspects and ww3_tp2.21. |
@ukmo-ccbunney I did not originally get any diffs beyond mod_defs on tp2.21. I'll do some additional tests with the updates and let you know! |
For context, when I run using the GNU compiler I get differences in ww3_tp2.21. |
I'll run both gnu and intel tests, including gnu on the machine where I tend to get more differences than most. |
For intel the diffs are here:
I ran gnu tests on hercules, which usually gives me the most diffs, and for the tp2.21 tests only the mod_defs and grid.out was different:
I have one other machine I can run gnu on if you think that'd be helpful @ukmo-ccbunney |
Greaty- thanks for that @JessicaMeixner-NOAA
Only if you have time. Otherwise I am happy with the regtest results. |
I'll run them as we give @ukmo-nievesvaliente and @mickaelaccensi a little more time to review, but I think this PR is good to go. |
Thanks for adding the functionality to the code @ukmo-ccbunney! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only the expected changes for both intel and gnu on hera for us. Also did not get changes in 2.21 on hercules with gnu like @ukmo-ccbunney saw. I do know others have had some machine related issues so there's likely a lingering bug somewhere we need to find, but it is unrelated to this PR.
@mickaelaccensi I'm going ot be merging this PR, but if you review later and discover issues, please let us know and we'll address them.
Pull Request Summary
Provides optional cap on charnock and sea surface drag parameters in ST4 physics.
The original code changes were made and tested by @ukmo-nievesvaliente.
Description
A new functional form for the sea surface drag following ecWAM example to mimic observations from Donelan (2018) is introduced in ST4 physics. This model change tries to be also consistent with the modified version of COARE 4.0 that is currently in Met Office Unified Model.
The functional form calculates the minimum Charnock coefficient and applies a reduction for winds above a specified threshold.
The functional form is activated by the
CAPCHA
namelist parameter inSIN4
and controlled by the following new parameters:UCAP
: Wind speed threshold (default = 30m/s)SIGMAUCAP
: Width of functional form (default = 10)CHA0
: Initial Charnock coefficient (default = ALPHA0)CHAMIN
: Minimum Charnock value (default = 0.0001)Note: The new functional form ('CAPCHA=1
) is only available when explicit stress calculations are used in ST4 (not lookup tables); i.e.
SINTABLE=0`A new regression test has been added to
ww3_ts1
to test this feature.Issue(s) addressed
N/A
Commit Message
Functional form of Charnock calculation in ST4.
Authored by: @ukmo-nievesvaliente
Check list
Testing
Example single point growth experiment (from ww3_ts1) showing cap reducing the charnock parameter as wind speed approaches threshold of 28m/s:
[Regtest results to follow]