<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body class="" style="word-wrap:break-word" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>Dear Agnese,</div>
<div><br>
</div>
Attached is an example that shows how to modify the connectivity for the thermal
<div>field to be inflow/outflow.</div>
<div><br>
</div>
<div>If your domain is generated with genbox and your flow is in the x direction then</div>
<div>this should also work for 3D.</div>
<div><br>
</div>
<div>Note that no changes are required to the .rea file (you should have "P  " for both</div>
<div>velocity and temperature in the .rea/.box file).</div>
<div><br>
</div>
<div>The changes occur in the .usr file.</div>
<div><br>
</div>
<div>Paul</div>
<div><br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF648525" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> nek5000-users-bounces@lists.mcs.anl.gov [nek5000-users-bounces@lists.mcs.anl.gov] on behalf of nek5000-users@lists.mcs.anl.gov [nek5000-users@lists.mcs.anl.gov]<br>
<b>Sent:</b> Monday, January 16, 2017 9:31 AM<br>
<b>To:</b> nek5000-users@lists.mcs.anl.gov<br>
<b>Subject:</b> Re: [Nek5000-users] double mesh ?<br>
</font><br>
</div>
<div></div>
<div>
<div>Dear Paul </div>
<div><br class="">
</div>
<div>thank you so much for your help !</div>
<div>I am looking forward to see your example, it will be of great help !</div>
<div><br class="">
</div>
<div>could you tell me something more about the recycling BC as well ?</div>
<div><br class="">
</div>
<div>Thank you again for your help </div>
<div>Agnese</div>
<div><br class="">
</div>
<div>
<blockquote type="cite" class="">
<div class=""><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<div class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; margin:0px">
<span class="" style="color:rgb(127,127,127)"><b class="">From:<span class="Apple-converted-space"> </span></b></span><span class="" style=""><a href="mailto:nek5000-users@lists.mcs.anl.gov" class="" target="_blank">nek5000-users@lists.mcs.anl.gov</a><br class="">
</span></div>
<div class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; margin:0px">
<span class="" style="color:rgb(127,127,127)"><b class="">Subject:<span class="Apple-converted-space"> </span></b></span><span class="" style=""><b class="">Re: [Nek5000-users] double mesh ?</b><br class="">
</span></div>
<div class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; margin:0px">
<span class="" style="color:rgb(127,127,127)"><b class="">Date:<span class="Apple-converted-space"> </span></b></span><span class="" style="">January 16, 2017 at 4:05:21 PM GMT+1<br class="">
</span></div>
<div class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; margin:0px">
<span class="" style="color:rgb(127,127,127)"><b class="">To:<span class="Apple-converted-space"> </span></b></span><span class="" style="">"<a href="mailto:nek5000-users@lists.mcs.anl.gov" class="" target="_blank">nek5000-users@lists.mcs.anl.gov</a>" <<a href="mailto:nek5000-users@lists.mcs.anl.gov" class="" target="_blank">nek5000-users@lists.mcs.anl.gov</a>><br class="">
</span></div>
<div class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; margin:0px">
<span class="" style="color:rgb(127,127,127)"><b class="">Reply-To:<span class="Apple-converted-space"> </span></b></span><span class="" style=""><a href="mailto:nek5000-users@lists.mcs.anl.gov" class="" target="_blank">nek5000-users@lists.mcs.anl.gov</a><br class="">
</span></div>
<br class="">
<div class="" style="font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; direction:ltr; font-family:Tahoma; font-size:10pt">
Dear Agnese,
<div class=""><br class="">
</div>
<div class="">Sorry for the long delay in answering this question.  The issue is that in fact it is possible</div>
<div class="">(and used to be a supported but rarely used feature).   The challenge, however, is how to</div>
<div class="">make it relatively easy in the context of the current setup for a variety of applications.</div>
<div class=""><br class="">
</div>
<div class="">Nek supports a different gather-scatter handle for each field (velocity, temperature, passive</div>
<div class="">scalar, etc.)</div>
<div class=""><br class="">
</div>
<div class="">We have a handle that allows the user access to the connectivity list, which would give</div>
<div class="">you an opportunity to "disconnect" the periodic faces for the temperature array.</div>
<div class=""><br class="">
</div>
<div class="">I'll try to code up an example for the case of channel flow with a mesh generated by</div>
<div class="">genbox and post it shortly.</div>
<div class=""><br class="">
</div>
<div class="">Incidentally, an alternative approach that we often use for more complex domains</div>
<div class="">would be to use a recycling boundary condition.   I think it would not be as efficient,</div>
<div class="">however, as periodicity for the case that you propose.</div>
<div class=""><br class="">
</div>
<div class="">Once again, apologies for the delayed response.</div>
<div class=""><br class="">
</div>
<div class="">Paul</div>
<div class=""><br class="">
</div>
<div class="">
<div class="" style="font-family:'Times New Roman'; font-size:16px">
<hr tabindex="-1" class="">
<div id="divRpF470953" class="" style="direction:ltr"><font face="Tahoma" size="2" class=""><b class="">From:</b><span class="Apple-converted-space"> </span><a href="mailto:nek5000-users-bounces@lists.mcs.anl.gov" class="" target="_blank">nek5000-users-bounces@lists.mcs.anl.gov</a><span class="Apple-converted-space"> </span>[<a href="mailto:nek5000-users-bounces@lists.mcs.anl.gov" class="" target="_blank">nek5000-users-bounces@lists.mcs.anl.gov</a>]
 on behalf of<span class="Apple-converted-space"> </span><a href="mailto:nek5000-users@lists.mcs.anl.gov" class="" target="_blank">nek5000-users@lists.mcs.anl.gov</a>[<a href="mailto:nek5000-users@lists.mcs.anl.gov" class="" target="_blank">nek5000-users@lists.mcs.anl.gov</a>]<br class="">
<b class="">Sent:</b><span class="Apple-converted-space"> </span>Thursday, December 22, 2016 4:38 AM<br class="">
<b class="">To:</b><span class="Apple-converted-space"> </span><a href="mailto:nek5000-users@lists.mcs.anl.gov" class="" target="_blank">nek5000-users@lists.mcs.anl.gov</a><br class="">
<b class="">Subject:</b><span class="Apple-converted-space"> </span>[Nek5000-users] double mesh ?<br class="">
</font><br class="">
</div>
<div class=""></div>
<div class="">Hi
<div class=""><br class="">
</div>
<div class="">i am quite new, so i’m sorry if i’m getting things wrong.</div>
<div class=""><br class="">
</div>
<div class="">I am trying to simulate a turbulent channel flow, with a passive scalar. </div>
<div class="">in the streamwise direction, i would like to impose periodic boundary conditions for the flow, and non-periodic for the scalar.</div>
<div class="">in fact the scalar has a point source near the inlet, and i want to see how that develops downstream. </div>
<div class=""><br class="">
</div>
<div class="">as far as i understand this is not supported by nek5000, because the last mesh point is identified with the first mesh point when periodic BC are imposed.</div>
<div class="">correct ?</div>
<div class=""><br class="">
</div>
<div class="">my question is : could i define two meshes, one for the scalar and one for the velocity ?</div>
<div class=""><br class="">
</div>
<div class="">thanks a lot for your help !!!</div>
<div class="">agnese</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div class="" style="letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; word-wrap:break-word">
<div class="" style="letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; word-wrap:break-word">
<div class="">Agnese Seminara</div>
<div class="">
<div class="">--------------------------------</div>
<div class="">CNRS</div>
<div class="">Laboratoire de physique de la matière condensée</div>
<div class="">Parc Valrose </div>
<div class="">avenue J Vallot</div>
<div class="">06108 Nice, France</div>
<div class=""><span class="" style="color:rgb(38,48,51); font-family:Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">+33 (0) 492 076 775</span></div>
<div class=""><a href="http://sites.unice.fr/site/aseminara/" class="" target="_blank">http://sites.unice.fr/site/aseminara/</a></div>
</div>
</div>
</div>
</div>
<br class="">
</div>
</div>
</div>
</div>
</div>
<br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">_______________________________________________</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">Nek5000-users
 mailing list</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<a href="mailto:Nek5000-users@lists.mcs.anl.gov" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px" target="_blank">Nek5000-users@lists.mcs.anl.gov</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
</body>
</html>