bustr and bvstr for BODYFORCE

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
antoinemarie

bustr and bvstr for BODYFORCE

#1 Unread post by antoinemarie »

Hi Roms users!

I try to use BODYFORCE, but I have some questions:

- In witch file can I define my force bustr and bvstr?
- When I define a force in the file 'ana_smflux', is it sustr and svstr for each layer, or is it the total of all layers?

Thank you in advance for your reply,

Antoine

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

Re: bustr and bvstr for BODYFORCE

#2 Unread post by kate »

Actually, get_data.F has code for reading sustr and svstr, but not for reading bustr or bvstr. It is assumed that you will be applying linear, quadratic, or a log layer bottom stress. If that's not the case, you can modify get_data.F and set_data.F, copying the sustr and svstr code. At least bottom stresses are known by varinfo.dat (idUbms and idVbms). If you do this, put the fields in the forcing file(s).

You want to provide the total values, not the per-level value. You can see the code in rhs3d.F where the thicknesses are summed, then divided out when applied via BODYFORCE.

antoinemarie

Re: bustr and bvstr for BODYFORCE

#3 Unread post by antoinemarie »

Thank you Kate for your reply.

I have another question about BODYFORCE. I use it, but it doesn't repect my numeber of level: LEVSFRC == 2, the force is applied on the entire water column. In my header file, I just define BODYFORCE. Is there another cpp to define?

Thanks,

Antoine

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

Re: bustr and bvstr for BODYFORCE

#4 Unread post by kate »

Setting this "LEVSFRC == 2" means apply the surface stress to every level except the bottom. The surface is applied from levsfrc to N, while the bottom is applied from 1 to levbfrc. Does that clear up what you are getting?

antoinemarie

Re: bustr and bvstr for BODYFORCE

#5 Unread post by antoinemarie »

ok, it works. The problem cames from my understanding of the numbering of levels.

Thank you Kate

Post Reply