<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
As a sanity check, you could write out the surface stress to make sure you are forcing the ocean surface correctly. D.<br id="lineBreakAtBeginningOfMessage">
<div><br>
<blockquote type="cite">
<div>On Jul 12, 2024, at 2:24 PM, Chichi Zhou <chichi.zhou@uwaterloo.ca> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">Hello everyone,</span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);"> </span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">I'm conducting a 2-D simulation in the x-z plane and would like to add spatially and temporally constant wind stress </span><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">0.3
N/m^2 </span><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">at </span><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">ocean</span><span style="font-size: 10.5pt; color: rgb(33, 33, 33);"> surface. I have tried two methods:</span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);"> </span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">(</span><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">1</span><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">) </span><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">Specify
the wind file in `input/data` and do not use the EXF package.</span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);"> </span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">&PARM05</span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">hydrogThetaFile='T.init',</span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">bathyFile='flat_bottom',</span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">uVelInitFile='U.init',</span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">zonalWindFile='windx.bin',</span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);"> </span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">Here, 'windx.bin' </span><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">is </span><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">a
1-D array with dimensions (nx, 1), where windx (</span><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">1:</span><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">nx, 1) = 0.3. </span><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">‘</span><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">nx</span><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">’</span><span style="font-size: 10.5pt; color: rgb(33, 33, 33);"> is
the total number of grid points in the x direction.</span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);"> </span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">(2) </span><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">Set up the wind stress in `input/data.exf`.</span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);"> </span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">&EXF_NML_02</span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">ustressfile = 'windx.bin',</span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">ustressperiod = 0.2,</span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">&</span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);"> </span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">Here </span><span style="font-size: 10.5pt; color: rgb(33, 33, 33);"> 'windx.bin' is converted from a</span><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);"> matrix </span><span style="font-size: 10.5pt; color: rgb(33, 33, 33);"> with
dimensions (nx, 1, nt</span><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">). </span><span style="font-size: 10.5pt; color: rgb(33, 33, 33);"> windx (</span><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">1:</span><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">nx,
1,<span class="Apple-converted-space"> </span></span><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">1:</span><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">nt) = 0.3. `nx` is the grid points in the x direction, and </span><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">‘</span><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">nt</span><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">’</span><span style="font-size: 10.5pt; color: rgb(33, 33, 33);"> is
the total time steps. </span><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">‘</span><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">ustressperiod = 0.2</span><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">’</span><span style="font-size: 10.5pt; color: rgb(33, 33, 33);"> because
`dt = 0.2s`.</span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);"> </span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">However, the<span class="Apple-converted-space"> </span></span><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">output
velocity and temperature fields</span><span style="font-size: 10.5pt; color: rgb(33, 33, 33);"><span class="Apple-converted-space"> </span>from the two<span class="Apple-converted-space"> </span></span><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">numerical
simulations</span><span style="font-size: 10.5pt; color: rgb(33, 33, 33);"><span class="Apple-converted-space"> </span>are different. I am confused </span><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">about the reason of this </span><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">and
would appreciate any suggestions you might have. Thank you in advance</span><span lang="EN-US" style="font-size: 10.5pt; color: rgb(33, 33, 33);">!</span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);"> </span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">Best,</span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt; color: rgb(33, 33, 33);">Chichi</span><span style="color: rgb(33, 33, 33);"><o:p></o:p></span></div>
<div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 10.5pt;"><o:p> </o:p></span></div>
</div>
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">MITgcm-support
mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<a href="mailto:MITgcm-support@mitgcm.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">MITgcm-support@mitgcm.org</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<a href="https://urldefense.us/v3/__http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support__;!!PvBDto6Hs4WbVuu7!PyliTId6w07S3NcXZwgcfmy00WCbEdUh9_IFZM-eoThtGDgtzRCyyWrMwv-lS5Ev6NAbgIXqalyXAYKe9XPr4yZnV22llxQ1TTdS5Q$" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">https://urldefense.us/v3/__http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support__;!!PvBDto6Hs4WbVuu7!PyliTId6w07S3NcXZwgcfmy00WCbEdUh9_IFZM-eoThtGDgtzRCyyWrMwv-lS5Ev6NAbgIXqalyXAYKe9XPr4yZnV22llxQ1TTdS5Q$</a><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;"></span></div>
</blockquote>
</div>
<br>
</body>
</html>