Search found 14 matches

by dcherian
Mon Feb 19, 2018 4:39 am
Forum: ROMS Discussion
Topic: zeta gradually increasing over the entire surface
Replies: 1
Views: 1845

Re: zeta gradually increasing over the entire surface

Open boundaries are not well posed. I found that I had to nudge at the open boundaries to conserve volume in the domain. I don't think this is a pressure gradient problem, but an open boundaries problem. The same simulation with closed boundaries should not have this trouble and you can judge the ma...
by dcherian
Tue Nov 28, 2017 5:35 am
Forum: ROMS Discussion
Topic: unrealistic pressure gradient forming along bathymetry
Replies: 10
Views: 10993

Re: unrealistic pressure gradient forming along bathymetry

Sonaljit, I had similar trouble in my idealized simulations. In my case, the problem happened where the vertical grid spacing was largest (and s-surfaces were sloping; i.e. classic conditions for pressure gradient error). Reducing vertical grid spacing increased the amount of time it took the noise ...
by dcherian
Wed May 28, 2014 3:45 pm
Forum: ROMS Problems
Topic: Numerical instability at edge of slope
Replies: 2
Views: 3675

Re: Numerical instability at edge of slope

Hi Austin, My background state is just flat isopycnals, N2 = constant. You are right, I see the same trouble with no forcing and flat isopycnals. Increasing the number of vertical levels reduces the growth rate, but then increasing N2 increases the growth rate quite dramatically. I've played with th...
by dcherian
Sat Apr 12, 2014 9:44 pm
Forum: ROMS Problems
Topic: Numerical instability at edge of slope
Replies: 2
Views: 3675

Numerical instability at edge of slope

Hi all, I'm having trouble with what looks like a numerical instability that starts in the vertical velocity field. My setup consists of an idealized flat bottom shelf + slope at the southern end of a beta-plane channel with a west to east (along-isobath) barotropic inflow (2cm/s). There is an antic...
by dcherian
Wed Mar 26, 2014 3:44 am
Forum: ROMS Bugs
Topic: 2 possible bugs in Shc boundary conditions
Replies: 6
Views: 6766

Re: 2 possible bugs in Shc boundary conditions

Thanks!

The changes I made agree with the code you posted. I like the "radiation cooling" analogy.

Deepak
by dcherian
Wed Mar 26, 2014 3:42 am
Forum: ROMS Information
Topic: Conceptual Model of RadNud Boundary Condition
Replies: 1
Views: 5258

Re: Conceptual Model of RadNud Boundary Condition

RadNud means there's a nudging term added to the radiation condition. The timescale refers to the timescale of this nudging which is (generally) longer if the phase speed (determined for the radiation condition) is directed outward and shorter if it is inward. The reference is this paper: http://www...
by dcherian
Thu Mar 20, 2014 1:08 am
Forum: ROMS Bugs
Topic: 2 possible bugs in Shc boundary conditions
Replies: 6
Views: 6766

Re: 2 possible bugs in Shc boundary conditions

I can now confirm that my application behaves a lot better when the two changes are made. Earlier, I had a bunch of waves running around my domain. Now, they exit the open boundaries very nicely.

Deepak
by dcherian
Thu Mar 13, 2014 3:41 am
Forum: ROMS Bugs
Topic: 2 possible bugs in Shc boundary conditions
Replies: 6
Views: 6766

2 possible bugs in Shc boundary conditions

I think I found 2 bugs in the code for the new Shchepetkin boundary conditions. In u2dbc_im.F for the eastern boundary, the current code has cff=1.0_r8/(0.5_r8*(GRID(ng)%h(Iend ,j)+ & & GRID(ng)%h(Iend+1,j))) cff1=SQRT(g*cff) Cx=dt2d*cff1*0.5_r8*(GRID(ng)%pm(Iend ,j)+ & & GRID(ng)%pm...
by dcherian
Tue Jan 07, 2014 3:44 am
Forum: ROMS Problems
Topic: Potential Vorticity
Replies: 8
Views: 8099

Re: Potential Vorticity

Also, the horizontal derivatives for the relative vorticity are calculated as dUde(i,j)=om_u(i,j )*u(i,j ,k,nout)- & & om_u(i,j-1)*u(i,j-1,k,nout) dVdx(i,j)=on_v(i ,j)*v(i ,j,k,nout)- & & on_v(i-1,j)*v(i-1,j,k,nout) cff=pm(i,j)*pn(i,j) rvor(i,j,k)=cff*(dVdx(i,j)-dUde(i,j)) Isn't this...
by dcherian
Mon Oct 28, 2013 4:26 pm
Forum: ROMS Problems
Topic: Potential Vorticity
Replies: 8
Views: 8099

Re: Potential Vorticity

I just ran into this problem. The issue is that potential density, pden=0 unless you have DIAGNOSTICS or LMD mixing defined. vorticity.F uses pden to calculate grad(rho) for PV. However, pden is defined in Nonlinear/rho_eos.F as # if defined LMD_SKPP || defined LMD_BKPP || defined DIAGNOSTICS real(r...
by dcherian
Wed Oct 16, 2013 9:06 pm
Forum: ROMS Source
Topic: Output viscosities and diffusivities
Replies: 0
Views: 4114

Output viscosities and diffusivities

Hi, I think it would be very useful if we could write viscosities (visc2_p,visc2_r or visc4_p,visc4_r) and diffusivities (diff2, diff4) to the his / avg / dia files. This would greatly help debugging sponge layers coded in ana_hmixcoef.h. Similar functionality for ana_nudgcoef.h might be useful to o...
by dcherian
Wed Mar 13, 2013 1:05 am
Forum: ROMS Discussion
Topic: model blowing up
Replies: 1
Views: 2377

Re: model blowing up

To see how the Courant numbers are calculated, see Utility/metrics.F . To reduce it, reduce your time step. Right now you're using dt=432 seconds = 7.2 minutes which seems to be too big. The other way would be to increase ndtfast but your value seems pretty large already. Try dt=60, ndtfast = 30 and...
by dcherian
Wed Mar 06, 2013 2:30 am
Forum: ROMS Problems
Topic: Lateral boundary conditions (lbcs)
Replies: 2
Views: 2212

Re: Lateral boundary conditions (lbcs)

I just wrote an answer for a similar question here: https://www.myroms.org/forum/viewtopic.php?t=2840#p10727 I've been implementing a similar setup viz., flow entering at 'top' (northern edge) and leaving at 'bottom' (southern edge). I'm using the RadNud option from the Marchesiello et al (2001) pap...
by dcherian
Tue Mar 05, 2013 3:32 pm
Forum: ROMS Problems
Topic: Lateral Boundary Conditions
Replies: 3
Views: 3050

Re: Lateral Boundary Conditions

Here, this should help: http://www.oceanwave.jp/research/ROMS/roms_obc.pdf . Looking at your analytical.F90 (Build/ folder) or the various *bc_im.F files in ROMS/Nonlinear/ will show you the code for the various options. For more detail on the RadNud option, see Marchesiello et al. (2001): http://ww...