[FLASH-USERS] [EXTERNAL] Nonuniform Initial Temperature

Marissa B. P. Adams marissa at flash.uchicago.edu
Wed Jul 1 14:15:32 EDT 2020


Hi Nick!

That looks like what you’re probably going to have to do. I would recommend making a new directory in …/SimulationMain/ and copying over the necessary files you need to get LaserSlab to run (there are a multitude of flash.par files in there that are probably not necessary, for instance). Take a gander at Chapter 3 in the User Manual (http://flash.uchicago.edu/site/flashcode/user_support/flash4_ug_4p61.pdf <http://flash.uchicago.edu/site/flashcode/user_support/flash4_ug_4p61.pdf>), which has information on setting up your new problem.

From what it sounds like, you could probably get your profile from data in some sort of file format, like….  columns for {x,y,z} and the temperatures you need (keep in mind that FLASH has 3T capabilities so you can access the electron, ion, and radiation temperatures). You can then preform some sort of file I/O in the Simulation_initBlock.F90 to read in those values, etc.

That is how I’d start doing such a problem :) if you’re experimenting with different profiles based on experiments, you can even make the string for the file a runtime parameter so then you don’t need to make a new executable for each run!

Best,
Marissa

> On Jul 1, 2020, at 14:09, Hartley, Nicholas J <njh at slac.stanford.edu> wrote:
> 
> Hi Marissa,
>  
> Thanks for the reply. I’m actually trying to simulate sample evolution after heating by a particle beam – as I understand it, that can’t be done directly in FLASH, but since the heating timescale is much shorter than the hydrodynamic evolution timescale, I think initializing the sample with the temperature profile from the beam would be a close approximation. I’ll try going into the Simulation_initBlock.F90 first and see what I can make of that, but it sounds like it might have to be an entirely new problem module…
>  
> Nick
>  
> From: Marissa B. P. Adams <marissa at flash.uchicago.edu> 
> Sent: Wednesday, July 1, 2020 11:04 AM
> To: Hartley, Nicholas J <njh at slac.stanford.edu>
> Cc: flash-users at flash.uchicago.edu
> Subject: Re: [EXTERNAL] [FLASH-USERS] Nonuniform Initial Temperature
>  
> Hi Nick,
>  
> Depends what you want to do. if you want to change the initial temperature of the target, e.g. sim_teleTarg = 58923704912948201e12 then you can simply just do so in the flash.par file and run as expected.
>  
> However say you would like to initialize a gradient in the target. This would require you to go into the associated file, Simulation_initBlock.F90 and initialize to your desires there. Then you go through the same sort of process as you did to obtain the executable and run the executable. 
>  
> Effectively the difference lies between whether or not the current set up is satisfactory and you just need to tune the given parameters, or you may want to do something that requires developing your own problem module (based off of the laser slab provided example problem).
>  
> I hope that makes sense.
>  
> Best,
> Marissa
>  
> %———————————————————%
> Marissa B. P. Adams
> (she/her/hers)
> Phd Candidate, University of Rochester
> E-mail: madams at pas.rochester.edu <mailto:madams at pas.rochester.edu>
> Website: https://www.pas.rochester.edu/~madams <http://www.pas.rochester.edu/~madams>
> Twitter: https://twitter.com/mbpadams <https://twitter.com/mbpadams>
> Current Location:
> 371 Bausch and Lomb Hall
> University of Rochester
> Rochester, NY 14627
> 
> 
> On Jul 1, 2020, at 13:15, Hartley, Nicholas J <njh at slac.stanford.edu <mailto:njh at slac.stanford.edu>> wrote:
>  
> Hi all,
>  
> I’ve recently started using FLASH, but am having trouble moving beyond the example simulations. Specifically, I’m trying to run a simulation with a non-uniform initial temperature. However, since the LaserSlab example defines the temperature by sim_teleTarg = 290, I’m not really sure how to expand that to a more complicated case, and I couldn’t find the relevant information in the use guide. If you could help, or point me to where I could find out more, that would be great.
>  
> Cheers,
> Nick

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20200701/affad4f1/attachment-0001.htm>


More information about the flash-users mailing list