<div dir="ltr"><font color="#000000">Hi Thibault! </font><div><font color="#000000"><br></font></div><div><font color="#000000"><span style="font-family:arial,helvetica,sans-serif">>>For my case, the density gradients in the white frame are big enough to be identify by the AMR</span><br></font></div><div><span style="font-family:arial,helvetica,sans-serif"><font color="#000000">Refinement is mainly determined by gradients and not by values, as exposed by eq. 8.1 in user manual.</font></span></div><div><span style="font-family:arial,helvetica,sans-serif"><font color="#000000"><br></font></span></div><div><font color="#000000"><font face="arial, helvetica, sans-serif">Play with "refine_cutoff" and </font>"derefine_cutoff" is much easier than properly set the “Grid_markRefineSpecialized” routine. </font></div><div><font color="#000000"><br></font></div><div><font color="#000000"><span style="font-family:arial,helvetica,sans-serif">>>if </span><em style="font-family:arial,helvetica,sans-serif">refine_var_1 = "dens"</em><span style="font-family:arial,helvetica,sans-serif">, I tried </span><em style="font-family:arial,helvetica,sans-serif">refine_cutoff_1 =1e-5</em><span style="font-family:arial,helvetica,sans-serif"> to blunder the AMR for densities below 1e-5 g/cc but I >>haven't noticed any >>consequences. </span><span style="font-family:arial,helvetica,sans-serif;font-size:16px"><br></span></font></div><div><span style="font-family:arial,helvetica,sans-serif"><font color="#000000">Default refine_cutoff value is 0.8. For smaller values you are saying PARAMESH to be more sensible to refine. </font></span></div><div><span style="font-family:arial,helvetica,sans-serif"><font color="#000000">I think you may want to set a larger value than default 0.8. </font></span></div><div><span style="font-family:arial,helvetica,sans-serif"><font color="#000000"><br></font></span></div><div><font color="#000000"><span style="font-family:arial,helvetica,sans-serif">De</span>refine_cutoff default value is 0.2. For larger values PARAMESH is more sensible to derefine. </font></div><div><font color="#000000">So here you may also want to set larger values than 0.2. </font></div><div><br></div><div><font color="#000000">Best regards! </font></div><div><font color="#000000">Ernesto. </font></div><div><font color="#000000"><br></font></div><div><font color="#000000"><br></font></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"><br></span></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"><br></span></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"><br></span></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"><br></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El sáb, 10 abr 2021 a las 14:35, Reyes, Adam (<<a href="mailto:adam.reyes@rochester.edu">adam.reyes@rochester.edu</a>>) escribió:<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 style="overflow-wrap: break-word;">
Hi Thibault,
<div><br>
</div>
<div>You can make use of the routine “Grid_markRefineSpecialized” located in "<span>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" target="_blank">Specialized
Refinement Routines</a>. </div>
<div><br>
</div>
<div>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><br>
</div>
<div>Adam</div>
<div><span><br>
</span></div>
<div><span><br>
<blockquote type="cite">On Apr 10, 2021, at 6:32 AM, Thibault Goudal <<a href="mailto:thibault.goudal@u-bordeaux.fr" target="_blank">thibault.goudal@u-bordeaux.fr</a>> wrote:<br>
<br>
Hi everyone,<br>
I''ve been working on 2D FLASH simulations in cartesian geometry with a laser.<br>
<br>
<span id="gmail-m_4008961616436962649cid:00bd692cd30dfe70aca5fe84fe27bacdb59af5cb@zimbra"><Capture1.PNG></span><br>
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>
During the laser irradiation, the target is ablated and ejected through the pseudo vaccum (see the white frame).<br>
<br>
My question is: How could I tell FLASH to not refine the region framed?<br>
<br>
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>
I tried to play with it but I haven't see any effects on the refinement.<br>
For my case, the density gradients in the white frame are big enough to be identify by the AMR.<br>
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>
<br>
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>
<br>
If you have any idea about how tune the AMR option to solve this kind of issue, let me know!<br>
<br>
Have a great week-end<br>
<br>
--<br>
Thibault Goudal<br>
PhD Student CEA<br>
CELIA CNRS UMR5107 laboratory<br>
+33664160842<br>
<a href="mailto:thibault.goudal@u-bordeaux.fr" target="_blank">thibault.goudal@u-bordeaux.fr</a><br>
</blockquote>
</span><br>
</div>
</div>
</blockquote></div>