I am very new to modelling and am trying to start from the very basics by modifying the bathymetry, grid domain, and wind forcing of the UPWELLING test case to an idealized exercise for my ROMS learning.
My intent is to modify the UPWELLING test case:
(1) the domain becomes bigger
(2) the bathymetry is modified to be a flat bottom (from a sloped basin in the test case)
(3) change the initial wind stress (tau = 0.1 Pa from East) to an initially stable and steady jet flowing into the domain from the centre of boundary
So that I can hopefully produce a scenario similar to the figure attached after running.
Based on the 2013 post on 'beginner questions about modifying ROMS' (viewtopic.php?f=14&t=2922&p=11126&hilit=begginer#p11126), and from the following in ROMS manual (2018 version),
I am now able to change the grid domain (size), bottom depth, coriolis parameter etc. through the following in ana_grid.h:The subroutine get_grid or ana_grid is called by initial to set the grid arrays, the bathymetry, and the Coriolis parameter. Most of the simple test problems have their grid information specified in ana_grid.h in the directory ROMS/Functionals.
Code: Select all
#elif defined UPWELLING
Xsize=1000.0_r8*REAL(Lm(ng),r8)
Esize=1000.0_r8*REAL(Mm(ng),r8)
depth=150.0_r8
f0=-8.26E-05_r8
beta=0.0_r8
!-----------------------------------------------------------------------
! Set bathymetry (meters; positive) at RHO-points.
!-----------------------------------------------------------------------
Code: Select all
#elif defined UPWELLING
IF (NSperiodic(ng)) THEN
DO i=IstrT,IendT
IF (i.le.Lm(ng)/2) THEN
val1=REAL(i,r8)
ELSE
val1=REAL(Lm(ng)+1-i,r8)
END IF
val2=MIN(depth,84.5_r8+66.526_r8*TANH((val1-10.0_r8)/7.0_r8))
DO j=JstrT,JendT
h(i,j)=val2
END DO
END DO
ELSE IF (EWperiodic(ng)) THEN
DO j=JstrT,JendT
IF (j.le.Mm(ng)/2) THEN
val1=REAL(j,r8)
ELSE
val1=REAL(Mm(ng)+1-j,r8)
END IF
val2=MIN(depth,84.5_r8+66.526_r8*TANH((val1-10.0_r8)/7.0_r8))
DO i=IstrT,IendT
h(i,j)=val2
END DO
END DO
END IF
And additionally, for (3), I can't yet find where I can edit to change the initial wind stress (tau = 0.1 Pa from East) to an initially stable and steady jet flowing into the domain from the centre of boundary; or even to start with something easier, to just change the wind initial condition to a different value or different direction.
Many thanks in advance for any helpful words or tips to get going.