The Accumulator (Domain) node is used to transfer information from particles 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 text 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 particle’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 particles in that mesh element:
where N is the total number of particles in the element and
V is the area or volume of the mesh element. In other words, the contribution of each particle to the accumulated variable is distributed uniformly over the mesh element the particle is in, regardless of the particle’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 particles in the mesh element is used to define the time derivative of the accumulated variable, rather than its instantaneous value: