<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p>Dear Prof. Federrath,</p>
<p><span>Thank you very much for providing <span>the reason for subtracting the bulk momentum</span>. At present, I have opted to maintain this term activated in my simulations. If it prove effective, excellent. However, if any issues arise, I will not hesitate
to seek your help.</span></p>
<p><span><br>
</span></p>
<p><span>I also thank you for sharing the link for your TurbGen code. I am sure it will be helpful. If I am not wrong, I believe it is the same code in 'StirFromFile' directory of Flash code.
<br>
</span></p>
<p><span><br>
</span></p>
<p><span><span>In my simulations, ensuring a fixed and known energy supply rate is crucial. Could you provide insight into whether achieving this is feasible and, if so, what parameters would need to be controlled?
</span><span>Any guidance on this matter would be highly appreciated.</span> <br>
</span></p>
<p><span><br>
</span></p>
<p><span><br>
</span></p>
<p><span>Best regards,</span></p>
<p><span>Shadab<br>
</span></p>
<p><span><br>
</span></p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Christoph Federrath <christoph.federrath@gmail.com><br>
<b>Sent:</b> Tuesday, May 14, 2024 4:50:32 AM<br>
<b>To:</b> Alam Shadab TU Ilmenau<br>
<b>Cc:</b> flash-users@flash.rochester.edu<br>
<b>Subject:</b> Re: [FLASH-USERS] Question regarding velocity update in Stir.F90</font>
<div> </div>
</div>
<div>
<div><br>
</div>
<div>Dear Shadab,</div>
<div><br>
</div>
<div>I implemented this. The reason for subtracting the bulk momentum is that we normally use continuous turbulence driving in periodic box simulations, such that the gas remains in the zero-momentum rest frame. It is usually a tiny correction, so switching
this off mostly likely wouldn’t matter, but I chose to do it to make the momentum perfectly zero in x, y, z. If you have a different application in mind that would require you to keep the momentum, I’d be happy to chat further or make this a user parameter,
for instance. Btw: the most recent TurbGen code is available here (which includes some extra features, such as automatic amplitude adjustment, etc.):</div>
<div>
<div style="display:block">
<div class="apple-rich-link" style="display:inline-block"><a class="lp-rich-link" rel="nofollow" href="https://www.mso.anu.edu.au/~chfeder/codes/turbgen/turbgen.html" dir="ltr" width="300" style="border-radius:10px; display:block; width:300px; overflow:hidden; text-decoration:none">
<table class="lp-rich-link-emailBaseTable" cellpadding="0" cellspacing="0" border="0" width="300" style="table-layout:fixed; border-collapse:collapse; width:300px; background-color:#E5E6E9">
<tbody>
<tr>
<td>
<table bgcolor="#E5E6E9" cellpadding="0" cellspacing="0" width="300" class="lp-rich-link-captionBar" style="table-layout:fixed">
<tbody>
<tr>
<td class="lp-rich-link-captionBar-textStackItem" style="padding:8px 0px 8px 0px">
<div class="lp-rich-link-captionBar-textStack" style="max-width:100%; margin:0px 16px 0px 16px; overflow:hidden">
<div class="lp-rich-link-captionBar-textStack-topCaption-leading" style="word-wrap:break-word; font-weight:500; font-size:12px; overflow:hidden; text-overflow:ellipsis; text-align:left">
<a rel="nofollow" href="https://www.mso.anu.edu.au/~chfeder/codes/turbgen/turbgen.html" style="text-decoration:none"><font color="#272727" style="">Federrath - Codes</font></a></div>
<div class="lp-rich-link-captionBar-textStack-bottomCaption-leading" style="word-wrap:break-word; font-weight:400; font-size:11px; overflow:hidden; text-overflow:ellipsis; text-align:left">
<a rel="nofollow" href="https://www.mso.anu.edu.au/~chfeder/codes/turbgen/turbgen.html" style="text-decoration:none"><font color="#808080" style="">mso.anu.edu.au</font></a></div>
</div>
</td>
<td class="lp-rich-link-captionBar-rightIconItem" width="36" style="padding:6px 12px 6px 0px">
<a rel="nofollow" href="https://www.mso.anu.edu.au/~chfeder/codes/turbgen/turbgen.html"></a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</a></div>
</div>
</div>
<div><br>
</div>
<div>Best regards,</div>
<div>Christoph</div>
<div><br>
</div>
<div style=""><span style="font-size:11px"><i>—</i></span></div>
<div style="">
<div style="background-color:rgb(255,255,255); margin:0px; line-break:after-white-space">
<font color="#696567" style="font-size:11px"><b><i><span style="margin:0px"><span style="margin:0px"><span style="margin:0px">Professor </span></span></span>Christoph Federrath</i></b></font></div>
<div style="background-color:rgb(255,255,255); margin:0px; line-break:after-white-space">
<span style="margin:0px; font-size:11px"><i><font color="#696567">Research School of Astronomy & Astrophysics</font></i></span></div>
<div style="background-color:rgb(255,255,255); margin:0px; line-break:after-white-space">
<font color="#696567"><span style="margin:0px"><i><span style="font-size:11px; margin:0px">Australian National University, Canberra, ACT, Australia</span><br>
<span style="margin:0px; font-size:11px"><i>Tel: </i></span></i></span><a href="tel:+61-2-6125-0217" style="font-size:11px"><i>+61-2-6125-0217</i></a></font></div>
</div>
<div style="">
<div style="line-break:after-white-space">
<div><span style="font-size:11px"><i><font color="#696567">Web: <a href="https://www.mso.anu.edu.au/~chfeder">https://www.mso.anu.edu.au/~chfeder</a></font></i></span></div>
</div>
</div>
<div><br>
<blockquote type="cite">
<div>On 13 May 2024, at 10:08 PM, Alam Shadab TU Ilmenau <shadab.alam@tu-ilmenau.de> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-style:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-size:12pt; font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div style="margin-top:0px; margin-bottom:0px">Hi,</div>
<div style="margin-top:0px; margin-bottom:0px"><br>
</div>
<p style="margin-top:0px; margin-bottom:0px"></p>
<span>I have a query about why the 'momentum/mass' is subtracted during the velocity update in the forcing unit. Here's the snippet from Stir.F90 for reference.</span>
<div style="margin-top:0px; margin-bottom:0px"><br>
</div>
<div style="margin-top:0px; margin-bottom:0px"><span id="cid:b6991838-bdab-48cb-aa19-8d0e87f6c5c6"><Screenshot from 2024-05-13 13-51-41.png></span><br>
</div>
<div style="margin-top:0px; margin-bottom:0px">Could anyone please clarify this?<br>
</div>
<div style="margin-top:0px; margin-bottom:0px"><br>
</div>
<div style="margin-top:0px; margin-bottom:0px">Best regards,</div>
<div style="margin-top:0px; margin-bottom:0px">Shadab<br>
</div>
</div>
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">_______________________________________________</span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">flash-users
mailing list</span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<a href="mailto:flash-users@flash.rochester.edu" style="font-family:Helvetica; font-size:12px; font-style: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">flash-users@flash.rochester.edu</a><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<br style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">For
list info, including unsubscribe:</span><br style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<a href="https://flash.rochester.edu/mailman/listinfo/flash-users" style="font-family:Helvetica; font-size:12px; font-style: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">https://flash.rochester.edu/mailman/listinfo/flash-users</a></div>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>