boundary condition of old version ROMS

Facts, news, and guidance about ROMS software

Moderators: arango, robertson

Post Reply
Message
Author
peigen
Posts: 5
Joined: Tue May 07, 2013 4:37 pm
Location: Xiamen University

boundary condition of old version ROMS

#1 Unread post by peigen »

Hi ROMS friends,

I was using old version ROMS. There is no option of boundary condition for normal and tangential velocities. How can I know and setting these?
Thank you very much!


Best regards,
Peigen

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

Re: boundary condition of old version ROMS

#2 Unread post by kate »

Are you asking about the RADIATION_2D option?

If you look at the boundary condition code for u and v, you will see that the code for say u on the east is different from v on the east. Perhaps if you tell us what you are looking for we can tell you what works.

peigen
Posts: 5
Joined: Tue May 07, 2013 4:37 pm
Location: Xiamen University

Re: boundary condition of old version ROMS

#3 Unread post by peigen »

Hi Kate,

Thanks for your response.
In my case, I apply periodic boundary condition on east-west boundary and wall on north
I was trying the Radiation on south, but it was blowing up.

Someone told me that for the south, I should apply Gradient on tangential velocities and Radiation on normal velocities. So, I was wondering where I can set these in old version ROMS. Do yo have any other suggestions?
Thank you so much!


Best regards,
Peigen

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

Re: boundary condition of old version ROMS

#4 Unread post by kate »

How about a wall down there? Maybe move it farther away?

Have you tried RADIATION_2D? That would be another thing to try.

If you really want to try what you say, you should look at the boundary condition code. If you have radiation and not RADIATION_2D, what is left for the tangential velocity? You can see exactly what's there in the .f90 files after cpp has been done. If it's not what you want, you can "just" hack in some cpp options at the top of those files. Something like:

Code: Select all

#ifdef MY_WEIRD_CHANNEL
#undef BLAHBLAH_RADIATION
#define BLAHBLAH_GRADIENT
#endif
If that's too bizarre for you, what about getting the new code?

peigen
Posts: 5
Joined: Tue May 07, 2013 4:37 pm
Location: Xiamen University

Re: boundary condition of old version ROMS

#5 Unread post by peigen »

Hi Kate,

Thank you very much for your help!

I will have a try

Thanks, Peigen

Post Reply