<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Thibault,
<div class=""><br class="">
</div>
<div class="">You can make use of the routine “Grid_markRefineSpecialized” located in "<span class="">source/Grid/GridMain/paramesh/“. See also the section in the users guide on </span><a href="http://flash.uchicago.edu/site/flashcode/user_support/flash4_ug_4p62/node59.html#SECTION05163000000000000000" class="">Specialized
 Refinement Routines</a>. </div>
<div class=""><br class="">
</div>
<div class="">You’ll want to copy the routine “Grid_markRefineDerefine” to your simulation directory and add a call to “Grid_markRefineSpecialized” near the other specialized refinement routine calls. The “RECTANGLE” criterion should do what you want with the
 “lref” argument set to your desired refinement level for the region.</div>
<div class=""><br class="">
</div>
<div class="">Adam</div>
<div class=""><span class=""><br class="">
</span></div>
<div class=""><span class=""><br class="">
<blockquote type="cite" class="">On Apr 10, 2021, at 6:32 AM, Thibault Goudal <<a href="mailto:thibault.goudal@u-bordeaux.fr" class="">thibault.goudal@u-bordeaux.fr</a>> wrote:<br class="">
<br class="">
Hi everyone,<br class="">
I''ve been working on 2D FLASH simulations in cartesian geometry with a laser.<br class="">
<br class="">
<span id="cid:00bd692cd30dfe70aca5fe84fe27bacdb59af5cb@zimbra"><Capture1.PNG></span><br class="">
On this density map in logarithm scale, a laser hits a modulated target (see the modulation at ~0.030cm) from the bottom at normal incidence.<br class="">
During the laser irradiation, the target is ablated and ejected through the pseudo vaccum (see the white frame).<br class="">
<br class="">
My question is: How could I tell FLASH to not refine the region framed?<br class="">
<br class="">
I noticed in the user guide and previous e-mails by the FLASH community that it exists AMR options such as "refine_cutoff " or "derefine_cutoff " which I think could solve my issue.<br class="">
I tried to play with it but I haven't see any effects on the refinement.<br class="">
For my case, the density gradients in the white frame are big enough to be identify by the AMR.<br class="">
However, the absolute density is quiet low so I guess I could use these informations to tell FLASH that under a certain value in density it should forget what are the gradients and not trigger the AMR refinement.<br class="">
<br class="">
if refine_var_1 = "dens", I tried refine_cutoff_1 =1e-5 to blunder the AMR for densities below 1e-5 g/cc but I haven't noticed any consequences.<br class="">
<br class="">
If you have any idea about how tune the AMR option to solve this kind of issue, let me know!<br class="">
<br class="">
Have a great week-end<br class="">
<br class="">
--<br class="">
Thibault Goudal<br class="">
PhD Student CEA<br class="">
CELIA CNRS UMR5107 laboratory<br class="">
+33664160842<br class="">
<a href="mailto:thibault.goudal@u-bordeaux.fr" class="">thibault.goudal@u-bordeaux.fr</a><br class="">
</blockquote>
</span><br class="">
</div>
</body>
</html>