<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Hi Sean,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Yes sounds like what I'm after. I'll have to look into how to use those for my case. If I were to use the time one, would it de-resolve the highly resolved regions after the given time is reached?</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Jon</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 30, 2019 at 10:28 AM Sean M. Couch <<a href="mailto:couch@pa.msu.edu">couch@pa.msu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div name="messageBodySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
<div dir="auto">Hi Jon,
<div dir="auto"><br>
</div>
<div dir="auto">Depending on what exactly you are looking to do, it might already be possible with FLASH. FLASH4 already has the capability to reduce the maximum allowed refinement level as a function of radius. See the runtime parameter `gr_lrefineMaxRedDoByLogR`
and `gr_lrefineMaxRedRadiusFact`. The latter is a bit arcane, but essentially sets the “angular” resolution of the resulting grid. But the value chose depends on the number of zones per block (`nxb`) since the resolution limiting is actually based on the _block_
size, not the _zone_ size directly. </div>
<div dir="auto"><br>
</div>
<div dir="auto">The second already-implemented feature that could be of use here is the runtime param `gr_lrefineMaxRedDoByTime`. This, if True, decreases the maximum allowed refinement level anywhere on the grid as a function of time. The behavior is set by
the params `gr_lrefineMaxRedLogBase`, `gr_lrefineMaxRedTRef`, and `gr_lrefineMaxRedTimeScale`. See appropriate documentation online or the code directly. Combined with `<span>gr_lrefineMaxRedDoByLogR`, this means you
can “de-resolve” the inner region of your grid as the feature you are interested in moves out in radius. This nets you not only a reduction in the total number of zones in the simulation but, usually, a nice increase in the time step size. We have been using
these features, in various combinations, for years in our supernova simulations. </span></div>
<div dir="auto"><br>
</div>
<div dir="auto">This all assumes that you are included the “large” scale region from the very start of your simulation. If you want to map an already-run simulation into a larger domain, literally zooming out, that’s harder. I did it a long time ago (with FLASH
v2!) when I was a grad student but that code and capability are now part of the geological record, I fear. </div>
<div dir="auto"><br>
</div>
<div dir="auto">Sean</div>
<div dir="auto"><br>
</div>
</div>
</div>
<div name="messageSignatureSection"><br>
<div class="gmail-m_3701072861921165815matchFont">----------------------------------------------------------------------
<div style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
Sean M. Couch, Ph.D.</div>
<div style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
Assistant Professor</div>
<div style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
Department of Physics and Astronomy</div>
<div style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
Department of Computational Mathematics, Science, and Engineering</div>
<div style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
Facility for Rare Isotope Beams</div>
<div style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
Michigan State University</div>
<div style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
567 Wilson Rd, 3250 BPS</div>
<div style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
East Lansing, MI 48824</div>
<div style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
(517) 884-5035 --- <a href="mailto:couch@pa.msu.edu" target="_blank">couch@pa.msu.edu</a> --- <a href="http://www.pa.msu.edu/~couch" target="_blank">www.pa.msu.edu/~couch</a></div>
</div>
</div>
<div name="messageReplySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
On May 29, 2019, 1:45 PM -0400, Slavin, Jonathan <<a href="mailto:jslavin@cfa.harvard.edu" target="_blank">jslavin@cfa.harvard.edu</a>>, wrote:<br>
<blockquote type="cite" class="gmail-m_3701072861921165815spark_quote" style="margin:5px;padding-left:10px;border-left:thin solid rgb(26,188,156)">
<div dir="ltr">
<div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">
Hi all,</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">
<br>
</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">
Often simulators will use zoom-in simulations - taking a part of a large simulation to focus on a small region of interest. I would like to do the opposite. I would like to take a fairly small scale simulation and embed it in a larger smooth background and
reduce the refinement by a level or two. I imagine that this will require some significant coding, but I was wondering if anyone had tried something like this or could offer suggestions on how to do it. Thanks in advance for any help.</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">
<br>
</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">
Regards,</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">
Jon</div>
<div><br>
</div>
--<br>
<div dir="ltr" class="gmail-m_3701072861921165815gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><img src="https://lh6.googleusercontent.com/mJuf9zI6QC5w6HPVCinnLSkpp-RgufOfl7nw1E_aghDflNhusoRbZTuP_0x-RkECQRhIfvPxGMe6zSt6chyXZ7D5DdqtkZPp0q-TE8itKny8VWObWAiZ1aurYWDO0CtZgvJEXfzu" width="350" height="2" style="font-size: 12.6667px; font-family: Arial; white-space: pre-wrap; border: none;"></div>
<div dir="ltr">Jonathan D. Slavin</div>
<div dir="ltr">Astrophysicist - High Energy Astrophysics Division</div>
<div dir="ltr">Center for Astrophysics | Harvard & Smithsonian</div>
<div dir="ltr">Office: (617) 496-7981 | Cell: (781) 363-0035<br>
60 Garden Street | MS 83 | Cambridge, MA 02138</div>
</div>
<div dir="ltr"><span>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9.5pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><img src="https://lh6.googleusercontent.com/mJuf9zI6QC5w6HPVCinnLSkpp-RgufOfl7nw1E_aghDflNhusoRbZTuP_0x-RkECQRhIfvPxGMe6zSt6chyXZ7D5DdqtkZPp0q-TE8itKny8VWObWAiZ1aurYWDO0CtZgvJEXfzu" width="350" height="2" style="border: none;"></span><span style="font-size:9.5pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><br>
</span></p>
</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><img src="https://lh6.googleusercontent.com/mJuf9zI6QC5w6HPVCinnLSkpp-RgufOfl7nw1E_aghDflNhusoRbZTuP_0x-RkECQRhIfvPxGMe6zSt6chyXZ7D5DdqtkZPp0q-TE8itKny8VWObWAiZ1aurYWDO0CtZgvJEXfzu" width="350" height="2" style="font-size: 12.6667px; font-family: Arial; white-space: pre-wrap; border: none;"></div><div dir="ltr">Jonathan D. Slavin</div><div dir="ltr">Astrophysicist - High Energy Astrophysics Division</div><div dir="ltr">Center for Astrophysics | Harvard & Smithsonian</div><div dir="ltr">Office: (617) 496-7981 | Cell: (781) 363-0035<br>60 Garden Street | MS 83 | Cambridge, MA 02138</div></div><div dir="ltr"><span><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9.5pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><img src="https://lh6.googleusercontent.com/mJuf9zI6QC5w6HPVCinnLSkpp-RgufOfl7nw1E_aghDflNhusoRbZTuP_0x-RkECQRhIfvPxGMe6zSt6chyXZ7D5DdqtkZPp0q-TE8itKny8VWObWAiZ1aurYWDO0CtZgvJEXfzu" width="350" height="2" style="border: none;"></span><span style="font-size:9.5pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><br></span></p></span></div></div></div></div></div></div></div>