Skip to content
Snippets Groups Projects
controlDict 3.97 KiB
Newer Older
  • Learn to ignore specific revisions
  • /*--------------------------------*- C++ -*----------------------------------*\
    | =========                 |                                                 |
    | \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
    
    |  \\    /   O peration     | Version:  v2212                                 |
    
    |   \\  /    A nd           | Website:  www.openfoam.com                      |
    
    |    \\/     M anipulation  |                                                 |
    \*---------------------------------------------------------------------------*/
    FoamFile
    {
        version     2.0;
        format      ascii;
        class       dictionary;
        object      controlDict;
    }
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    
    application     pimpleFoam;
    
    startFrom       latestTime;
    
    startTime       0;
    
    stopAt          endTime;
    
    
    writeInterval   100; // every 1s
    
    
    writeFormat     binary;
    
    writePrecision  8;
    
    writeCompression off;
    
    timeFormat      general;
    
    timePrecision   6;
    
    runTimeModifiable true;
    
    functions
    {
    
        turbulenceFields1
        {
            type            turbulenceFields;
            libs            (fieldFunctionObjects);
            writeControl    writeTime;
    
            fields          (fd LESRegion);
        }
    
    
            libs            (fieldFunctionObjects);
    
            // Mandatory entries
    
            libs            (fieldFunctionObjects);
    
            input           surface;
            surface         surface.obj;
            output          surface;
            surfaceType     ensight;
            formatOptions
            {
                ensight
                {
                    format ascii; // needed for surfaceNoise ...
                    collateTimes true;
                }
            }
    
    
            // Optional (inherited) entries
    
            region          region0;
            enabled         true;
            log             true;
    
            executeControl  runTime;
            executeInterval 10;
    
        curlePoint
        {
            // Mandatory entries
            type            Curle;
            libs            (fieldFunctionObjects);
            patches         (cylinder);
            c0              343;
            input           point;
            output          point;
            observerPositions
            (
                (0.20 0.17 -0.01) // N
                (0.22 0.15 -0.01) // E
                (0.20 0.13 -0.01) // S
                (0.18 0.15 -0.01) // W
            );
    
            // Optional (inherited) entries
            p               p;
            region          region0;
            enabled         true;
            log             true;
            timeStart       100;
    
            executeControl  runTime;
            executeInterval 10;
    
            libs            (sampling);
    
            writeControl    writeTime;
            timeStart       100;
    
                    format          binary;
                    collateTimes    true;
    
                    type        cuttingPlane;
                    point       (0 0 -0.01);
                    normal      (0 0 1);
    
            libs            (forces);
    
        }
    }
    
    
    // ************************************************************************* //