Hello
what is effect for U and v 3-D velocity if i set Luvsponge and Ltracersponge are T or F ??
what is effect if i set Luvsponge and Ltracersponge ??
Re: what is effect if i set Luvsponge and Ltracersponge ??
The only way to really know for sure is to "Use the source, Luke". You can grep through the code and find things like:
and
These are in get_grid.F and ini_hmixcoef.F, respectively. Anyway, they are ways to set spatially varying horizontal viscosity and diffusivity coefficients.
Code: Select all
# ifndef ANA_SPONGE
IF (LuvSponge(ng)) THEN
IF (.not.find_string(var_name,n_var,'visc_factor',vindex)) THEN
IF (Master) WRITE (stdout,10) 'visc_factor', TRIM(ncname)
exit_flag=2
RETURN
END IF
END IF
# ifdef SOLVE3D
IF (ANY(LtracerSponge(:,ng))) THEN
IF (.not.find_string(var_name,n_var,'diff_factor',vindex)) THEN
IF (Master) WRITE (stdout,10) 'diff_factor', TRIM(ncname)
exit_flag=2
RETURN
END IF
END IF
# endif
# endif
Code: Select all
IF (LuvSponge(ng)) THEN
# ifdef UV_VIS2
DO i=IstrT,IendT
DO j=JstrT,JendT
visc2_r(i,j)=ABS(MIXING(ng)%visc_factor(i,j))* &
& visc2_r(i,j)
END DO
END DO