<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Have you tried reducing dt by, say, 2x ?</p>
<p><br>
</p>
<p>That should be enough...</p>
<p><br>
</p>
<p>Also, you can try filtering by setting p103=0.05</p>
<p>in the .rea file.</p>
<p><br>
</p>
<p>The velocity and passive scalars have the same CFL restriction, but velocity is regularized by pressure so it tends to be more stable than high Peclet passive scalar simulations.</p>
<p><br>
</p>
<p>hth,</p>
<p><br>
</p>
<p>Paul</p>
<p><br>
</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><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> Thursday, June 15, 2017 3:38:03 AM<br>
<b>To:</b> nek5000-users@lists.mcs.anl.gov<br>
<b>Subject:</b> Re: [Nek5000-users] Courant number for passive scalar</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">How does the blow-up manifest itself?<br>
<br>
Try to run it with 2nd order in time and keep the CFL<0.5. This should be stable assuming there is no source term introducing an additional time step constraint.<br>
<br>
Does your mesh resolve these steep gradients? <br>
<br>
Cheers,<br>
Stefan<br>
<br>
-----Original message-----<br>
> From:nek5000-users@lists.mcs.anl.gov <nek5000-users@lists.mcs.anl.gov><br>
> Sent: Thursday 15th June 2017 9:29<br>
> To: nek5000-users@lists.mcs.anl.gov<br>
> Subject: Re: [Nek5000-users] Courant number for passive scalar<br>
> <br>
> I havent seen the equivalent of a Courant criterion for passive scalars. <br>
> what I meant is the scalar is intermittent, so one should have a way to detect the regions where gradients are extremely large (fronts) and make sure to decrease the timestep there.<br>
> <br class="" />fronts do not correspond to regions where velocities are especially large, so the classic courant criterion will miss them. <br>
> <br class="" />does this make sense ?<br>
> any suggestions ?<br>
> <br class="" />agnese<br>
> <br class="" /><br class="" /><br class="" />On Jun 14, 2017, at 2:39 PM, nek5000-users-request@lists.mcs.anl.gov <<a href="mailto:nek5000-users-request@lists.mcs.anl.gov">mailto:nek5000-users-request@lists.mcs.anl.gov</a>> wrote:<br>
> <br class="Apple-interchange-newline" />Send Nek5000-users mailing list submissions to<br class="" /> nek5000-users@lists.mcs.anl.gov <<a href="mailto:nek5000-users@lists.mcs.anl.gov">mailto:nek5000-users@lists.mcs.anl.gov</a>><br class="" /><br class=""
/>To subscribe or unsubscribe via the World Wide Web, visit<br class="" /> <a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users<br">
https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users<br</a> class="" />or, via email, send a message with subject or body 'help' to<br class="" /> nek5000-users-request@lists.mcs.anl.gov<br class="" /><br class="" />You can reach the person managing
the list at<br class="" /> nek5000-users-owner@lists.mcs.anl.gov<br class="" /><br class="" />When replying, please edit your Subject line so it is more specific<br class="" />than "Re: Contents of Nek5000-users digest..."<br class="" />Today's Topics:<br
class="" /><br class="" /> 1. Re: Courant for passive scalar ? (nek5000-users@lists.mcs.anl.gov)<br class="" /> 2. Re: Courant for passiv<br>
e scalar<br>
? (nek5000-users@lists.mcs.anl.gov)<br class="" /><br class="" />From: nek5000-users@lists.mcs.anl.gov<br class="" />Subject: Re: [Nek5000-users] Courant for passive scalar ?<br class="" />Date: June 14, 2017 at 10:44:13 AM GMT+2<br class="" />To: nek5000-users@lists.mcs.anl.gov<br
class="" />Reply-To: nek5000-users@lists.mcs.anl.gov<br class="" /><br class="" /><br class="" />Thanks Jan !<br>
> <br class="" />so it is confirmed that the tilmestep is based exclusively on the velocity field ?<br>
> how do people make sure that the passive scalars do not blow up ? <br>
> anybody ?<br>
> <br class="" />any help is greatly appreciated !!<br>
> agnese<br>
> <br class="" /><br class="" />Agnese Seminara<br>
> --------------------------------<br>
> CNRS<br>
> Institut de Physique de Nice<br>
> Parc Valrose <br>
> avenue J Vallot<br>
> 06108 Nice, France<br>
> +33 (0) 492 076 775<br>
> <a href="http://sites.unice.fr/site/aseminara/">http://sites.unice.fr/site/aseminara/</a> <<a href="http://sites.unice.fr/site/aseminara/">http://sites.unice.fr/site/aseminara/</a>><br class="" />On Jun 13, 2017, at 7:00 PM, nek5000-users-request@lists.mcs.anl.gov
<<a href="mailto:nek5000-users-request@lists.mcs.anl.gov">mailto:nek5000-users-request@lists.mcs.anl.gov</a>> wrote:<br>
> <br class="Apple-interchange-newline" />Send Nek5000-users mailing list submissions to<br class="" /> nek5000-users@lists.mcs.anl.gov <<a href="mailto:nek5000-users@lists.mcs.anl.gov">mailto:nek5000-users@lists.mcs.anl.gov</a>><br class="" /><br class=""
/>To subscribe or unsubscribe via the World Wide Web, visit<br class="" /> <a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users<br">
https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users<br</a> class="" />or, via email, send a message with subject or body 'help' to<br class="" /> nek5000-users-request@lists.mcs.anl.gov<br class="" /><br class="" />You can reach the person managing
the list at<br class="" /> nek5000-users-owner@lists.mcs.anl.gov<br class="" /><br class="" />When replying, please edit your Subject line so it is more specific<br class="" />than "Re: Contents of Nek5000-users digest..."<br class="" />Today's Topics:<br
class="" /><br class="" /> 1. Re: Courant for passive scalar ? (nek5000-users@lists.mcs.anl.gov)<br class="" /> 2. prenek (nek5000-users@<br>
lists.mc<br>
s.anl.gov)<br class="" /><br class="" />From: nek5000-users@lists.mcs.anl.gov<br class="" />Subject: Re: [Nek5000-users] Courant for passive scalar ?<br class="" />Date: June 12, 2017 at 8:00:26 PM GMT+2<br class="" />To: nek5000-users@lists.mcs.anl.gov<br
class="" />Reply-To: nek5000-users@lists.mcs.anl.gov<br class="" /><br class="" /><br class="" />Hi,<br>
> I haven' t tried this myself, but I guess you could write a subroutine that calculates the maximum timestep from the scalar field and sets dt accordingly. Then simple call the routine from userchk.<br>
> <br class="" />Best,<br>
> Jan<br>
> <br class="" />Am 12.06.2017 um 18:15 schrieb nek5000-users@lists.mcs.anl.gov <<a href="mailto:nek5000-users@lists.mcs.anl.gov">mailto:nek5000-users@lists.mcs.anl.gov</a>>:<br class="" /><br class="" />Dear Neks<br>
> <br class="" />I am running a simulation of a channel, with a passive scalar. Using diffusivity=viscosity, the velocity field converges nicely, whereas the passive scalar blows up at some random point down the simulation. Reynolds number is 10 000 so its
in the turbulent regime.<br>
> <br class="" />I suspect this is due to the fact that the passive scalar is intermittent, so sometimes large fluctuations will occur, totally uncorrelated to velocity fluctuations. to avoid the code to blow up, one would need to setup the timestep based on
a courant criterion for the scalar, and not for the velocity. <br>
> <br class="" />has this already been implemented ?<br>
> or how do people avoid this ?<br>
> <br class="" />any suggestion is more than welcome.<br>
> thanks<br>
> Agnese<br>
> <br class="" /><br class="" /><br class="" />Agnese Seminara<br>
> --------------------------------<br>
> CNRS<br>
> Institut de Physique de Nice<br>
> Parc Valrose <br>
> avenue J Vallot<br>
> 06108 Nice, France<br>
> +33 (0) 492 076 775<br>
> <a href="http://sites.unice.fr/site/aseminara/">http://sites.unice.fr/site/aseminara/</a> <<a href="http://sites.unice.fr/site/aseminara/">http://sites.unice.fr/site/aseminara/</a>><br class="" />_______________________________________________<br class=""
/>Nek5000-users mailing list<br class="" />Nek5000-users@lists.mcs.anl.gov <<a href="mailto:Nek5000-users@lists.mcs.anl.gov">mailto:Nek5000-users@lists.mcs.anl.gov</a>><br class="" />https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users <<a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a>><br
class="" /><br class="" /><br class="" /><br class="" />From: nek5000-users@lists.mcs.anl.gov<br class="" />Subject: [Nek5000-users] prenek<br class="" />Date: June 13, 2017 at 12:12:49 PM GMT+2<br class="" />To: nek5000-users@lists.mcs.anl.gov<br class=""
/>Reply-To: nek5000-users@lists.mcs.anl.gov<br class="" /><br class="" /><br class="" />Hi nek,<br>
> <br class="" />I have a 2D mesh. When I used global refine function, the errors occurred. do you know why?<br>
> <br class="" /> OCT/Multi-SPLIT<br>
> quad or multi-split? (q/m)<br>
> Number of elements after OctSplit operation: 7680<br>
> Are you sure you want to split (y/n)?<br>
> inside gencen 7680 F 4<br>
> done gencen 7680<br>
> start locglob_lexico: 4 7680 30720 2.00000009E-03<br>
> locglob: 1 1 30720<br>
> locglob: 2 3664 30720<br>
> locglob: 1 7761 30720<br>
> locglob: 2 7761 30720<br>
> Performing unique_vertex2 self_chk 30720<br>
> done locglob_lexico: 7761 7761 30720 4<br>
> Performing makecell self_chk 30720<br>
> <br class="" /> RMIN: 0.153545E-03<br>
> EPS,RMIN: 0.500000E-01 0.153545E-03<br>
> I/O Error: No String Terminator sent to PRS<br>
> zeroing y: 1 82 -0.75715434E-10<br>
> I/O Error: No String Terminator sent to PRS<br>
> zeroing y: 4 82 -0.14778734E-11<br>
> I/O Error: No String Terminator sent to PRS<br>
> zeroing y: 4 83 0.72759583E-10<br>
> I/O Error: No String Terminator sent to PRS<br>
> zeroing y: 4 123 0.15279482E-09<br>
> ......<br>
> <br class="" />Does it mean my mesh is still not right?<br>
> <br class="" /><br class="" />_______________________________________________<br class="" />Nek5000-users mailing list<br class="" />Nek5000-users@lists.mcs.anl.gov<br class="" />https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users<br class="" /><br class=""
/><br class="" /><br class="" /><br class="" />From: nek5000-users@lists.mcs.anl.gov<br class="" />Subject: Re: [Nek5000-users] Courant for passive scalar ?<br class="" />Date: June 14, 2017 at 2:37:35 PM GMT+2<br class="" />To: nek5000-users@lists.mcs.anl.gov
<nek5000-users@lists.mcs.anl.gov><br class="" />Reply-To: nek5000-users@lists.mcs.anl.gov<br class="" /><br class="" /><br class="" />How do you define a courant number for a scalar?<br class="" /><br class="" />-----Original message-----<br class="" />From:nek5000-users@lists.mcs.anl.gov
<nek5000-users@lists.mcs.anl.gov><br class="" />Sent: Wednesday 14th June 2017 10:43<br class="" />To: nek5000-users@lists.mcs<br>
.anl.gov<br>
<br class="" />Subject: Re: [Nek5000-users] Courant for passive scalar ?<br class="" /><br class="" />Thanks Jan !<br class="" /><br class="" />so it is confirmed that the tilmestep is based exclusively on the velocity field ?<br class="" />how do people make
sure that the passive scalars do not blow up ? <br class="" />anybody ?<br class="" /><br class="" />any help is greatly appreciated !!<br class="" />agnese<br class="" /><br class="" /><br class="" />Agnese Seminara<br class="" />--------------------------------<br
class="" />CNRS<br class="" />Institut de Physique de Nice<br class="" />Parc Valrose <br class="" />avenue J Vallot<br class="" />06108 Nice, France<br class="" />+33 (0) 492 076 775<br class="" />http://sites.unice.fr/site/aseminara/ <<a href="http://sites.unice.fr/site/aseminara/">http://sites.unice.fr/site/aseminara/</a>><br
class="" />On Jun 13, 2017, at 7:00 PM, nek5000-users-request@lists.mcs.anl.gov <<a href=""></a>mailto:nek5000-users-request@lists.mcs.a<br>
nl.gov> <br>
wrote:<br class="" /><br class="Apple-interchange-newline" />Send Nek5000-users mailing list submissions to<br class="" /> nek5000-users@lists.mcs.anl.gov <<a href="mailto:nek5000-users@lists.mcs.anl.gov">mailto:nek5000-users@lists.mcs.anl.gov</a>><br
class="" /><br class="" />To subscribe or unsubscribe via the World Wide Web, visit<br class="" />
<a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users<br">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users<br</a> class="" />or, via email, send a message with subject or body 'help' to<br class="" /> nek5000-users-request@lists.mcs.anl.gov<br
class="" /><br class="" />You can reach the person managing the list at<br class="" /> nek5000-users-owner@lists.mcs.anl.gov<br class="" /><br class="" />When replying, please edit your Subject line so it is more specific<br class="" />than "Re: Contents
of Nek5000-users digest..."<br class="" />Today's Topics:<br class="" /><br class="" /> 1. Re: Courant for passive scalar ? (nek5000-users@lists.mcs.anl.gov)<br class="" /> 2.
<br>
prenek (<br>
nek5000-users@<br class="" /> lists.mc<br class="" /> s.anl.gov)<br class="" /><br class="" />From: nek5000-users@lists.mcs.anl.gov<br class="" />Subject: Re: [Nek5000-users] Courant for passive scalar ?<br class="" />Date: June 12, 2017 at 8:00:26 PM GMT+2<br
class="" />To: nek5000-users@lists.mcs.anl.gov<br class="" />Reply-To: nek5000-users@lists.mcs.anl.gov<br class="" /><br class="" /><br class="" />Hi,<br class="" />I haven' t tried this myself, but I guess you could write a subroutine that calculates the
maximum timestep from the scalar field and sets dt accordingly. Then simple call the routine from userchk.<br class="" /><br class="" />Best,<br class="" />Jan<br class="" /><br class="" />Am 12.06.2017 um 18:15 schrieb nek5000-users@lists.mcs.anl.gov <<a href="mailto:nek5000-users@lists.mcs.anl.gov">mailto:nek5000-users@lists.mcs.anl.gov</a>>:<br
class="" /><br class="" />Dear Neks<br class="" /><br class="" />I am running a simulation of a channel, with a passive scalar. Usi<br>
ng diffu<br>
sivity=viscosity, the velocity field converges nicely, whereas the passive scalar blows up at some random point down the simulation. Reynolds number is 10 000 so its in the turbulent regime.<br class="" /><br class="" />I suspect this is due to the fact that
the passive scalar is intermittent, so sometimes large fluctuations will occur, totally uncorrelated to velocity fluctuations. to avoid the code to blow up, one would need to setup the timestep based on a courant criterion for the scalar, and not for the velocity. <br
class="" /><br class="" />has this already been implemented ?<br class="" />or how do people avoid this ?<br class="" /><br class="" />any suggestion is more than welcome.<br class="" />thanks<br class="" />Agnese<br class="" /><br class="" /><br class=""
/><br class="" />Agnese Seminara<br class="" />--------------------------------<br class="" />CNRS<br class="" />Institut de Physique de Nice<br class="" />Parc<br>
Valrose<br>
<br class="" />avenue J Vallot<br class="" />06108 Nice, France<br class="" />+33 (0) 492 076 775<br class="" />http://sites.unice.fr/site/aseminara/ <<a href="http://sites.unice.fr/site/aseminara/">http://sites.unice.fr/site/aseminara/</a>><br class="" />_______________________________________________<br
class="" />Nek5000-users mailing list<br class="" />Nek5000-users@lists.mcs.anl.gov <<a href="mailto:Nek5000-users@lists.mcs.anl.gov">mailto:Nek5000-users@lists.mcs.anl.gov</a>><br class="" />https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users <<a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a>><br
class="" /><br class="" /><br class="" /><br class="" />From: nek5000-users@lists.mcs.anl.gov<br class="" />Subject: [Nek5000-users] prenek<br class="" />Date: June 13, 2017 at 12:12:49 PM GMT+2<br class="" />To: nek5000-users@lists.mcs.anl.gov<br class=""
/>Reply-To: nek5000-users@lists.mcs.anl.gov<br class="" /><br class="" /><br class="" />Hi nek,<br class="" /><br class="" />I have a 2D mesh. When I used global refine fu<br>
nction, <br>
the errors occurred. do you know why?<br class="" /><br class="" /> OCT/Multi-SPLIT<br class="" />quad or multi-split? (q/m)<br class="" />Number of elements after OctSplit operation: 7680<br class="" />Are you sure you want to split (y/n)?<br class=""
/> inside gencen 7680 F 4<br class="" /> done gencen 7680<br class="" /> start locglob_lexico: 4 7680 30720 2.00000009E-03<br class="" /> locglob: 1 1 30720<br class="" /> locglob:
2 3664 30720<br class="" /> locglob: 1 7761 � A0 30720<br>
<br class="" /> locglob: 2 7761 30720<br class="" /> Performing unique_vertex2 self_chk 30720<br class="" /> done locglob_lexico: 7761 7761 30720 4<br class="" /> Performing makecell self_chk 30720<br
class="" /><br class="" /> RMIN: 0.153545E-03<br class="" /> EPS,RMIN: 0.500000E-01 0.153545E-03<br class="" /> I/O Error: No String Terminator sent to PRS<br class="" /> zeroing y: 1 82 -0.75715434E-10<br class="" /> I/O Error: No String Terminator
sent to PRS<br class="" /> zeroing y: 4 82 -0.14778734E-11<br class="" /> I/O Error: No String Terminator sent to PRS<br class="" /> zeroing y: 4 83 0.72759583E-10<br class=""<br>
/>�=<br>
0I/O Error: No String Terminator sent to PRS<br class="" /> zeroing y: 4 123 0.15279482E-09<br class="" />......<br class="" /><br class="" />Does it mean my mesh is still not right?<br class="" /><br class="" /><br class="" />_______________________________________________<br
class="" />Nek5000-users mailing list<br class="" />Nek5000-users@lists.mcs.anl.gov<br class="" />https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users<br class="" /><br class="" />_______________________________________________<br class="" />Nek5000-users
mailing list<br class="" />Nek5000-users@lists.mcs.anl.gov<br class="" />https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users<br class="" /><br class="" /><br class="" /><br class="" />_______________________________________________<br class="" />Nek5000-users
mailing list<br class="" />Nek5000-users@lists.mcs.anl.gov<br class="" />https://lists.mcs.anl.gov/mailman/listinfo<br>
/nek5000<br>
-users<br class="" /><br class="" />_______________________________________________<br>
> Nek5000-users mailing list<br>
> Nek5000-users@lists.mcs.anl.gov<br>
> <a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a><br>
</div>
</span></font>
</body>
</html>