On Sun, Feb 17, 2013 at 5:53 AM, Chris Hayward <
ccha...@gmail.com> wrote:
> Dear Taysun,
>
> Sorry for the delayed reply. In the future, please send such questions to
> the mailing list because 1. you may get a faster response and 2. others can
> benefit from the discussion.
>
>> I found in equilibrium.h that
>
>> 130 /** The tolerance for determining when the iteration has
>> 131 converged. Since the calculation works by emitting the delta of
>> 132 the cell luminosities in each iteration, the luminosity in the
>> 133 grid will decrease over time as luminosity escapes the
>> 134 volume. When the dust luminosity in the grid has decreased to
>> 135 tolerance*L_initial, the iteration stops. */
Hmm. That comment refers to the *old* way of calculating the
equilibrium, which is also what Chris is describing. In Sunrise v4,
the luminosity in the grid never changes during the calculation. (In
fact, one of its chief advantages is that it conserves luminosity
exactly.) Please see the announcement in the discussion group:
https://groups.google.com/forum/?fromgroups=#!topic/sunrisemcrx/gFJgui5Wkvs
>> and it seems that when the absorption rate by dust doesn't evolve much in
>> the last two iterations,
>> the program will stop computing further convergence.
>> For instance, if I choose tolerance = 0.5, would it mean that the accuracy
>> of the absorption rate is 50%?
>> When comparing the resultant spectra with tolerance=0.2 and 0.5,
>> the difference was negligible, so I guess I am probably missing something.
>> I appreciate if you can give some more explanations on the convergence
>> parameter.
No, you are correct. The key to realize is that *every cell* that is
above the threshold set by "ir_luminosity_percentile" is required to
be converged to this point. Because the noise in a cell depends on how
many rays pass through it, the convergence will generally be held up
by cells that are either small or are in a region of low intensity.
These are also the ones that don't contribute much to the output. This
depends on the particulars of your geometry and grid refinement. It is
thus perfectly possible for the integrated SED to change very little
with a tolerance of 50%, but there are individual cells that do. The
sum of all the cells will of course always have much lower variance
than individual cells.
Then, as Chris mentioned, if your problem is optically thin there is
no iteration necessary to get the right result regardless if your
settings. (It will still iterate a bit, though, to get the number of
rays up and to determine convergence.)
cheers,
/Patrik