Ocean Modeling Discussion

ROMS/TOMS

Search for:
It is currently Wed Jun 19, 2019 5:03 am




Post new topic Reply to topic  [ 5 posts ] 

All times are UTC

Author Message
PostPosted: Mon Jul 22, 2013 4:28 pm 
Offline

Joined: Thu Dec 20, 2012 8:58 pm
Posts: 2
Location: UCLA
Hi,there is a variability in ice model -- iAr, seems it only appears in ice_smolar.h, but can you tell me, what it stands for, and how to choose the value.

Best


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 22, 2013 4:40 pm 
Offline
User avatar

Joined: Wed Jul 02, 2003 5:29 pm
Posts: 3601
Location: IMS/UAF, USA
That code is protected by "#ifndef ICE_UPWIND" and I have always run with ICE_UPWIND defined. Have you tried that or do you have some reason not to? Still, it's a good question.


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 22, 2013 5:04 pm 
Offline

Joined: Thu Dec 20, 2012 8:58 pm
Posts: 2
Location: UCLA
Hi Kate, thanks for your answer. It is just an interesting question for me. Because I read a paper about mpdata method, and said that is much better than others. So I want to know how better it can be. And in the original formula, there is no iAr, it should be added by the developer, so I want to get the answer :D


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 22, 2013 5:14 pm 
Offline
User avatar

Joined: Wed Jul 02, 2003 5:29 pm
Posts: 3601
Location: IMS/UAF, USA
Thus you learn that I am not the developer, but merely someone who has used this code. I could probably figure it out given sufficient time and energy, but my priorities are currently elsewhere. I have asked the developer of ice_smolar to view this thread.


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 22, 2013 5:24 pm 
Offline
User avatar

Joined: Wed Jul 02, 2003 5:29 pm
Posts: 3601
Location: IMS/UAF, USA
And we have an answer:

Quote:
It has been a long time since I looked at this. It looks like on line 843 in ice_smolar.h, iAr(i,j) should be replaced with pm(i,j)*pn(i,j) .

#define ICE_SMOLAR activates the ice_smolar.h code, but if #define ICE_UPWIND is used, then just 1st order upwind differencing is used for advection. If ICE_UPWIND is undefined while ICE_SMOLAR is defined, then you get the anti-diffusive step of MPDATA after the upwind differencing is applied. Like you, I have been defining both ICE_SMOLAR and ICE_UPWIND, since I find the extra bit of numerical diffusion beneficial to the ice dynamics (and it avoids the need to apply ICE_SMOOTH smoothing).

Good catch!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group