Skip to content

Commit

Permalink
ice_dyn_shared: add 'viscous_coeffs_and_rep_pressure_T' subroutine
Browse files Browse the repository at this point in the history
Add a subroutine mimicking what 'viscous_coeffs_and_rep_pressure' does,
but at a single location.

Name it '*_T' since it's going to be used to compute the viscous
coefficients and replacement pressure at the T point.
  • Loading branch information
phil-blain committed Nov 15, 2021
1 parent c6258dc commit ed8cee9
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions cicecore/cicedynB/dynamics/ice_dyn_shared.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1448,6 +1448,61 @@ subroutine viscous_coeffs_and_rep_pressure (strength, tinyarea, &

end subroutine viscous_coeffs_and_rep_pressure


!=======================================================================
! Computes viscous coefficients and replacement pressure for stress
! calculations. Note that tensile strength is included here.
!
! Hibler, W. D. (1979). A dynamic thermodynamic sea ice model. J. Phys.
! Oceanogr., 9, 817-846.
!
! Konig Beatty, C. and Holland, D. M. (2010). Modeling landfast ice by
! adding tensile strength. J. Phys. Oceanogr. 40, 185-198.
!
! Lemieux, J. F. et al. (2016). Improving the simulation of landfast ice
! by combining tensile strength and a parameterization for grounded ridges.
! J. Geophys. Res. Oceans, 121, 7354-7368.

subroutine viscous_coeffs_and_rep_pressure_T (strength, tinyarea, &
Delta , zetax2 , &
etax2 , rep_prs , &
capping)

real (kind=dbl_kind), intent(in):: &
strength, tinyarea

real (kind=dbl_kind), intent(in):: &
Delta

logical, intent(in):: capping

real (kind=dbl_kind), intent(out):: &
zetax2, etax2, rep_prs ! 2 x visous coeffs, replacement pressure

! local variables
real (kind=dbl_kind) :: &
tmpcalc

! NOTE: for comp. efficiency 2 x zeta and 2 x eta are used in the code

! if (trim(yield_curve) == 'ellipse') then

if (capping) then
tmpcalc = strength/max(Delta,tinyarea)
else
tmpcalc = strength/(Delta + tinyarea)
endif

zetax2 = (c1+Ktens)*tmpcalc
rep_prs = (c1-Ktens)*tmpcalc*Delta
etax2 = epp2i*zetax2

! else

! endif

end subroutine viscous_coeffs_and_rep_pressure_T

!=======================================================================

! Load velocity components into array for boundary updates
Expand Down

0 comments on commit ed8cee9

Please sign in to comment.