[FLASH-USERS] about setup a designed target configuration
Ryan Farber
rjfarber at umich.edu
Wed May 24 10:28:26 EDT 2023
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
>
> yours
>
> hua shu
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20230524/ea034de6/attachment-0001.htm>
More information about the flash-users
mailing list