By default FLASH does not retain the values of previous time-step. Once the timestep<br>calculation is finished, the current values overwrite the previous time-step. A simple way to<br>keep values from the previous timestep around is to add two more variables to unk, say<br>
told, and dold, and just before overwriting the values into temp and dens, copy those values<br>into these two variables. <br><br>In FLASH3, you can also use scratch variables, but they will have consistent values<br>only if there is no regridding between steps. <br>
<br>The mechanisms for fetching data for a block are listed in the user's guide, as well as the<br>online documentation for the FLASH3 API at <a href="http://flash.uchicago.edu/website/codesupport/robodoc-FLASH3">http://flash.uchicago.edu/website/codesupport/robodoc-FLASH3</a>.<br>
Look for functions "Grid_getBlkData" and "Grid_getBlkPtr". FLASH discourages you from<br>getting the data for all the blocks at once, though this being FORTRAN, if you really want to, you can. But you must be very, very familiar with the code before playing with data at<br>
that internal a level. <br><br>Anshu<br><br><div class="gmail_quote">On Tue, Jun 24, 2008 at 10:06 AM, M.A. Latife <<a href="mailto:latife@astro.rug.nl">latife@astro.rug.nl</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
Dear All,<br>
i want to know the old value of density and temperature( at previous time step) for every block . i don't know how to take these values from data base. i also want to know how can i take the values of variables for one block or for all blocks.<br>
can any body help me<br>
Thanks in Advance<br>
Cheers<br>
Latif<br>
</blockquote></div><br>