<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1796219329;
mso-list-type:hybrid;
mso-list-template-ids:2135061506 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi Mohammad,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Apologies if someone has already answered you, but here are the basics for setting up your own problem:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<ol style="margin-top:0in" start="1" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1"><span style="font-size:11.0pt">Each simulation directory inside SimulationMain has its own Config file. This is where you would define your own custom runtime parameters with default
values. This tells the code (during setup) about all the runtime parameters that can potentially be read in from the flash.par file.<o:p></o:p></span></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1"><span style="font-size:11.0pt">Usually, one also defines the same parameters inside Simulation_data.F90 in order to use them as local variables within the other Simulation_* subroutines
(and potentially elsewhere in the code).<o:p></o:p></span></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1"><span style="font-size:11.0pt">Simulation_init.F90 is where you initialize those variables defined in Simulation_data.F90. The typical approach is to use a call to RuntimeParameters_get()
to assign a Config runtime parameter to a local variable that you defined in Simulation_data.F90.<o:p></o:p></span></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1"><span style="font-size:11.0pt">Simulation_initBlock.F90 is where you define your domain by going through do loops and assigning values based on position or some other criteria. One
of the more common ways of initializing a plasma is to define its density and temperatures (assuming 3T), and set eosModeInit = “dens_temp_gather” in your flash.par file. EOS is always called after the simulation initialization, and this mode will correctly
initialize the pressures and energies for you.<o:p></o:p></span></li></ol>
<p class="MsoListParagraph"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Hopefully that all made sense to you and gets you started.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">--</span><span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:#181A1B">Eddie Hansen</span><span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:#181A1B">Applications Group Leader<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:#181A1B">Flash Center for Computational Science</span><span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="color:black">From:
</span></b><span style="color:black">flash-users <flash-users-bounces@flash.rochester.edu> on behalf of phz238490 <phz238490@iitd.ac.in><br>
<b>Date: </b>Monday, September 30, 2024 at 1:52 AM<br>
<b>To: </b>flash-users@flash.rochester.edu <flash-users@flash.rochester.edu><br>
<b>Subject: </b>[FLASH-USERS] Regarding FLASH simulation basics<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Dear Flash users,<br>
My name is Mohammad Yasir, and I have recently started my doctoral <br>
studies. As part of my work, I am looking to simulate laser-matter <br>
interactions and FLASH is going to be part of my repertoire.<br>
<br>
I have been going through the FLASH user manual and while the running <br>
process itself is straightforward, I am unable to understand how to <br>
setup my own simulations. Here us what I know so far:<br>
1. To setup a simulation, there are a number of files I must define, <br>
including config file, a few f90 files and flash.par file. Then compile <br>
the program and execute. That sounds straightforward.<br>
2. I know that the config file contains information about required <br>
headers, runtime parameters, etc. I know what each f90 file is supposed <br>
to do. But that is where it gets muddy for me. I would be obliged if you <br>
could help me understand some things.<br>
<br>
1. I can figure out what units to use depending on the physics I <br>
require. But what about the runtime variables, etc. I went through the <br>
test Sedov problem. It defines sim_rhoAmbient and such variables. But <br>
why and where is this used? Theoretically, what's stopping me from <br>
defining a variable called my_dummy_variable, giving it a value. And if <br>
I did define it, how would FLASH know what to do with it?<br>
2. To setup a simulation, which variables SHOULD I define?<br>
3. Once defined, how does FLASH know what these variables are, how they <br>
evolve, and what to do with them?<br>
<br>
As someone who is more accustomed to PIC simulations using EPOCH/SMILEI, <br>
this is new territory for me, and I apologize if the questions don't <br>
make sense. If someone has a resource that explains the process better, <br>
or someone has ideas on how to make it simpler, kindly let me know.<br>
<br>
<br>
Regards,<br>
Mohammad Yasir<br>
Research Scholar<br>
Department of Physics<br>
_______________________________________________<br>
flash-users mailing list<br>
flash-users@flash.rochester.edu<br>
<br>
For list info, including unsubscribe:<br>
<a href="https://flash.rochester.edu/mailman/listinfo/flash-users">https://flash.rochester.edu/mailman/listinfo/flash-users</a><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>