Skip to content

Feature particle patch postpro filtering

Andrew Heather requested to merge feature-particle-patch-postpro-filtering into develop

Summary

Adds options to write particle-patch interactions to file, and to select particle fields to post-process for the patchPostProcessing cloud function object

Resolved bugs (If applicable)

none

Details of new models (If applicable)

Cloud patch interaction models: Optionally write patch interaction statistics, e.g. number and mass of particles that stick, escape etc. to file using the optional writeToFile entry, e.g.

    localInteractionCoeffs
    {
        patches
        (
            "(walls|cyc.*)"
            {
                type        rebound;
            }

            "inlet|outlet"
            {
                type escape;
            }
        );

        // New optional entry
        writeToFile     yes;
    }

Cloud function objects: New fields optional entry can be used to select which particle fields to post-process; if empty or the entry is not given all fields are written (to provide backwards compatibility)

    patchPostProcessing1
    {
        type            patchPostProcessing;

        // Optional new entry
        fields          (position "U.*" d T nParticle);

        maxStoredParcels 20;
        patches
        (
            cycLeft_half0
            cycLeft_half1
        );
    }

See the $FOAM_TUTORIALS/lagrangian/reactingParcelFilm/filter tutorial for an example

Risks

Low risk

Merge request reports