<div dir="ltr"><div class="gmail_default" style="font-size:small"><font face="arial, helvetica, sans-serif">Hey Julia,</font><br><br><font face="arial, helvetica, sans-serif">I would suggest in</font><i style="font-family:arial,helvetica,sans-serif"> /source/Simulation/SimulationMain/</i><br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace">grep -ri "Grid_bcApplyToRegionSpecialized.F90" .</font></blockquote><br></div><div class="gmail_default" style="font-size:small">Copy this file into your problem module. Perhaps also read a bit about how boundary conditions work in the user manual (for instance there is some nuance with "<font face="monospace, monospace">face==LOW</font>" versus "<font face="monospace, monospace">face==HIGH</font>" and what that implies for your <font face="arial, helvetica, sans-serif"><i>flash.par</i></font> file). In your <i>flash.par</i> file set your particular boundary condition you're changing with "user," e.g. "<font face="monospace, monospace">xr_boundary_type = "outflow"</font>" to "<font face="monospace, monospace">xr_boundary_type="user"</font>". Depending on where you'd like your jet to enter, (in the above .F90 file) you can then edit the particular "<font face="monospace, monospace">case(USER_DEFINED)</font>" to your liking (you can search for this in the file, but it is ~300 lines; not too long). I would then suggest adding a subroutine to the file, or a function to define your jet in the file at the bottom, or some simple calculations before "<font face="monospace, monospace">applied =.true</font>." (say, some file I/O if you have a profile made for your energy deposition) but after the variable declarations.<br><br>Since you want this to change with time, and you're doing a comparison with the simulation time, you'll also want to look for the file <i>Simulation_adjustEvolution.F90 </i>and copy the pertinent definitions for simulation time there, "<font face="monospace, monospace">stime</font>". That may also be another file you'd want to consider using for this problem, but I think bcApplyToRegionSpecialized is the way to go.<br><br>Best,<br>Marissa</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 20, 2017 at 4:46 PM, Julia Grott <span dir="ltr"><<a href="mailto:julia.grotova@gmail.com" target="_blank">julia.grotova@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hello everybody,</div><div dir="auto">I'm a starting flash user, and I wonder if I can make boundary conditions that will change with time.</div><div dir="auto">To be more precise I'm trying to model a jet ( an outflow of matter) which will turn on and off at certain moments of time. (Something like: if t< 5 sec, then turn on jet, else turn off. )</div><div dir="auto">How can I do something like a timer? </div><div dir="auto">Maybe I don't need to vary boundary conditions, but just to add proper conditions in the Simulation_initBlock, which can be turned off after certain time. </div><div dir="auto"><br></div><div dir="auto">I will be happy to hear any ideas,</div><div dir="auto">Thanks in advance!</div><span class="HOEnZb"><font color="#888888"><div dir="auto"><br></div><div dir="auto">Julia </div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr" style="font-size:12.8px"><font size="1" face="monospace, monospace"><span style="color:rgb(0,0,0)">Marissa Adams <font size="1">E-mail:<a> </a><a href="mailto:madams@pas.rochester.edu" target="_blank">madams@pas.rochester.edu</a></font><br>PhD Student Ph: (585) 402-5779</span></font></div><div dir="ltr" style="font-size:12.8px"><font size="1" face="monospace, monospace"><span style="color:rgb(0,0,0)">University of Rochester Website: <a href="http://www.pas.rochester.edu/~madams/" target="_blank">http://www.pas.rochester.edu/~madams/</a></span></font></div><div dir="ltr" style="font-size:12.8px"><font size="1" face="monospace, monospace"><span style="color:rgb(0,0,0)">Department of Physics & Astronomy</span></font></div><div dir="ltr" style="font-size:12.8px"><font size="1" face="monospace, monospace"><span style="color:rgb(0,0,0)">371 Bausch & Lomb Hall<br>P.O. Box 270171</span></font></div></div></div></div></div></div></div></div></div></div>
</div>