体積平均値の計算2015年10月9日 | |
はじめに物理量の体積平均値の計算について。 使用バージョンOpenFOAM 2.4.0 体積平均値の計算たとえば、速度 U と温度 T の体積平均値を計算させたい場合は、ケースディレクトリ system/controlDict に次のように設定する。
libs
(
"libfieldFunctionObjects.so"
"libFVFunctionObjects.so"
);
functions
{
magU
{
type calcMag;
fieldName U;
resultName magU;
outputControl outputTime;
outputInterval 1;
}
volAvgU
{
type cellSource;
fields (magU);
valueOutput false;
source all;
operation volAverage;
outputControl timeStep;
outputInterval 1;
}
volAvgT
{
type cellSource;
fields (T);
valueOutput false;
source all;
operation volAverage;
outputControl timeStep;
outputInterval 1;
}
}
温度 T については、そのまま体積平均を求めている。速度 U については、まず magU を計算して、その体積平均を求めている。 | |
| PENGUINITIS | |