关于openfoam中如何实现公转加自转的运动?
-
/--------------------------------- C++ -----------------------------------
========= |
\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\ / O peration | Website: https://openfoam.org
\ / A nd | Version: 9
\/ M anipulation |
*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
waiquan
{
type movingWallVelocity;
value uniform (0 0 0);
}
inlet
{
type movingWallVelocity;
value uniform (0 0 0);
}
neiquan
{
type movingWallVelocity;
value uniform (0 0 0);
}
outlet
{
type movingWallVelocity;
value uniform (0 0 0);
}
ball1
{
type rotatingWallVelocity;
relative yes;
origin (0 -0.01675 0);
axis (0 0 -1);
omega constant 837.76;
value uniform (0 0 0);
}
ball2
{
type rotatingWallVelocity;
relative yes;
origin (0 0.01675 0);
axis (0 0 -1);
omega constant 837.76;
value uniform (0 0 0);
}
ball3
{
type rotatingWallVelocity;
relative yes;
origin (-0.011844 -0.011844 0);
axis (0 0 -1);
omega constant 837.76;
value uniform (0 0 0);
}
ball4
{
type rotatingWallVelocity;
relative yes;
origin (-0.01675 0 0);
axis (0 0 -1);
omega constant 837.76;
value uniform (0 0 0);
}
ball5
{
type rotatingWallVelocity;
relative yes;
origin (-0.011844 0.011844 0);
axis (0 0 -1);
omega constant 837.76;
value uniform (0 0 0);
}
ball6
{
type rotatingWallVelocity;
relative yes;
origin (0.011844 0.011844 0);
axis (0 0 -1);
omega constant 837.76;
value uniform (0 0 0);
}
ball7
{
type rotatingWallVelocity;
relative yes;
origin (0.011844 -0.011844 0);
axis (0 0 -1);
omega constant 837.76;
value uniform (0 0 0);
}
ball8
{
type rotatingWallVelocity;
relative yes;
origin (0.01675 0 0);
axis (0 0 -1);
omega constant 837.76;
value uniform (0 0 0);
}
}
// ************************************************************************* // -
可以参考这里
就结果来说,能实现,但我没看懂是怎么实现的。或者说,我不太理解这些参数是怎么起作用的,不理解内圈的旋转中心是怎么实现随外圈旋转而变化的。
-
@tidedrinker 我针对这个案例Allrun后看不了结果,这两个box文件是什么意思好像要把他们合并?
-
@tidedrinker 已经能正常查看结果,它应该是对内圈定义了两个旋转运动来实现公转加自转的,所以中心会随着外圈改变。这种跟上边Fluent两套滑移网格的方法类似,我再针对我的案例再试一下。感谢!