[FLASH-USERS] about setup a designed target configuration

shuhua shuhua1979 at 163.com
Mon Aug 14 03:24:33 EDT 2023


dear the flash developers

 i am a new learner of flash. i have learned how to run the laserslab example and it runs well.

now i want to change the target configuration(show in the figure). the target is al and foams and the interface of al and foam is  sinusoidal modulation.

could you give me any advices on how to achieve it




Yours

Hua Shu







At 2023-05-24 21:28:26, "Ryan Farber" <rjfarber at umich.edu> wrote:

Hi Hua Shu,


I'd suggest reading the user guide (available here: https://flash.rochester.edu/site/flashcode/user_support/) which has a wealth of information.


To your question, you can modify your problem set up by navigating to the problem directory. For LaserSlab that's located:

${FLASH_DIR}/FLASH4.7/source/Simulation/SimulationMain/LaserSlab/



Then, modify Simulation_initBlock.F90 in your preferred text editor. In particular you probably want to modify these lines:



           if (sim_initGeom == "slab") then

              if(NDIM == 1) then

                 if ( xcent(i) <= sim_targetHeight + sim_vacuumHeight .and. &

                      xcent(i) >= sim_vacuumHeight ) then

                    species = TARG_SPEC

                 end if

              elseif(NDIM == 2 .or. NDIM == 3) then

                 if ( xcent(i) <= sim_targetRadius .and. &

                      ycent(j) <= sim_targetHeight + sim_vacuumHeight .and. &

                      ycent(j) >= sim_vacuumHeight ) then

                    species = TARG_SPEC

                 end if

              end if

           else

               if (sqrt(xcent(i)**2+ycent(j)**2+zcent(k)**2)<= sim_targetRadius) then

                  species = TARG_SPEC

              end if

           end if



I'm not quite sure what you mean by a ripple target. Maybe instead of a spherical/cylindrical selection just add some sines and cosines?


Best,
--------
Ryan




On Wed, May 24, 2023 at 4:36 AM shuhua <shuhua1979 at 163.com> wrote:


dear flash developers.i am learning the flash software. i have download flash4.7 and have run LaserSlab, everything is ok.now i have a question , how can i change the target configuration ? for example a ripple target?look forward to your reply yourshua shu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20230814/98bedd09/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 30782 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20230814/98bedd09/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flash simulation target.docx
Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
Size: 47175 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20230814/98bedd09/attachment.docx>


More information about the flash-users mailing list