<div dir="ltr">Hi Kavin,<br><br>Take a look at Simulation_initBlock.F90. This is the Fortran routine that specifies the initial condition for the problem. Take a look around line ~100 for the body of a loop over the mesh that is specifying the initial state. You can modify this to put in whatever spatial dependence you like. <br><br>Best of luck!<br>Lee<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="color:rgb(34,34,34)">________________</span><div style="color:rgb(34,34,34)">Leland Ellison PhD<div>Pacific Fusion</div><div>Lead - Modeling and Simulations</div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 17, 2024 at 3:41 PM Kavin Tangtartharakul <<a href="mailto:ktangtar@ucsd.edu">ktangtar@ucsd.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I am a new user of flash and have started working with the LaserSlab example. Instead of just a single value fo the initial density or temperature, how can I specify the density or temperature as a function of position? For example, density = dens_base + alpha*y.</div><div><br></div><div>Thank you,</div><div>Kavin Tangtartharakul</div></div>
_______________________________________________<br>
flash-users mailing list<br>
<a href="mailto:flash-users@flash.rochester.edu" target="_blank">flash-users@flash.rochester.edu</a><br>
<br>
For list info, including unsubscribe:<br>
<a href="https://flash.rochester.edu/mailman/listinfo/flash-users" rel="noreferrer" target="_blank">https://flash.rochester.edu/mailman/listinfo/flash-users</a><br>
</blockquote></div>