<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Perhaps you can clarify this a bit by adding something indicating the water Depth to your plots?   It looks to me like you have set a Gaussian temperature fill, but the topography is actually just  a straight cylinder at the edges.</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
If that is true, then the fact that the water extends downwards is just convection because you have dense water over lighter (assuming you are using a non-linear equation of state). </div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I’m also confused by your Y axis only going from -3400 to -3150, whereas you specify YC from -3400 to +3400.  </div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
In all, I suspect you have gotten your dimensions confused, and have not set the bathymetry up the way you intended. </div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Cheers,  Jody</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="mail-editor-reference-message-container">
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"></div>
<div class="ms-outlook-mobile-reference-message skipProofing" style="text-align: left; padding: 3pt 0in 0in; border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) currentcolor currentcolor; font-family: Aptos; font-size: 12pt; color: black;">
<b>From: </b>MITgcm-support <mitgcm-support-bounces@mitgcm.org> on behalf of Fateme Sharifi <fateme.sharifi1391@gmail.com><br>
<b>Date: </b>Sunday, August 31, 2025 at 10:49 PM<br>
<b>To: </b>MITgcm-support@mitgcm.org <MITgcm-support@mitgcm.org><br>
<b>Subject: </b>[MITgcm-support] RBCS extending to bottom & shelf dry points in lake setup<br>
<br>
</div>
<table class="ms-outlook-mobile-reference-message skipProofing" cellspacing="0" cellpadding="0" style="text-indent: revert; line-height: revert; white-space: revert; background-color: revert; display: table; margin: revert; width: 100%; height: revert; table-layout: fixed; color: revert; box-sizing: border-box; border-collapse: collapse; border-spacing: 0px;">
<tbody>
<tr style="background-color: revert;">
<td class="ms-outlook-mobile-reference-message skipProofing" style="text-indent: revert; line-height: revert; white-space: revert; border-width: revert; border-style: revert; border-color: revert; background-color: rgb(166, 166, 166); padding: 7px 2px; word-break: revert; color: revert; width: 0px; height: revert;">
</td>
<td class="ms-outlook-mobile-reference-message skipProofing" style="text-align: left; text-indent: revert; line-height: revert; white-space: revert; border-width: revert; border-style: revert; border-color: revert; background-color: rgb(234, 234, 234); padding: 7px 5px 7px 15px; word-break: revert; color: rgb(33, 33, 33); width: 100%; height: revert;">
<div class="ms-outlook-mobile-reference-message skipProofing" style="text-align: left; text-indent: revert; line-height: revert; white-space: revert; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; color: revert;">
<span style="letter-spacing: revert; background-color: revert; line-height: revert;">You don't often get email from fateme.sharifi1391@gmail.com.
<a href="https://aka.ms/LearnAboutSenderIdentification" data-outlook-id="338ecb80-8cff-4d0b-9de7-643d35df9810" style="color: revert; display: revert; background-color: revert;">
Learn why this is important</a></span></div>
</td>
<td class="ms-outlook-mobile-reference-message skipProofing" style="text-align: left; text-indent: revert; line-height: revert; white-space: revert; border-width: revert; border-style: revert; border-color: revert; background-color: rgb(234, 234, 234); padding: 7px 5px; word-break: revert; color: rgb(33, 33, 33); width: 75px; height: revert;">
</td>
</tr>
</tbody>
</table>
<p dir="ltr" class="ms-outlook-mobile-reference-message skipProofing">Dear MITgcm users,</p>
<p dir="ltr" class="ms-outlook-mobile-reference-message skipProofing">I am setting up a small lake experiment with
<b>Gaussian bathymetry, a dry shelf band, and a shallow “moat” region (within 400 m of shoreline, depth ≤ 5 m) where I apply RBCS restoring toward 4 °C</b>.</p>
<p dir="ltr" class="ms-outlook-mobile-reference-message skipProofing">My input files are generated with a MATLAB script (attached) that writes:</p>
<ul dir="ltr">
<li>
<p dir="ltr" class="ms-outlook-mobile-reference-message skipProofing" role="presentation">
<code>Depth.bin</code> (outside/shelf = 0 m),</p>
</li><li>
<p dir="ltr" class="ms-outlook-mobile-reference-message skipProofing" role="presentation">
<code>hFacC.bin</code> with proper partial cells,</p>
</li><li>
<p dir="ltr" class="ms-outlook-mobile-reference-message skipProofing" role="presentation">
<code>rbcs_mask.bin</code> limited to shallow moat layers only (z_mid ≤ moat_depth, hFacC > 0),</p>
</li><li>
<p dir="ltr" class="ms-outlook-mobile-reference-message skipProofing" role="presentation">
<code>rbcs_Tr1_fld.bin</code> set to 4 °C inside the mask.</p>
</li></ul>
<p dir="ltr" class="ms-outlook-mobile-reference-message skipProofing">At model start (<code>t=1</code>), the RBCS mask behaves correctly (restricted to the top ~5 m near the boundary). However, after just 2–3 timesteps, the RBCS influence appears to extend
 vertically to the bottom (see attached figure with Y–Z sections at t=1 and t=3). This was unexpected because the written
<code>rbcs_mask.bin</code> only has ones in shallow moat layers.</p>
<p dir="ltr" class="ms-outlook-mobile-reference-message skipProofing">I also noticed some sensitivity to shelf dry points: despite setting
<code>Depth=0</code> and checking that <code>hFacC=0</code> in the shelf region, I worry that something in RBCS or partial cells may be activating those points during runtime.</p>
<p dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"><b>My questions:</b></p>
<ol start="1" dir="ltr">
<li>
<p dir="ltr" class="ms-outlook-mobile-reference-message skipProofing" role="presentation">
Has anyone seen RBCS restoring “leak” into deeper layers, even if the input mask is strictly shallow?</p>
</li><li>
<p dir="ltr" class="ms-outlook-mobile-reference-message skipProofing" role="presentation">
Is there an additional runtime parameter (e.g. in <code>data.rbcs</code> or <code>
data</code>) needed to prevent the restoring from being applied throughout the column?</p>
</li><li>
<p dir="ltr" class="ms-outlook-mobile-reference-message skipProofing" role="presentation">
What is the recommended way to guarantee that RBCS remains limited to the intended top layers throughout the run (not just in the input mask)?</p>
</li><li>
<p dir="ltr" class="ms-outlook-mobile-reference-message skipProofing" role="presentation">
Any best practices for handling dry shelf points with RBCS in lakes or enclosed basins?</p>
</li></ol>
<p dir="ltr" class="ms-outlook-mobile-reference-message skipProofing">I have attached both my MATLAB setup script (<code>setup_gaussian_lake_rbcs_revised_v2.m</code>) and the figure (<code>vertical_section_temperature.jpg</code>).</p>
<p dir="ltr" class="ms-outlook-mobile-reference-message skipProofing">Best regards,</p>
<div dir="ltr" class="gmail_signature">Fatemeh Sadat Sharifi<br>
Ph.D. Candidate at<br>
The Leibniz Institute of Freshwater</div>
<div dir="ltr" class="gmail_signature"> Ecology and Inland Fisheries (IGB)</div>
</div>
</body>
</html>