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

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

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;
}

View File

@ -25,9 +25,10 @@ boundaryField
type rotatingWallVelocity;
axis (0 1 0);
origin (0 0 0);
omega constant 13.2; // 2.1 rev/s
rpm 126;
value uniform (0 0 0);
}
vessel
{
type noSlip;

View File

@ -50,7 +50,7 @@ boundaryField
type rotatingWallVelocity;
origin (0 0 0);
axis (0 0 1);
omega constant -5;
rpm -50;
value $internalField;
}

View File

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

View File

@ -28,13 +28,14 @@ mover
origin (0 0 0);
axis (0 1 0);
omega table
rpm table
(
(0 0)
(0.01 628)
(0.022 628)
(0.03 419)
(100 419)
(0.01 6000)
(0.022 6000)
(0.03 4000)
(100 4000)
);
}

View File

@ -25,7 +25,7 @@ boundaryField
type rotatingWallVelocity;
axis (0 1 0);
origin (0 0 0);
omega constant 13.2; // 2.1 rev/s
rpm 126;
value uniform (0 0 0);
}
vessel

View File

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

View File

@ -41,7 +41,7 @@ mover
{
origin (0 0.02 0);
axis (0 0 1);
omega 18.8945578;
rpm 180;
}
}
}

View File

@ -32,22 +32,10 @@ mover
{
origin (0 0.1 0);
axis (0 0 1);
omega 6.2832; // rad/s
rpm 60;
}
}
//// Box rotates on rotating table
//rotatingBox
//{
// solidBodyMotionFunction rotatingMotion;
// rotatingMotionCoeffs
// {
// origin (0 0 0);
// axis (1 0 0);
// omega 12.5664; // rad/s
// }
//}
// Tube rocking on rotating table
rotatingBox
{
@ -55,8 +43,8 @@ mover
oscillatingRotatingMotionCoeffs
{
origin (0 0 0);
omega 40; // rad/s
amplitude (45 0 0); // 45 degrees max tilt
omega 40; // rad/s
}
}
}

View File

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