@李东岳 我这试了下system下创建fieldAverage文件并复制上述代码,删掉functions和fieldAverage1可以计算完成后处理,controDict不需要挂载,完整的文件内容如下
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 9
\\/ M anipulation |
-------------------------------------------------------------------------------
Description
Calculates and writes the time averages of given list of fields.
\*---------------------------------------------------------------------------*/
type fieldAverage;
libs ( "libfieldFunctionObjects.so" );
writeControl writeTime;
timeStart 0;
timeEnd 100;
resetOnOutput false;
fields
(
U
{
mean on;
prime2Mean on;
base time;
}
);