FFSL linear model transport#414
Draft
James Kent (jameskent-metoffice) wants to merge 4 commits intoMetOffice:mainfrom
Draft
FFSL linear model transport#414James Kent (jameskent-metoffice) wants to merge 4 commits intoMetOffice:mainfrom
James Kent (jameskent-metoffice) wants to merge 4 commits intoMetOffice:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Summary
Sci/Tech Reviewer: cjohnson-pi
Code Reviewer:
The linear model currently uses MoL transport. Using FFSL should improve performance and mean we use the same transport scheme for linear and non-linear transport.
This PR has added the tangent linear FFSL code. I have created the control routines for horizontal and vertical transport, and then used the existing FFSL kernels. This builds on the split transport routine added in PR#149.
The linear transport has two parts, u' dot grad(ls_f) and ls_u dot grad(f'). For the u' dot grad(ls_f) term, as this is a flux-form semi-Lagrangian method, we need to first transport ls_f by ls_u, and then compute the flux using u' with this. This is documented in the code.
I have added a C12 test using FFSL (for both azspice and ex1a) and also a C224 test. The C224 test is run with a smaller dt than the MoL version - this is due to the stability of FFSL depending on the Lipschitz number and any stability fixes we use being non-linear in nature.
Results for C12 NWP Linear Model Test:
This is MoL on trunk showing u:
This is FFSL showing u:
This is MoL on trunk showing theta:
This is FFSL showing theta:
FFSL has produced larger velocities and theta values near the model top.
Code Quality Checklist
Testing
trac.log
Security Considerations
Performance Impact
AI Assistance and Attribution
Documentation
PSyclone Approval
Sci/Tech Review
(Please alert the code reviewer via a tag when you have approved the SR)
Code Review