template<typename FlagField_T, template< typename, typename > class Distributor_T>
class walberla::pe_coupling::discrete_particle_methods::SolidVolumeFractionFieldEvaluator< FlagField_T, Distributor_T >
Evaluator of the solid volume fraction field.
Updates the solid volume fraction field. Includes firstly removing all old entries from the field, then remapping the local bodies' volumes to the cells. Potentially writes to the ghost layer of the solid volume fraction field which thus requires a special PullReducion communication afterwards.
Depending on the used Distributor_T, the resulting solid volume fraction field will vary:
- NearestNeighborDistributor: Corresponds to simply assigning the total body volume to the cell containing the body center.
- KernelDistributor: The body's volume is not directly assigned to one cell only but spread over the neighboring cells as well. See Finn, Li, Apte - "Particle based modelling and simulation of natural sand dynamics in the wave bottom boundary layer" (2016) for the application, even though different kernel was used there.
Whether or not a body gets treated by the evaluator depends on the return value of 'dpmBodySelectorFct'.
For more infos on distributors, see src/field/distributors.