[FLASH-USERS] about setup a designed target configuration

shuhua shuhua1979 at 163.com
Wed May 24 21:48:21 EDT 2023


dear Ryan

 

First of all, thank you very much for your kind reply. I have download the user guide of flash4.7. As I am not a native English speaker, It was a little difficult for me to understand the user guide accurately. but I will still read the user guide carefully. 
I believe that under your guidance my learning progress will be faster.  I hope you can give me more guidance and help . I want to setup a new simulation as shown in the figure below. The perturbation is cosine.

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/20230525/aaa6c439/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/20230525/aaa6c439/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/20230525/aaa6c439/attachment.docx>


More information about the flash-users mailing list