OpenFOAM 运行的时候,如何关闭屏幕输出的信息?
-
比如运行 reactingFOAM 的时候
屏幕上不停的输出:DILUPBiCG: Solving for h, Initial residual = 2.1859e-07, Final residual = 2.1859e-07, No Iterations 0 ExecutionTime = 8545.97 s ClockTime = 8756 s Courant Number mean: 0.00199512 max: 0.401162 deltaT = 2.09015e-06 Time = 0.00879189 min/max(T) = 291, 1880 time step continuity errors : sum local = 9.41463e-08, global = 1.84917e-08, cumulative = 1.25902e-07
这些个没营养的信息
而且屏幕输出还占用大量时间该怎么关闭呢?不让它们从屏幕上输出来
-
@qing
reactingFoam &> log
-
-
@qing
simpleFoam > /dev/null
就不会输出任何东西了。写log不会浪费很多时间,如果你的log写的特别频繁,说明网格很小。如果网格很大,写log会很慢。二者都不会在写入上浪费很多时间。比如每隔 1000 步 再输出一次信息?
这个控制不了。
-
|| visible in terminal || visible in file || existing Syntax || StdOut | StdErr || StdOut | StdErr || file ==========++==========+==========++==========+==========++=========== > || no | yes || yes | no || overwrite >> || no | yes || yes | no || append || | || | || 2> || yes | no || no | yes || overwrite 2>> || yes | no || no | yes || append || | || | || &> || no | no || yes | yes || overwrite &>> || no | no || yes | yes || append || | || | || | tee || yes | yes || yes | no || overwrite | tee -a || yes | yes || yes | no || append || | || | || n.e. (*) || yes | yes || no | yes || overwrite n.e. (*) || yes | yes || no | yes || append || | || | || |& tee || yes | yes || yes | yes || overwrite |& tee -a || yes | yes || yes | yes || append
-
@bestucan 很全面!
-