OpenFOAM 求取脉动速度
-
@冠竹 你好,问题是指生成脉动风速,还是已经加载了脉动风速,要求加载的风速的脉动值多少?第1个问题可以参考帖子 LES定义入口速度的问题(DSRFG方法),第2个问题用
fieldAverage
函数,设置如下:/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 8 \\/ M anipulation | ------------------------------------------------------------------------------- Description Calculates and writes the time averages of given list of fields. \*---------------------------------------------------------------------------*/ #includeEtc "caseDicts/postProcessing/fields/fieldAverage.cfg" type fieldAverage; functionObjectLibs ("libfieldFunctionObjects.so"); timeStart 1; //开始计算平均或脉动场的时间 writeControl writeTime; //按照保存数据的时间间隔写入 fields ( U { mean on; //均值 prime2Mean on; //方差 base time; } p { mean on; prime2Mean on; base time; } ); // ************************************************************************* //