<div dir="ltr">Hi Zhang,<div><br></div><div>I'm cc'ing flash-users in case others find this helpful in the future.</div><div>To add a variable to your simulation, add a line to the "Config" file in your problem directory. For example,</div><div>VARIABLE diff</div><div><br></div><div>Then, wherever you set the diffusion coefficient, you can set the value of DIFF_VAR in solnData (or whatever you decide to call the output of Grid_getBlkPtr) in the usual way. For example, see how DENS_VAR etc. are set in Simulation_initBlock of the Sedov test problem.</div><div>(Something like solnData(DIFF_VAR,i,j,k) = diff_coeff)</div><div><br></div><div>Best,</div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">--------<div>Ryan</div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 21, 2019 at 7:30 PM zdy0903 <<a href="mailto:zdy0903@stu.xjtu.edu.cn">zdy0903@stu.xjtu.edu.cn</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"><p>
        Hi <span style="font-family:SimSun"><span style="font-family:SimSun"><span style="font-family:SimSun">Ryan</span></span></span>
</p>
<p>
        <span style="font-family:SimSun"><span style="font-family:SimSun"><span style="font-family:SimSun"><span style="font-family:SimSun"><br>
</span></span></span></span>
</p>
<p>
        <span style="font-family:SimSun"><span style="font-family:SimSun"><span style="font-family:SimSun"><span style="font-family:SimSun">  Thanks for your reply. I use the latest version, FLASH4.6, but it still doesn't work in <span style="font-family:SimSun;white-space:normal">"*plt_cnt*" output files</span>. However, there is information of conduction </span></span></span></span><span style="font-family:SimSun">in checkpoint files. It seems that the variables in "flash.h" will present in checkpoint files.</span>
</p>
<p>
        <span style="font-family:SimSun">  If one variable is <strong>not included</strong> in "flash.h", and it is calculated in one sub-unit in the simulation. what should I do to add this variable to flash.h (UNK_VARS) and make it accessible in output files. For example, if I want to check the information of diff_coeff (the diffusion coefficient for conduction) in output files. What should I do?  (I don't have to check diff_coeff. I just make an example)</span>
</p>
<p>
        <span style="font-family:SimSun">  Thank you very much!</span>
</p>
<p>
        <span style="font-family:SimSun"><br>
</span>
</p>
<p>
        <span style="font-family:SimSun">Zhang</span>
</p>
<span style="font-family:SimSun"></span><br>
<br>
<blockquote name="replyContent" class="gmail-m_5822117611599036727ReferenceQuote" style="padding-left:5px;margin-left:5px;border-left:2px solid rgb(182,182,182);margin-right:0px">
        -----原始邮件-----<span style="font-family:SimSun"></span><br>
<b>发件人:</b><span id="gmail-m_5822117611599036727rc_from">"Ryan Farber" <<a href="mailto:rjfarber@umich.edu" target="_blank">rjfarber@umich.edu</a>></span><br>
<b>发送时间:</b><span id="gmail-m_5822117611599036727rc_senttime">2019-04-22 05:05:13 (星期一)</span><br>
<b>收件人:</b> zdy0903 <<a href="mailto:zdy0903@stu.xjtu.edu.cn" target="_blank">zdy0903@stu.xjtu.edu.cn</a>><br>
<b>抄送:</b> "<a href="mailto:flash-users@flash.uchicago.edu" target="_blank">flash-users@flash.uchicago.edu</a>" <<a href="mailto:flash-users@flash.uchicago.edu" target="_blank">flash-users@flash.uchicago.edu</a>><br>
<b>主题:</b> Re: [FLASH-USERS] How to put other variables into the output files<br>
<br>
        <div dir="ltr">
                Hi Zhang,
                <div>
                        <br>
                </div>
                <div>
                        I've also found that only the first 9 "plot_var_"s are put in FLASH<span style="font-family:SimSun"> "*plt_cnt*" output files</span> (but checkpoint files contain all variables). I'm not sure if this is intended behavior or if it's been fixed in later versions (I'm using FLASH4.2.2). What version of FLASH are you using?
                </div>
                <div>
                        <br>
                </div>
                <div>
                        If you also cannot access "cond" from the checkpoint file, then you can check Flash.h (in the object directory) for the name of the variables your simulation is following.
                </div>
                <div>
                        <br>
                </div>
                <div>
                        Also, since you mentioned using VISIT I wanted to mention that yt is another great option for FLASH analysis and visualization:
                        <div>
                                <br>
                        </div>
                        <div>
                                <a href="http://yt-project.org/" target="_blank">http://<span class="gmail-m_5822117611599036727gmail-il">yt</span>-project.org</a>
                        </div>
                        <div>
                                <div dir="ltr" class="gmail-m_5822117611599036727gmail_signature">
                                        <div dir="ltr">
                                                <div>
                                                        <div dir="ltr">
                                                                <div dir="ltr">
                                                                        <br>
                                                                </div>
                                                                <div>
                                                                        Best,
                                                                </div>
                                                                <div dir="ltr">
                                                                        --------
                                                                        <div>
                                                                                Ryan
                                                                        </div>
                                                                </div>
                                                        </div>
                                                </div>
                                        </div>
                                </div>
                        </div>
<br>
                </div>
        </div>
<br>
        <div class="gmail_quote">
                <div dir="ltr" class="gmail_attr">
                        On Sun, Apr 21, 2019 at 5:44 AM zdy0903 <<a href="mailto:zdy0903@stu.xjtu.edu.cn" target="_blank">zdy0903@stu.xjtu.edu.cn</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">
                        <p>
                                <span style="font-family:SimSun">Hi!</span> 
                        </p>
                        <p>
                                <span style="font-family:SimSun">  Usually, the output files of FLASH are the database of some variables like "dens", "temp", "pres". We can check it by importing the database to VISIT. However, what should I do if I want to put other </span><span style="font-family:SimSun">variables into the database of output files. For example, if I want to see the <strong>thermal conduction data</strong> in LaserSlab simulation during the entire process, what should I do?</span> 
                        </p>
                        <p>
                                <span style="font-family:SimSun">  It seems that there is a plot options in flash.par just like</span> 
                        </p>
                        <p>
                                <span style="font-family:SimSun">### Plot Options ###<br>
plotFileNumber       = 0<br>
plotFileIntervalStep = 100<br>
plotFileIntervalTime = 0.01e-09<br>
plot_var_1           = "dens"<br>
plot_var_2           = "depo"<br>
plot_var_3           = "tele"<br>
plot_var_4           = "tion"<br>
plot_var_5           = "trad"<br>
plot_var_6           = "ye  "<br>
plot_var_7           = "sumy"<br>
plot_var_8           = "cham"<br>
plot_var_9           = "targ"<br>
  I set a new plot_var_10 = "cond".(conduction) But it seems that it does not work? What else should I do?<br>
</span> 
                        </p>
                        <p>
                                <span style="font-family:SimSun">  Thank you very much!</span> 
                        </p>
                        <p>
                                <span style="font-family:SimSun"><br>
</span> 
                        </p>
                        <p>
                                <span style="font-family:SimSun">Zhang</span> 
                        </p>
                </blockquote>
        </div>
</blockquote></blockquote></div>