OpenFOAM获得某个区域平均温度的方法?
-
请问OF如何才能获得某个区域的平均温度?目前我知道的一个方法是打开算例运行后的一个时间点的T文件,将T文件的温度值相加,再除以温度点的个数,得到某个区域的平均温度。但是这样的方法太复杂了。有没有什么Utilities或者FunctionObjects可以做到的?期待各位的回复,谢谢!
-
把这个添加到controlDict里面,其中zoneName你可以通过topoSet来设定
volFieldValue1 { type volFieldValue; libs ("libfieldFunctionObjects.so"); log true; writeControl writeTime; writeFields true; regionType cellZone; // Create your cellZone name zoneName; // and set its name operation volAverage; //sum or others fields ( T // List of fields to operate on ); }