[FLASH-USERS] [EXT] How to make laser ignore hydro boundary conditions
Reyes, Adam
adam.reyes at rochester.edu
Wed Apr 10 11:20:13 EDT 2024
You could also create a “user_defined” boundary condition that implements a reflecting boundary condition with “Grid_bcApplyToRegionSpecialized". There is an example in the “DoubleMachReflection” test problem.
*********************************************
Adam Reyes

Code Group Leader, Flash Center for Computational Science
Research Scientist, Dept. of Physics and Astronomy
University of Rochester
River Campus: Bausch and Lomb Hall, 369
500 Wilson Blvd. PO Box 270171, Rochester, NY 14627
Email adam.reyes at rochester.edu
Web https://flash.rochester.edu
(he / him / his)

*********************************************
> On Apr 10, 2024, at 5:01 PM, Yanfei Hu <huyanfeii at 163.com> wrote:
>
> So I want to use the code "ed_ignoreBoundaryCondition_1=.true." to make the laser ignore the reflection of the boundary. The xr boundary does not reflect the laser, but rather allows the laser to leave the area, as shown in Figure 1 of my last email. I don't know if I can do that.
>
>
>
>
>
> At 2024-04-10 22:52:02, "Reyes, Adam" <adam.reyes at rochester.edu> wrote:
>
> When the rays enter the domain they are traced until they either exit the domain or they deposit all of their energy inside the domain. All of this occurs in a single time step. When all the boundaries are reflecting they can’t leave and so have to deposit all of their energy. In the first time step there probably aren’t any cells absorbing the energy very quickly and so the code appears to hang while it’s just waiting for the rays to lose energy.
> *********************************************
> Adam Reyes
>

> Code Group Leader, Flash Center for Computational Science
> Research Scientist, Dept. of Physics and Astronomy
> University of Rochester
> River Campus: Bausch and Lomb Hall, 369
> 500 Wilson Blvd. PO Box 270171, Rochester, NY 14627
> Email adam.reyes at rochester.edu
> Web https://flash.rochester.edu
> (he / him / his)

>
> *********************************************
>
>
>
>> On Apr 10, 2024, at 4:45 PM, Yanfei Hu <huyanfeii at 163.com> wrote:
>>
>> Dear Adam Reyes,
>>
>> Thank you very much for your answer, but maybe I did not express my thoughts clearly. I hope you can pay attention to my question again.
>>
>> The effect I want is to set all the boundaries as reflection boundaries(xl,xr,yl,yr,zl,zr=reflect) , but only to confine the fluid inside, and to form a closed environment inside. The laser can enter the target directly from the outside through the boundary, and when the laser is reflected back to the boundary, the laser can also pass through the boundary without being reflected. Just like Figure 1.
>>
>> 
>> Figure1. Desired effect
>>
>> I tried a few boundary conditions, but they didn't work out the way I wanted.
>>
>> Case 1(I ran it according to the answers you gave me, and I got the same results as you. As shown in case1.)
>> Set Hydro boundary conditions: "ed_ignoreBoundaryCondition_1=.true. xl_boundary_type=”reflecting” xr_boundary_type=”reflecting” yl_boundary_type=”outflow” yr_boundary_type = "outflow" zl_boundary_type = "reflect" zr_boundary_type = "reflect""
>> Result 1
>> 
>> Figure 2. Case 1 result
>> The result is the same as the one you sent. As show in Figure 2. The laser can enter the cavity and the target, but when the laser is reflected to the xr boundary, it will be reflected back. I hope that when the laser is reflected to the xr boundary, the xr boundary can still let it be transmitted without being reflected.
>>
>> Case 2
>> When I try to set the boundaries of yl,yr to reflect, the code doesn't work.
>> Set Hydro boundary conditions: "ed_ignoreBoundaryCondition_1=.true. xl_boundary_type=”reflecting” xr_boundary_type=”reflecting” yl_boundary_type=”reflecting” yr_boundary_type = "outflow" zl_boundary_type = "reflect" zr_boundary_type = "reflect""
>> and Set Hydro boundary conditions: "ed_ignoreBoundaryCondition_1=.true. xl_boundary_type=”reflecting” xr_boundary_type=”reflecting” yl_boundary_type=”reflecting” yr_boundary_type = "reflecting" zl_boundary_type = "reflect" zr_boundary_type = "reflect""
>>
>> Result 2
>> Unable to run, remains in the starting state. As show in Figure 3.
>>
>> 
>> Figure 3.Case 2 result
>>
>> Could you please tell me how I should set the boundary conditions if I want to achieve the effect shown in Figure 1?
>>
>> Thank you very much for your attention. Your answer will be especially helpful to me. I am looking forward to your reply. Thank you again.
>>
>>
>>
>> Best wishes,
>>
>> Yanfei Hu
>>
>> ----- Original Message -----
>> From: "Reyes, Adam" <adam.reyes at rochester.edu>
>> To: "胡艳菲" <huyanfeii at 163.com>
>> Cc: "FLASH code" <flash-users at flash.rochester.edu>
>> Sent: Wed, 10 Apr 2024 09:23:23 +0000
>> Subject: Re: [FLASH-USERS] How to make laser ignore hydro boundary conditions
>>
>> Hi Yanfei,
>>
>> You shouldn’t need to do anything else. Taking the provided laserslab setup and changing the XR boundary to reflecting and setting ed_ignoreBoundaryCondition_1=.true. gives the expected result:
>>

>>
>> You can see the rays enter the right reflecting boundary and then reflect again when they return.
>> *********************************************
>> Adam Reyes
>>

>> Code Group Leader, Flash Center for Computational Science
>> Research Scientist, Dept. of Physics and Astronomy
>> University of Rochester
>> River Campus: Bausch and Lomb Hall, 369
>> 500 Wilson Blvd. PO Box 270171, Rochester, NY 14627
>> Email adam.reyes at rochester.edu
>> Web https://flash.rochester.edu
>> (he / him / his)

>>
>> *********************************************
>>
>>
>>
>>> On Apr 10, 2024, at 10:32 AM, 胡艳菲 <huyanfeii at 163.com> wrote:
>>>
>>> Dear Flash users,
>>>
>>> I encountered some problems in the simulation of the 3D in 2D Laserslab model based on cylindrical coordinates and wanted to do plasma simulation in a closed chamber filled with air pressure.The problems encountered are as follows:
>>>
>>> I tried to set up a closed chamber, but it didn't work. I want the hydro boundary to be a closed environment, but the laser can still enter the boundary and interact with the target. I see that if I want to set the hydro boundary condition to "reflect", that is, set "xr_boundary_type = "reflect", yl_boundary_type = "reflect",yr_boundary_type = "reflect", We can use the run parameter "ed_ignoreBoundaryCondition_n" to make the laser ignore boundary conditions, but I added the code "ed_ignoreBoundaryCondition_1=.true." in the.par file, and it didn't take effect. The laser still does not enter the calculation area through the boundary.
>>>
>>> I want to know how to make the code for "ed_ignoreBoundaryCondition_1=.true." work. Whether to modify other files. If anyone knows, please let me know, I would appreciate it.
>>>
>>> All the best,
>>>
>>> Yanfei Hu
>>>
>>>
>>> _______________________________________________
>>> flash-users mailing list
>>> flash-users at flash.rochester.edu
>>>
>>> For list info, including unsubscribe:
>>> https://flash.rochester.edu/mailman/listinfo/flash-users
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240410/49c74f96/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FLASH.jpg
Type: image/jpeg
Size: 23876 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240410/49c74f96/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FLASH-pride-sml.png
Type: image/png
Size: 12732 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240410/49c74f96/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FLASH.jpg
Type: image/jpeg
Size: 23876 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240410/49c74f96/attachment-0004.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FLASH-pride-sml.png
Type: image/png
Size: 12732 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240410/49c74f96/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 80554 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240410/49c74f96/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 159921 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240410/49c74f96/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 170228 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240410/49c74f96/attachment-0011.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.png
Type: image/png
Size: 208650 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240410/49c74f96/attachment-0012.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FLASH.jpg
Type: image/jpeg
Size: 23876 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240410/49c74f96/attachment-0005.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FLASH-pride-sml.png
Type: image/png
Size: 12732 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240410/49c74f96/attachment-0013.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1391 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20240410/49c74f96/attachment-0001.p7s>
More information about the flash-users
mailing list