This is a more convenient, consistent and flexible approach to specifying rotational speed.
56 lines
1.4 KiB
C++
56 lines
1.4 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
format ascii;
|
|
class dictionary;
|
|
location "constant";
|
|
object dynamicMeshDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
mover
|
|
{
|
|
type motionSolver;
|
|
|
|
libs ("libfvMotionSolvers.so");
|
|
|
|
motionSolver solidBody;
|
|
|
|
solidBodyMotionFunction multiMotion;
|
|
|
|
select all;
|
|
|
|
// Table rotating in z axis
|
|
rotatingTable
|
|
{
|
|
solidBodyMotionFunction rotatingMotion;
|
|
rotatingMotionCoeffs
|
|
{
|
|
origin (0 0.1 0);
|
|
axis (0 0 1);
|
|
omega 60 [rpm];
|
|
}
|
|
}
|
|
|
|
// Tube rocking on rotating table
|
|
rotatingBox
|
|
{
|
|
solidBodyMotionFunction oscillatingRotatingMotion;
|
|
oscillatingRotatingMotionCoeffs
|
|
{
|
|
origin (0 0 0);
|
|
amplitude (45 0 0); // 45 degrees max tilt
|
|
omega 40; // rad/s
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|