<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear Yangxin,<div class=""><br class=""></div><div class="">You don’t *need* `obcs_sponge.F` in your model code if you don’t modify it.  However, if you use it, the sponge will be applied to your mode-1 internal wave forcing on the west side as well your absorber on the RHS.  That means that a thick area on the LHS is being sponged to the same phase of the internal tide whereas if the wave were propagating through that thick area its phase would change.  Whether you care about this depends on the level of fidelity you want in your incoming wave versus what you specify in the code.  </div><div class=""><br class=""></div><div class="">I’ve done this in many two-d simulations, and it works fine, you juts need to diagnose the incoming wave (and make the sponge be far away from your region of interest.)  The advantage of doing this versus having an unsponged internal wave source is that any back-reflected waves from your region of interest are absorbed and don’t reflect back into the domain.  Without the sponge they definitely will back reflect.  </div><div class=""><br class=""></div><div class="">I’ve always used Carter et al 2008 (JPO) as a useful reference for the benefits of setting sponges.  I did exactly what you are doing in Klymak et al 2013 (JPO) looking at iternal tide scattering using the method above.</div><div class=""><br class=""></div><div class="">For Klymak et al 2015 (JPO) we had to be more careful about the incoming tide, so instead of using obcs, I used rbcs. That lets you set the time constant (strength of the sponge) everywhere in the domain, and have a time-propagating signal where you want there to be one and an absorber on the downstream side.  I prefer this methodology, but it is more expensive.  </div><div class=""><br class=""></div><div class="">Cheers,   Jody</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 9, 2017, at  10:50 AM, Yangxin He <<a href="mailto:y67he@uwaterloo.ca" class="">y67he@uwaterloo.ca</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div id="divtagdefaultwrapper" dir="ltr" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class="">Hi,</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">I am using OBCS package to send in a mode-1 internal wave from the left/western boundary, and I want to add a sponge layer only at the right/eastern boundary. I have used rigid lid for my surface/northern boundary and no slip for the bottom/southern boundary. I have set useOBCSsponge=.TRUE. in data.obcs.</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">My questions are about setting the sponge layer.</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="font-size: 12pt;" class="">1) </span></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="font-size: 12pt;" class="">There is a routine "obcs_sponge.F" under pkg/obcs. Is this the<span class="Apple-converted-space"> </span><b class="">only</b><span class="Apple-converted-space"> </span>routine I need to add in to my model code for the sponge layer?</span><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="font-size: 12pt;" class="">2)</span></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="font-size: 12pt;" class="">Since I only need sponge layer for the eastern boundary, if I erase everything about the other 3 boundaries in the obcs_sponge.F, will it work?</span></div><p style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="font-size: 12pt;" class=""></span></p><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="font-size: 12pt;" class="">3)</span></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="font-size: 12pt;" class="">I would like to understand the theory behind this sponge layer. Can you provide a reference/paper etc. that the code in </span><span style="font-size: 12pt;" class="">obcs_sponge.F is based on?</span></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="font-size: 12pt;" class=""><br class=""></span></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="font-size: 12pt;" class="">Thanks a lot</span></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="font-size: 12pt;" class="">Yangxin</span></div></div><span style="font-family: LucidaSans-Typewriter; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: LucidaSans-Typewriter; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: LucidaSans-Typewriter; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">MITgcm-support mailing list</span><br style="font-family: LucidaSans-Typewriter; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:MITgcm-support@mitgcm.org" style="font-family: LucidaSans-Typewriter; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">MITgcm-support@mitgcm.org</a><br style="font-family: LucidaSans-Typewriter; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support" style="font-family: LucidaSans-Typewriter; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support</a></div></blockquote></div><br class=""></div></body></html>