Skip to content

Do not zero N under floating ice in Interface #794

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

Open
wants to merge 4 commits into
base: landice/develop
Choose a base branch
from

Conversation

matthewhoffman
Copy link
Member

This commit removes code that zeros effective pressure beneath floating
ice in the Interface to Albany. This is unneeded because Albany zeros
beta at quadrature points, and zeroing it here at FEM nodes interferes
with that. At best it's redundant, and at worst (which is if N were to
be assigned nonzero values under floating ice), it results in
significant errors in the solve. This is also redundant because MPAS
hydro model and ocean_connection_N parameterization will already zero N
under floating ice.

The title above should be a 1 line short summary of the pull request (i.e. what the project the PR represents is intended to do).

Enter a description of this PR. This should include why this PR was created, and what it does.

Testing and relations to other Pull Requests should be added as subsequent comments.

See the below examples for more information.
MPAS-Dev/MPAS#930
MPAS-Dev/MPAS#931

This commit removes code that zeros effective pressure beneath floating
ice in the Interface to Albany.  This is unneeded because Albany zeros
beta at quadrature points, and zeroing it here at FEM nodes interferes
with that.  At best it's redundant, and at worst (which is if N were to
be assigned nonzero values under floating ice), it results in
significant errors in the solve.  This is also redundant because MPAS
hydro model and ocean_connection_N parameterization will already zero N
under floating ice.
This is needed because the friction laws that use effective pressure
need N on the first floating cell to allow for more accurate evaluation
of friction at quadrature points.
Also, this commit moves the limiting of the effective pressure from the
velocity_external routine to the calc_beta routine.
Finally, all these manipulations to N are done on the field
effectivePressureLimited to avoid messing up effectivePressure which is
used by the subglacial hydrology model (if on).
This hack sets N=mu*N before passing N to Albany.  This is hack to get
Albany to only evaluate mu*N at cell centers rather than at all
quadrature points.  This hack is used for doing a forward run where mu
is calculated from an MPAS N field.  In this configuration, the albany
input file should mu be spatially uniform with a value of 1.0.

This commit should be removed or formalized before this branch is
merged!!!
@trhille trhille self-requested a review March 9, 2021 21:56
@trhille trhille removed their request for review April 21, 2022 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant