OpenFOAM 10 中,使用后处理forceCoeffs 的命令
-
-
functions { forces { type forceCoeffs; libs ("libforces.so"); writeControl timeStep; writeInterval 1; patches ("motorBike.*"); rho rhoInf; // Indicates incompressible log true; rhoInf 1; // Redundant for incompressible liftDir (0 0 1); dragDir (1 0 0); CofR (0.72 0 0); // Axle midpoint on ground pitchAxis (0 1 0); magUInf 20; lRef 1.42; // Wheelbase length Aref 0.75; // Estimated } }
-
@李东岳 感谢东岳老师的回复,请问这个forceCoeffs是要写在controlDict里么,我把forceCoeffs里的内容复制到了controlDict,然后修改了运行命令为:pimpleFoam -postProcess -func forces -latestTime,还是报错。
controlDict:
controlDict -
估计你的不是openfoam10
另外,type已经有了
functions { forces { type forceCoeffs;/////////////////////////////////// libs ("libforces.so"); writeControl timeStep; writeInterval 1; patches ("motorBike.*"); rho rhoInf; // Indicates incompressible log true; rhoInf 1; // Redundant for incompressible liftDir (0 0 1); dragDir (1 0 0); CofR (0.72 0 0); // Axle midpoint on ground pitchAxis (0 1 0); magUInf 20; lRef 1.42; // Wheelbase length Aref 0.75; // Estimated } }
2024年2月21日 10:02
4/5
2024年2月22日 08:25