The Accumulator (Domain) node is used to transfer information from rays to the domains they occupy or pass through. Each
Accumulator defines a variable, called the accumulated variable, in the selected domains. The accumulated variable is discretized using constant shape functions, so its value is uniform over every mesh element and may be discontinuous between adjacent mesh elements.
The name of the accumulated variable is specified in the Accumulated variable name edit field in the
Accumulator Settings section of the settings window. The default variable name,
rpd, will be used in the remainder of this section when referring to the accumulated variable.
The options in the Accumulator type list are
Density and
Count. If
Density is selected, the source term is divided by the area or volume of the mesh element when calculating each ray’s contribution to the accumulated variable. If
Count is selected, no division by the area or volume of the mesh element occurs.
The equations in the following section are valid for the Density type. The corresponding value of the accumulated variable for the
Count type is
where V is the mesh element volume (in 3D) or area (in 2D).
When Elements is selected from the
Accumulate over list, the value of the accumulated variable in a mesh element is the sum of the source terms
Ri evaluated for all rays in that mesh element:
where N is the total number of rays in the element and
V is the area or volume of the mesh element. In other words, the contribution of each ray to the accumulated variable is distributed uniformly over the mesh element the ray is in, regardless of the ray’s exact position within the element.
If Elements and time is selected from the
Accumulate over list, then the sum of the source terms for rays in the mesh element is used to define the time derivative of the accumulated variable, rather than its instantaneous value: