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 Post by peigen » Fri Feb 06, 2015 3:37 pm

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: 3717
Joined: Wed Jul 02, 2003 5:29 pm
Location: IMS/UAF, USA

Re: boundary condition of old version ROMS

#2 Post by kate » Fri Feb 06, 2015 5:25 pm

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 Post by peigen » Sat Feb 07, 2015 6:18 pm

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: 3717
Joined: Wed Jul 02, 2003 5:29 pm
Location: IMS/UAF, USA

Re: boundary condition of old version ROMS

#4 Post by kate » Sat Feb 07, 2015 6:56 pm

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 Post by peigen » Sat Feb 07, 2015 7:43 pm

Hi Kate,

Thank you very much for your help!

I will have a try

Thanks, Peigen

Post Reply