OpenFOAM 里计算Cp,Cf等参数
-
functions { forceCoeffs1 { type forceCoeffs; libs ("libforces.so"); writeControl timeStep; timeInterval 1; log yes; patches (cylinder); rho rhoInf; // Indicates incompressible rhoInf 1; // Redundant for incompressible liftDir (0 1 0); dragDir (1 0 0); CofR (0 0 0); // Axle midpoint on ground pitchAxis (0 0 1); magUInf 1; lRef 2; // Wheelbase length Aref 6; // Estimated /* binData { nBin 20; // output data into 20 bins direction (1 0 0); // bin direction cumulative yes; } */ } }
-
@东岳 请问,这个是后处理实现吗?postProcess执行后说找不到这个函数。。
-
@rebelyoung 放在controlDict文件的functions中