Files
OpenFOAM-12/etc/caseDicts/postProcessing/multiphase/populationBalanceSizeDistribution
Henry Weller 295223624b Rationalised and standardised cell, face and point set selection controls
The keyword 'select' is now used to specify the cell, face or point set
selection method consistently across all classes requiring this functionality.

'select' replaces the inconsistently named 'regionType' and 'selectionMode'
keywords used previously but backwards-compatibility is provided for user
convenience.  All configuration files and tutorials have been updated.

Examples of 'select' from the tutorial cases:

functionObjects:

    cellZoneAverage
    {
        type            volFieldValue;
        libs            ("libfieldFunctionObjects.so");

        writeControl    writeTime;
        writeInterval   1;

        fields          (p);
        select          cellZone;
        cellZone        injection;

        operation       volAverage;
        writeFields     false;
    }

    #includeFunc populationBalanceSizeDistribution
    (
        name=numberDensity,
        populationBalance=aggregates,
        select=cellZone,
        cellZone=outlet,
        functionType=numberDensity,
        coordinateType=projectedAreaDiameter,
        allCoordinates=yes,
        normalise=yes,
        logTransform=yes
    )

fvModel:

    cylinderHeat
    {
        type            heatSource;

        select          all;

        q               5e7;
    }

fvConstraint:

    momentumForce
    {
        type            meanVelocityForce;

        select          all;

        Ubar            (0.1335 0 0);
    }
2023-02-01 16:17:16 +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 populationBalanceSizeDistribution;
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
select all; // cellZone
// defaults to all
cellZone cellZoneName; // relevant select cellZone
setFormat raw;
writeControl writeTime;
// ************************************************************************* //