<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>body{font-family:Helvetica,Arial;font-size:13px}</style>
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
Hi Jon,</div>
<div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
<br>
</div>
<div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
I’d stick a custom version of `Grid_markRefineDerefine.F90` in your Simulation directory and use time-dependent criteria to call `Grid_markRefineSpecialized` from there. You can get the simtime from Driver by calling `Driver_getSimTime`. In my experience, it’s
generally best to put your custom stuff at the bottom of `Grid_markRefineDerefine.F90`. </div>
<div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
<br>
</div>
<div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">
Also, if you’re trying to force a region to DE-refine after some time, that can be tricky. FLASH is, by default, very conservative about derefining. For that, I’ve had to customize the routine `gr_markInRadius.F90` to flag that a block be derefined as well
as refined.</div>
<br>
<div id="bloop_sign_1515178916775985920" class="bloop_sign">Cheers,
<div>Sean</div>
</div>
<br>
<p class="airmail_on">On January 5, 2018 at 1:51:10 PM, Slavin, Jonathan (<a href="mailto:jslavin@cfa.harvard.edu">jslavin@cfa.harvard.edu</a>) wrote:</p>
<blockquote type="cite" class="clean_bq"><span>
<div>
<div></div>
<div>
<title></title>
<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">
I'm wondering about the best approach to forcing grid refinement in a given location, but only for a particular time. My purpose in doing this is so that when I set off a supernova explosion the grid will be well refined at the explosion site. Once the explosion
has been initiated and before the explosion time, the default refinement criteria should, and do, work fine, so I'm concerned that if I do something like use Grid_markRefineSpecialized that it will always be called. As I understand it, Grid_markRefinedSpecialized
is supposed to be called from Grid_markRefineDerefine.</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">
I'm wondering if I could use Simulation_adjustEvolution for this purpose. So, if the time is right (explosion about to occur), force refinement in the appropriate region - though I'm not clear how to do that forcing. I noticed that Simulation_adjustEvolution
is called before source terms are applied in Driver_evolveFlash.</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">
Any suggestions?</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 class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">________________________________________________________<br>
Jonathan D. Slavin Harvard-Smithsonian CfA<br>
<a href="mailto:jslavin@cfa.harvard.edu" target="_blank">jslavin@cfa.harvard.edu</a> 60 Garden Street, MS 83<br>
phone: (617) 496-7981 Cambridge, MA 02138-1516<br>
cell: (781) 363-0035 USA<br>
________________________________________________________<br>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</span></blockquote>
</body>
</html>