[FLASH-USERS] [EXT] boundary conditions and refinement

Reyes, Adam adam.reyes at rochester.edu
Sat Apr 10 13:35:03 EDT 2021


Hi Thibault,

You can make use of the routine “Grid_markRefineSpecialized” located in "source/Grid/GridMain/paramesh/“. See also the section in the users guide on Specialized Refinement Routines<http://flash.uchicago.edu/site/flashcode/user_support/flash4_ug_4p62/node59.html#SECTION05163000000000000000>.

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.

Adam


On Apr 10, 2021, at 6:32 AM, Thibault Goudal <thibault.goudal at u-bordeaux.fr<mailto:thibault.goudal at u-bordeaux.fr>> wrote:

Hi everyone,
I''ve been working on 2D FLASH simulations in cartesian geometry with a laser.

<Capture1.PNG>
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.
During the laser irradiation, the target is ablated and ejected through the pseudo vaccum (see the white frame).

My question is: How could I tell FLASH to not refine the region framed?

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.
I tried to play with it but I haven't see any effects on the refinement.
For my case, the density gradients in the white frame are big enough to be identify by the AMR.
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.

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.

If you have any idea about how tune the AMR option to solve this kind of issue, let me know!

Have a great week-end

--
Thibault Goudal
PhD Student CEA
CELIA CNRS UMR5107 laboratory
+33664160842
thibault.goudal at u-bordeaux.fr<mailto:thibault.goudal at u-bordeaux.fr>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20210410/b495773a/attachment.htm>


More information about the flash-users mailing list