what is effect if i set Luvsponge and Ltracersponge ??

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
kobl1201
Posts: 60
Joined: Tue Nov 04, 2014 8:29 pm
Location: Kongju National Universty

what is effect if i set Luvsponge and Ltracersponge ??

#1 Unread post by kobl1201 »

Hello

what is effect for U and v 3-D velocity if i set Luvsponge and Ltracersponge are T or F ??

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: what is effect if i set Luvsponge and Ltracersponge ??

#2 Unread post by kate »

The only way to really know for sure is to "Use the source, Luke". You can grep through the code and find things like:

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
and

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
These are in get_grid.F and ini_hmixcoef.F, respectively. Anyway, they are ways to set spatially varying horizontal viscosity and diffusivity coefficients.

Post Reply