<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Tony,
<div class=""><br class="">
</div>
<div class="">The EOS gets called during the grid initialization after Simulation_initBlock, you can look for instances of “Eos_wrapped”. The purpose is to ensure thermodynamic consistency between temperature pressure & internal energy in the initial conditions.
How that is done depends on the choice of the Eos mode, controlled by the runtime parameter “eosModeInit”. You can look at <a href="http://flash.uchicago.edu/site/flashcode/user_support/flash4_ug_4p62/node110.html#Tab:3TEos_MODES" class="">Table 16.1</a> from
the users guide for the different options.</div>
<div class=""><br class="">
</div>
<div class="">
<div class=""> eosModeInit [STRING] ["dens_ie"]</div>
<div class=""> Valid Values: "dens_ie", "dens_pres", "dens_temp", "dens_ie_all",</div>
<div class=""> "dens_ie_scatter", "dens_ie_gather", "dens_temp_equi", "dens_temp_all",</div>
<div class=""> "dens_temp_gather", "eos_nop"</div>
<div class=""> determines how to operate on thermodynamic quantities for the initial</div>
<div class=""> conditions. A call to Simulation_initBlock sets initial conditions on</div>
<div class=""> each block, and an eos call follows which ensures the initial values are</div>
<div class=""> thermodynamically consistent. The value of eosModeInit determines the</div>
<div class=""> mode in which these eos calls operate. Possible values are "dens_ie",</div>
<div class=""> where density and internal energy are supplied and pressure and</div>
<div class=""> temperature are returned; "dens_pres", where density and pressure are</div>
<div class=""> given and energy and temperature are computed; and "dens_temp", where</div>
<div class=""> density and temperature are given and pressure and energy are computed. </div>
<div class=""> Other values may also be available as, depending on whether a multiTemp</div>
<div class=""> Eos is used and on implementation of additional physics.</div>
<div class=""><br class="">
</div>
<div class="">Adam</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Aug 27, 2021, at 1:47 PM, Alberti, Anthony L <<a href="mailto:anthony.alberti@oregonstate.edu" class="">anthony.alberti@oregonstate.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Ah, the dreaded EOS unit. I figured that might be the case.<o:p class=""></o:p></div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
However, I’m not sure where the EOS unit gets called in my Simulation_initBlock.F90 file (see attached). This is based off of the “SimulationMain/MGDStep” problem that comes with the FLASH distribution. Would you be able to point me to where that unit gets
called?<o:p class=""></o:p></div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Thanks, Eddie.<span class="Apple-converted-space"> </span><o:p class=""></o:p></div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Tony<span class="Apple-converted-space"> </span><o:p class=""></o:p></div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
<div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(181, 196, 223); padding: 3pt 0in 0in;" class="">
<p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<b class=""><span style="font-size: 12pt;" class="">From:<span class="Apple-converted-space"> </span></span></b><span style="font-size: 12pt;" class="">Eddie Hansen <<a href="mailto:ehansen@pas.rochester.edu" style="color: blue; text-decoration: underline;" class="">ehansen@pas.rochester.edu</a>><br class="">
<b class="">Date:<span class="Apple-converted-space"> </span></b>Friday, August 27, 2021 at 9:15 AM<br class="">
<b class="">To:<span class="Apple-converted-space"> </span></b>Alberti, Anthony L <<a href="mailto:anthony.alberti@oregonstate.edu" style="color: blue; text-decoration: underline;" class="">anthony.alberti@oregonstate.edu</a>><br class="">
<b class="">Cc:<span class="Apple-converted-space"> </span></b><a href="mailto:flash-users@flash.uchicago.edu" style="color: blue; text-decoration: underline;" class="">flash-users@flash.uchicago.edu</a><span class="Apple-converted-space"> </span><<a href="mailto:flash-users@flash.uchicago.edu" style="color: blue; text-decoration: underline;" class="">flash-users@flash.uchicago.edu</a>><br class="">
<b class="">Subject:<span class="Apple-converted-space"> </span></b>Re: [EXT] [FLASH-USERS] Electron Energy Density, EELE_VAR, Initialization?<o:p class=""></o:p></span></p>
</div>
<p class=""><span style="color: rgb(215, 63, 9);" class="">[This email originated from outside of OSU. Use caution with links and attachments.]</span><o:p class=""></o:p></p>
<div class="">
<div class="">
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
After Simulation_initBlock, there should be a call to EOS to initialize EELE_VAR and all other relevant variables that haven't yet been set. The EOS unit source code can get a little confusing, but I hope at least pointing you in the right direction is helpful.<o:p class=""></o:p></div>
</div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
<div class="">
<div class="">
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
On Fri, Aug 27, 2021 at 11:05 AM Alberti, Anthony L <<a href="mailto:anthony.alberti@oregonstate.edu" style="color: blue; text-decoration: underline;" class="">anthony.alberti@oregonstate.edu</a>> wrote:<o:p class=""></o:p></div>
</div>
<blockquote style="border-style: none none none solid; border-left-width: 1pt; border-left-color: rgb(204, 204, 204); padding: 0in 0in 0in 6pt; margin-left: 4.8pt; margin-right: 0in;" class="">
<div class="">
<div class="">
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Hi folks,<o:p class=""></o:p></div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""></o:p></div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
I’m currently working on running a radiation transport benchmark problem in FLASH and am interested to know, where in the FLASH source code does the electron energy density, EELE_VAR, get initialized?<span class="Apple-converted-space"> </span><o:p class=""></o:p></div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""></o:p></div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
I can see where the radiation energy density gets initialized, Simulation_blockInit.F90, but it’s not clear where the electron energy density gets initialized. I’ve grepped around and can’t find anything obvious.<o:p class=""></o:p></div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""></o:p></div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Thanks all.<o:p class=""></o:p></div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Tony Alberti<o:p class=""></o:p></div>
</div>
</div>
</blockquote>
</div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<br clear="all" class="">
<o:p class=""></o:p></div>
<div class="">
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
</div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
--<span class="Apple-converted-space"> </span><o:p class=""></o:p></div>
<div class="">
<div class="">
<div class="">
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Eddie Hansen, PhD<br class="">
Postdoctoral Associate<o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
University of Rochester<o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
607-341-6126 | Flash Center</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>