Files
OpenFOAM-12/etc/caseDicts/postProcessing/multiphase/sizeDistribution
Will Bainbridge 794255284f multiphaseEulerFoam: revised sizeDistribution functionObject
Following the addition of the new moments functionObject, all related
functionality was removed from sizeDistribution.

In its revised version, sizeDistribution allows for different kinds of
weighted region averaging in case of field-dependent representative
particle properties.

A packaged function has also been added to allow for command line solver
post-processing.

For example, the following function object specification returns the
volume-based number density function:

    numberDensity
    {
        type                sizeDistribution;
        libs                ("libmultiphaseEulerFoamFunctionObjects.so");
        writeControl        writeTime;
        populationBalance   bubbles;
        functionType        numberDensity;
        coordinateType      volume;
        setFormat           raw;
    }

The same can be achieved using a packaged function:

    #includeFunc sizeDistribution
    (
        populationBalance=bubbles,
        functionType=numberDensity,
        coordinateType=volume,
        funcName=numberDensity
    )

Or on the command line:

    multiphaseEulerFoam -postProcess -func "
    sizeDistribution
    (
        populationBalance=bubbles,
        functionType=numberDensity,
        coordinateType=volume,
        funcName=numberDensity
    )"

Patch contributed by Institute of Fluid Dynamics,
Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
2022-01-07 09:48:30 +00:00

42 lines
2.1 KiB
C++

/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
-------------------------------------------------------------------------------
Description
Writes out the size distribution computed with multiphaseEulerFoam for the
entire domain or a volume region. Requires solver post-processing.
\*---------------------------------------------------------------------------*/
type sizeDistribution;
libs ("libmultiphaseEulerFoamFunctionObjects.so");
populationBalance <populationBalance>;
functionType <function>; // numberConcentration, numberDensity
// volumeConcentration, volumeDensity
// areaConcentration, areaDensity
coordinateType <coordinate>; // volume, area, diameter,
// projectedAreaDiameter
allCoordinates false; // defaults to false
normalise false; // defaults to false
logTransform false; // defaults to false, only relevant
// for density functions
weightType numberConcentration; // volumeConcentration,
// areaConcentration, cellVolume
// relevant for field-dependent
// particle properties, defaults to
// numberConcentration
regionType all; // cellZone
// defaults to all
name cellZoneName; // relevant for regionType all
setFormat raw;
writeControl writeTime;
// ************************************************************************* //