我试了以下,进行力以及系数以及点位移的记录。力和系数没有成功,只有点的位移可以获取
functions
(
pointHistory
{
type pointHistory;
functionObjectLibs
(
"libpointHistory.so"
);
region solid;
refHistoryPoint (0.05405 0 0);
}
forces
{
type forces;
functionObjectLibs
(
"libforces.so"
);
patches (INTERFACE);
rhoInf 998.2;
CofR (0 0 0);
liftDir (0 1 0);
dragDir (1 0 0);
outputControl timeStep;
outputInterval 1;
}
forceCoeffs
{
type forceCoeffs;
functionObjectLibs
(
"libforces.so"
);
patches (INTERFACE);
log true;
rhoInf 998.2;
CofR (0 0 0);
liftDir (0 1 0);
dragDir (1 0 0);
pitchAxis (0 0 1);
magUInf 3;
lRef 0.5;
Aref 0.0157;
outputControl timeStep;
outputInterval 1;
}
以下是别的算里的设置
setInletVelocity //这个函数的用处?
{
type setInletVelocity;
functionObjectLibs
(
"libsetInletVelocity.so"
);
}
forces
{
type forces;
functionObjectLibs ( "libforces.so" );
outputControl timeStep;
outputInterval 1;
patches (interface);
pName p;
UName U;
rhoName rhoInf;
log true;
rhoInf 1000;
CofR (0.5 0.1 0);//这里不明白
}