<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.xcontentpasted0
{mso-style-name:x_contentpasted0;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi Thomas,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am attempting something very similar (though for an astrophysical simulation). Assuming your setup uses Paramesh, there’s a set of routines meant for defining a specific region to be refined: /source/Grid/GridMain/paramesh/{Grid_markRefineSpecialized.F90,gr_markInRectangle.F90}.
Grid_markRefineSpecialized can be called by Grid_markRefineDerefine() and given a specific rectangular (or spherical/elliptical) region to mark all blocks within for refinement.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I personally have not gotten this behavior to work however, the grid seems to just ignore the refinement region, but it might be a place for you to start. I’m still running tests on this, but if anyone else has used this routine and thinks
it may be good for Thomas please chime in. I’ll let you know if I make any progress with this.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-Sean<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><b><span style="font-family:"Times New Roman",serif;color:black">Sean C. Lewis<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif">Doctoral Candidate<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif">Department of Physics<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif">Drexel University</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">flash-users <flash-users-bounces@flash.rochester.edu> on behalf of "Kaldawi, Thomas" <Tkal@lle.rochester.edu><br>
<b>Date: </b>Tuesday, June 6, 2023 at 10:28 AM<br>
<b>To: </b>"flash-users@flash.rochester.edu" <flash-users@flash.rochester.edu><br>
<b>Subject: </b>[FLASH-USERS] Extra Refinement for Area<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<table class="MsoNormalTable" border="0" cellpadding="0" width="100%" style="width:100.0%">
<tbody>
<tr>
<td style="border:none;border-left:solid goldenrod 3.0pt;background:cornsilk;padding:0in 3.0pt 0in 3.0pt">
<p><b><span style="font-family:"Arial",sans-serif;font-variant:small-caps">External.<o:p></o:p></span></b></p>
</td>
</tr>
</tbody>
</table>
<div>
<div>
<p class="MsoNormal"><span class="xcontentpasted0"><span style="font-size:12.0pt;color:black">Hello,
</span></span><span style="font-size:12.0pt;color:black"><o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">I am trying to add refinement to a specific area of the LaserSlab simulation. In the Pdf I sent, I have the entire simulation, which is just a target, support, and two very thin foils at the bottom
connected to the support. As you can see, I have refined the edges of the target and the support; however, the foils are too thin to be recognized. If I increase the total blocks in the y direction to ~70, the two foils can easily be distinguished, but I do
not want this much refinement in the rest of the simulation. Is there a way to simply add blocks/refine only a certain area in the simulation?
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">For clarification, the foils are two different sizes, one is half a micron, and the other is around 30 nanometers; thus, I need a fairly high level of refinement for that area. Also, the foils
are supposed to connect from the yellow/green support to the left wall. However, they cut off before reaching the left side of the window. So, the red foil is indeed supposed to appear between those sections, but for some reason it just cuts off even more
than the second foil.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><span class="xcontentpasted0"><span style="font-size:12.0pt;color:black">Thanks!</span></span><span style="font-size:12.0pt;color:black"><o:p></o:p></span></p>
</div>
</div>
</div>
</body>
</html>