functionObjects::cylindricalFunctionObject: New functionObject to transform velocity into cylindrical polar coordinates

Description
    Transforms the specified velocity field into a
    cylindrical polar coordinate system or back to Cartesian.

    Example of function object specification to convert the velocity field U
    into cylindrical polar coordinates before averaging and returning the
    average to Cartesian coordinates:
    \verbatim
    cartesianToCylindrical
    {
        type        cylindrical;
        libs        ("libfieldFunctionObjects.so");

        origin      (0 0 0);
        axis        (0 0 1);

        field       U;

        writeControl    outputTime;
        writeInterval   1;
    }

    #includeFunc fieldAverage(cylindrical(U))

    cylindricalToCartesian
    {
        type        cylindrical;
        libs        ("libfieldFunctionObjects.so");

        origin      (0 0 0);
        axis        (0 0 1);

        field       cylindrical(U)Mean;
        toCartesian true;
        result      UMean;

        writeControl    outputTime;
        writeInterval   1;
    }
    \endverbatim
    This is particularly useful for cases with rotating regions, e.g. mixer
    vessels with AMI.

See tutorials/incompressible/pimpleFoam/laminar/mixerVesselAMI2D
This commit is contained in:
Henry Weller
2020-12-24 11:13:15 +00:00
parent e7af10060d
commit 501f3de7b5
4 changed files with 338 additions and 1 deletions

View File

@ -76,4 +76,6 @@ age/age.C
comfort/comfort.C
cylindrical/cylindricalFunctionObject.C
LIB = $(FOAM_LIBBIN)/libfieldFunctionObjects