Search found 22 matches

by zzyfathead
Mon Dec 14, 2020 2:49 pm
Forum: ROMS Discussion
Topic: Calculate vertical gradient of velocity
Replies: 1
Views: 1465

Calculate vertical gradient of velocity

Hello, I am trying to calculate vertical gradient du/dz and dv/dz from ROMS output. Usually, we use differential equation shown in picture below. However, it may lead some non-conservative problems, and I dont know how to deal with the the upper half part of the layer 8 in the picture (Red circle). ...
by zzyfathead
Wed Jun 17, 2020 3:15 pm
Forum: ROMS Discussion
Topic: RadNud nudging time scales
Replies: 0
Views: 1242

RadNud nudging time scales

Hi, ROMS users I met some problems handling with RadNud boudary. In ocean.in, TNUDG and M3NUDG mean outflow nudging time scales, I am not sure that what is exact meaning of the ' time scale' . In my current understanding, inflow time scale is decided by given boundary conditon and outflow conditon i...
by zzyfathead
Wed Jun 17, 2020 3:07 pm
Forum: ROMS Discussion
Topic: Boundary condition problems
Replies: 4
Views: 2100

Re: Boundary condition problems

Hz could be calculated by modifying set_depth.m:
for k=1:N(ng)
Hz(i,j,k)=z_w(i,j,k)-z_w(i,j,k-1)

zzy
by zzyfathead
Fri Jan 17, 2020 11:26 am
Forum: ROMS Discussion
Topic: some problems about bulk_fluxes
Replies: 16
Views: 4454

Re: some problems about bulk_fluxes

kate wrote: Wed Jan 15, 2020 5:01 pm No, the .h files are included in the fortran files, compiled by the Fortran compiler. Linking to C code is a different beast. Not impossible, just different.
Kate, thanks for your suggestion, I changed ana.h file successfully and I can run ROMSnow.

zzy
by zzyfathead
Wed Jan 15, 2020 3:02 pm
Forum: ROMS Discussion
Topic: some problems about bulk_fluxes
Replies: 16
Views: 4454

Re: some problems about bulk_fluxes

The answer might be in ROMS/Functionals//ana_smflux.h, which is the file with the analytic surface stresses for some of the standard test problems. Some of them have things which vary in time as examples. If you want to change things by the timestep number, that is iic in the code. Thanks a looot !...
by zzyfathead
Tue Jan 14, 2020 12:16 pm
Forum: ROMS Discussion
Topic: some problems about bulk_fluxes
Replies: 16
Views: 4454

Re: some problems about bulk_fluxes

It is called every time step. Changes in time happen in your code. Thanks, Sorry I have a quesiton and maybe it's stupid. If i input a vector as sustr series, one element in the vector indicate one step's sustr, how does ROMS read it? It can read the first element in the first time step, the second...
by zzyfathead
Mon Jan 13, 2020 11:49 am
Forum: ROMS Discussion
Topic: some problems about bulk_fluxes
Replies: 16
Views: 4454

Re: some problems about bulk_fluxes

It sounded like you wanted a linear progression in time for your stress. If so, ROMS does a linear interpolation in time from one record to the next and could be doing that work for you. Or for a very simple pattern you can use the ana_xxx.h code which gets called every timestep. Oh, I want to inpu...
by zzyfathead
Mon Jan 13, 2020 2:39 am
Forum: ROMS Discussion
Topic: some problems about bulk_fluxes
Replies: 16
Views: 4454

Re: some problems about bulk_fluxes

Thanks, I read the code, it only reads 'days' and 'seconds', it cannot read 's'.

And I also find another problem: the smallest dt of uvstress ROMS can recoganize is 1s. 0.1s is not permitted.

But I need to input uvstress with a dt of 0.1, I am trying to find the related code.
by zzyfathead
Sun Jan 12, 2020 2:55 pm
Forum: ROMS Discussion
Topic: some problems about bulk_fluxes
Replies: 16
Views: 4454

Re: some problems about bulk_fluxes

Hi all, I have some new puzzles with the time units of sustr and svstr. I set dt=0.1s and Ntime=4000 in ocean.in file, so the whole run time is 400s. Firstly, I set unit of sustr and svstr as 's' in stress.nc file and input a set of sustr and svstr(dt is 0.1s). For example sustr 0.1s 0.2s 0.3s.........
by zzyfathead
Sun Jan 05, 2020 5:07 pm
Forum: ROMS Bugs
Topic: Segmentation fault
Replies: 9
Views: 4064

Re: Segmentation fault

This is not a bug. It always has to be equal or greater than one by design. If no input forcing files are needed, ROMS will ignore those values on standard input. I don't understand what it is the Fuzz about it. There are a lot of parameters in ROMS standard input that will be only relevant for a s...
by zzyfathead
Sat Jan 04, 2020 9:41 am
Forum: ROMS Discussion
Topic: some problems about bulk_fluxes
Replies: 16
Views: 4454

Re: some problems about bulk_fluxes

1. Undef BULK_FLUXES in .h file. and define ANA_STFLUX, ANA_SSFLUX, ANA_BSFLUX and ANA_BTFLUX (totally 4 ?) in .h file (I wonder how ana function set these 4 variables, just as zero automatically?). 2. Set NFFFILE=1 and input test_stress .nc file Yes, exactly. The way to tell what the default stres...
by zzyfathead
Sat Jan 04, 2020 9:34 am
Forum: ROMS Bugs
Topic: Segmentation fault
Replies: 9
Views: 4064

Re: Segmentation fault

Well, you could try submitting a bug report for this case of no forcing files, but most of us just set NFFILES to 1 and move on. Kate Thanks for your reply, you really help me out! So people usually input at least one forcing file, my case is not common. By the way, where can I submit a bug report?
by zzyfathead
Sat Jan 04, 2020 7:06 am
Forum: ROMS Discussion
Topic: some problems about bulk_fluxes
Replies: 16
Views: 4454

Re: some problems about bulk_fluxes

I wonder that if I just input sustrs and svstrs, must I set ANA_STFLUX, ANA_SSFLUX, ANA_BSFLUX and ANA_BTFLUX? Yes, if you provide the stresses, you need to provide the tracer fluxes too, and turn off BULK_FLUXES. Kate, Thanks. So the step is : 1. Undef BULK_FLUXES in .h file, and define ANA_STFLUX...
by zzyfathead
Sat Jan 04, 2020 7:05 am
Forum: ROMS Discussion
Topic: some problems about bulk_fluxes
Replies: 16
Views: 4454

Re: some problems about bulk_fluxes

I wonder that if I just input sustrs and svstrs, must I set ANA_STFLUX, ANA_SSFLUX, ANA_BSFLUX and ANA_BTFLUX? Yes, if you provide the stresses, you need to provide the tracer fluxes too, and turn off BULK_FLUXES. Kate, Thanks. So the step is : 1. Undef BULK_FLUXES in .h file. and define ANA_STFLUX...
by zzyfathead
Sat Jan 04, 2020 6:59 am
Forum: ROMS Bugs
Topic: Segmentation fault
Replies: 9
Views: 4064

Re: Segmentation fault

What is on this line? at /home/ubuntu/app/COAWST_V3.2/Build/get_data.f90:101 Oops, didn't see this: Fortran runtime error: Index '1' of dimension 2 of array 'frc' above upper bound of 0 Did you tell it NFFILES before the list of forcing files? Hi Kate, Thanks for your reply. I don't want to input a...
by zzyfathead
Sat Jan 04, 2020 6:57 am
Forum: ROMS Bugs
Topic: Segmentation fault
Replies: 9
Views: 4064

Re: Segmentation fault

What is on this line? at /home/ubuntu/app/COAWST_V3.2/Build/get_data.f90:101 Oops, didn't see this: Fortran runtime error: Index '1' of dimension 2 of array 'frc' above upper bound of 0 Did you tell it NFFILES before the list of forcing files? Hi Kate, Thanks for your reply. I don't want to input a...
by zzyfathead
Fri Jan 03, 2020 3:21 pm
Forum: ROMS Discussion
Topic: some problems about bulk_fluxes
Replies: 16
Views: 4454

some problems about bulk_fluxes

Hi all, I have some problems about bulk_fluxes. I used bulk_fluxes before in my old case and I input Uwind, Vwind, Pair, Tair..... at that time. But now I try to run a new case. I just have sustrs and svstrs data. I wonder that if I just input sustrs and svstrs, must I set ANA_STFLUX, ANA_SSFLUX, AN...
by zzyfathead
Fri Jan 03, 2020 10:05 am
Forum: ROMS Bugs
Topic: Segmentation fault
Replies: 9
Views: 4064

Re: Segmentation fault

Model Input Parameters: ROMS/TOMS version 3.7 Friday - January 3, 2020 - 4:44:40 PM ----------------------------------------------------------------------------- test Operating system : Linux CPU/hardware : x86_64 Compiler system : gfortran Compiler command : /usr/bin/mpif90 Compiler flags : -frepac...
by zzyfathead
Fri Jan 03, 2020 10:05 am
Forum: ROMS Bugs
Topic: Segmentation fault
Replies: 9
Views: 4064

Segmentation fault

Hi all,

I tried to run a easy case and met a segmentation fault. So I turned on the USER_DEBUG, the results show belows:

I tried to figured out the problem but still have no idea yet.

Hope anyone have met this problem. Thanks lol
by zzyfathead
Fri Sep 20, 2019 6:09 am
Forum: ROMS Bugs
Topic: Some questions about river input
Replies: 4
Views: 1913

Re: Some questions about river input

You want river inputs to be from land to water as in your left arrow. The right arrow appears to be all within the land and will therefore do nothing at all. How much transport are you asking for? What is the corresponding flow rate to go with it? Are you violating the ROMS speed limit? I have done...
by zzyfathead
Thu Sep 19, 2019 7:23 am
Forum: ROMS Bugs
Topic: Some questions about river input
Replies: 4
Views: 1913

Re: Some questions about river input

Are we looking at depth there? Where is the land mask? Are you sure you are putting the rivers where you think you are? Blows up how? Are you providing the river tracers (T and S)? Dear Kate, Thank you so much, 1) The depth here is all 10m (hmin). 2) The yellow part is water mask and the blue part ...
by zzyfathead
Thu Sep 19, 2019 2:49 am
Forum: ROMS Bugs
Topic: Some questions about river input
Replies: 4
Views: 1913

Some questions about river input

Hi all, I am a new user of ROMS and I am trying to run my test case. There is a river flows into coastal ocean in my case. And when I change the XI-position and ETA-position in rivers.nc, the result changes or even blows up. When I set the postion where the left arrow points, it blows up. But when I...