wiki:u/erica/scratch

Version 27 (modified by Erica Kaminski, 9 years ago) ( diff )

The accretion luminosity is summed up for all cells surrounding the sink particle, and the total is given by 'E_acc'. This total accretion energy is then smoothed over a kernel of cells surrounding the sink, such that,

The differential dE's are given by multiplying E_acc by a decaying exponential function at each cell surrounding the sink in the kernel.

In addition to being normalized (i.e. satisfying the first equation), this exponential function needs to go to zero at the boundary of the kernel. Thus, we have the following equation,

which gives the normalization constant,

where N is the max number of cells in the kernel. Note that the sum runs over cells i=0 to 1, where the '0th' cell is the cell the sink is in, and the '4th' cell is the furthest cell from the sink in the kernel, that the exponential goes to zero at this boundary, and dx*i gives a position (which here assumes the sink is at the cell center — the actual function is described below).

Now, 2 things effect the shape of this smoothing function, 1. the number of cells in the kernel, and 2. dx.

Here is a plot showing, for dx=.1, a kernel of 4 cells (top), and a kernel of 40 cells (bottom):

As you can see, the smaller kernel looks like a triangle function, but the larger kernel begins to resemble a true exponential.

Now, keeping the kernel constant (let N=4), but changing dx from dx=.1 (top) to dx=1 (bottom).

In the most extreme case, as dx << 1 the function remains triangular, but as dx > 1, the function quickly drops to 0 (i.e. one cell removed from the origin). This is when the smoothing function would no longer serve its purpose (i.e. smoothing)… We could probably best avoid these issues by enforcing a larger kernel around the sink so that it most resembles an exponential, but then that would require changing the kernel of max refinement around a sink as well (which is currently set to 4 dx). We could also play with an exponential function that fell off faster.

Attachments (7)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.