Skip to content

Latest commit

 

History

History
76 lines (62 loc) · 1.7 KB

postProcessing.md

File metadata and controls

76 lines (62 loc) · 1.7 KB

postProcessing

  1. Sampling cut-plane's average values during simulation
    Z15mm
    {
        type            faceSource;
        functionObjectLibs ("libfieldFunctionObjects.so");

        enabled         true;
        outputControl   timeStep;
        outputInterval  1;
        
        // Show result in terminal
        log             true;

        // Will write surface values in vtk/raw if true
        valueOutput     false; 
        surfaceFormat   vtk;

        writeFields     no;

        source          sampledSurface;

        // Surface definition (same as surfaceSampling)
        sampledSurfaceDict
        {
            type            plane;
            basePoint       (0 0 0.062);
            normalVector    (0 0 1);
        }
        
        // Operation of the surface values
        operation       areaAverage;

        // Weighted average (only valid for patches), here is mass-weighted average
        //operation       weightedAverage;
        //weightField     phi;

        fields ( p U T);
    }
  1. Surface sammling during simulation
    surfaceSampling
    {
        type surfaces;
        functionObjectLibs ("libsampling.so");
        enabled         true;
        outputControl   timeStep;
        outputInterval	500;

        interpolationScheme cell;
        surfaceFormat vtk;
        // Fields to be sampled
        fields
        (
            Z T C U OH
        );

        surfaces
        (
             middleCut
             {
                type            plane;
                interpolate	true;
                triangulate	false;
                normalVector	(1 0 0);
                basePoint	(0.0001 0 0);
             }
        );
    }