This is a more convenient, consistent and flexible approach to specifying rotational speed.
59 lines
1.4 KiB
C++
59 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 motionSolverList;
|
|
|
|
solvers
|
|
{
|
|
rotor
|
|
{
|
|
motionSolver solidBody;
|
|
|
|
cellZone rotor;
|
|
|
|
solidBodyMotionFunction rotatingMotion;
|
|
|
|
origin (0 0 0);
|
|
axis (0 0 1);
|
|
|
|
omega 60 [rpm];
|
|
}
|
|
|
|
stator
|
|
{
|
|
motionSolver solidBody;
|
|
|
|
cellZone stator;
|
|
|
|
solidBodyMotionFunction rotatingMotion;
|
|
|
|
origin (0 0 0);
|
|
axis (0 0 -1);
|
|
|
|
omega 60 [rpm];
|
|
}
|
|
};
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|