[FLASH-USERS] Multiple targets in LaserSlab
Smith, Joseph R.
smith.10838 at buckeyemail.osu.edu
Thu May 30 11:12:01 EDT 2019
Hi Graeme,
A good place to start would be to take a look at the 'Simulation_initBlock' Fortran 90 file, found here:
FLASH[Version]/source/Simulation/SimulationMain/LaserSlab/Simulation_initBlock.F90
to see how parameters from the [flash].par file are used to initialize the simulation.
For example, in 1D, consider the lines:
if(NDIM == 1) then
if ( xcent(i) <= sim_targetHeight + sim_vacuumHeight .and. &
xcent(i) >= sim_vacuumHeight ) then
species = TARG_SPEC
end if
which define where the target is (later in the file notice the 'if(TARG_SPEC)' statement that sets the density and temperatures for the target). One way to add a second region for the target would be to modify the if statement (if ( xcent(i) <= sim_targetHeight...) or add a second if statement covering that region.
For example you could add a variable called something like sim_targetSeparation to define the distance between the targets. If you add a new variable remember to also add it to the Config file, Simulation_init.F90, and Simulation_data.F90 following how the other parameters are defined in those (there may be another place to change it as well that I'm not thinking of). Then you can set that variable in your flash.par file just like the others.
You may want to make a copy of the LaserSlab directory (e.g. when you're in SimulationMain: cp -r LaserSlab LaserSlab2) or keep copies of the original files for reference. If you do this, the setup command would change from ./setup ... LaserSlab ... to ./setup ... LaserSlab2 ...
Best,
Joe
________________________________
From: flash-users-bounces at flash.uchicago.edu <flash-users-bounces at flash.uchicago.edu> on behalf of Graeme Scott - UKRI STFC <graeme.scott at stfc.ac.uk>
Sent: Thursday, May 30, 2019 9:29:22 AM
To: flash-users at flash.uchicago.edu
Subject: [FLASH-USERS] Multiple targets in LaserSlab
Hi,
I’ve just started using FLASH, and its probably quite a basic question but I wondered if there was a simple way to modify the LaserSlab example such that I have two solid density targets with vacuum (or Helium) in between. I’d also be looking to have enough vacuum between each target and the boundary as I intend to irradiate each with an independent laser.
Any help or advice on how I could go about achieving this would be much appreciated.
Many thanks,
Graeme
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20190530/a1b26d79/attachment-0001.htm>
More information about the flash-users
mailing list