Function1s::omega: New user convenience class to handle the input of time-varying rotational speed

Description
    User convenience class to handle the input of time-varying rotational speed
    in rad/s if \c omega is specified or rpm if \c rpm is specified.

Usage
    For specifying the rotational speed in rpm of an MRF zone:
    \verbatim
        MRF
        {
            cellZone    rotor;

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

            rpm        60;
        }
    \endverbatim
    or the equivalent specified in rad/s:
    \verbatim
        MRF
        {
            cellZone    rotor;

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

            rpm        6.28319;
        }
    \endverbatim
    or for a tabulated ramped rotational speed of a solid body:
    \verbatim
        mover
        {
            type            motionSolver;

            libs            ("libfvMeshMovers.so" "libfvMotionSolvers.so");

            motionSolver    solidBody;

            cellZone        innerCylinder;

            solidBodyMotionFunction  rotatingMotion;

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

            rpm         table
            (
                (0    0)
                (0.01  6000)
                (0.022  6000)
                (0.03  4000)
                (100   4000)
            );
        }
    \endverbatim

The following classes have been updated to use the new Function1s::omega class:
    solidBodyMotionFunctions::rotatingMotion
    MRFZone
    rotatingPressureInletOutletVelocityFvPatchVectorField
    rotatingTotalPressureFvPatchScalarField
    rotatingWallVelocityFvPatchVectorField

and all tutorials using these models and BCs updated to use rpm where appropriate.
This commit is contained in:
Henry Weller
2022-08-12 16:52:04 +01:00
parent 26a8e20763
commit 2da5edec29
27 changed files with 398 additions and 111 deletions

View File

@ -28,7 +28,8 @@ mover
origin (0 0 0);
axis (1 0 0);
omega 6.2832;
rpm 60;
}

View File

@ -28,7 +28,8 @@ mover
origin (0 0 0);
axis (0 1 0);
omega 158; // rad/s
rpm 1500;
}

View File

@ -26,7 +26,8 @@ mover
origin (0 0 0);
axis (0 0 1);
omega 6.2832; // rad/s
rpm 60;
}