我在controlDict中加入了SurfaceSampling用surface提取计算数据,遇到一些输出问题,请大佬们帮忙解决一下。
-
-
看这个 4.3.2 里 purgewrite 的使用方法:
-
@bestucan 谢谢。我注意到这个用法了,也尝试着在writeInterval后边加入了这个命令,但是并没有起到作用。很疑惑。
-
@2019201300
下面是自带的算例使用purgewrite
的方法。好像是把purgewrite
写在函数外面?/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 9 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { format ascii; class dictionary; location "system"; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // application reactingFoam; startFrom latestTime; startTime 0; stopAt endTime; endTime 300; deltaT 1; writeControl timeStep; writeInterval 10; purgeWrite 20; writeFormat ascii; writePrecision 10; writeCompression off; timeFormat general; timePrecision 6; runTimeModifiable yes; functions { surfaceFieldValue1 { type surfaceFieldValue; libs ("libfieldFunctionObjects.so"); writeControl writeTime; log yes; writeFields no; regionType patch; name outlet; operation average; weightField phi; fields ( H2O T ); } } // ************************************************************************* //
-
@李东岳 是的,我这个的确是进入了postProcesing文件夹中,看来的确是不行了,我去试试问问看,谢谢李老师了。
-
@bestucan 谢谢这位老师了,我的这个问题的确是李老师说的那种情况。
2022年11月10日 07:45
3/7
2022年11月11日 02:57