基本参照本文的代码,我对代码进行一点解释:
http://www.cfd-online.com/Forums/openfoam-solving/64146-tutorial-how-plot-residuals.html
第一步:计算的过程中一定要使用日志文件: 比如 turbFoam >log
第二步:在计算过程中或者计算结束之后都可以plot残差数据已对计算过程进行监控。绘制残差的代码如下:
set logscale y
//将y坐标设为对数坐标
set title 'Residuals'
//图形名称为Residuals
set ylabel 'Residual'
//y轴名称为Residual
set xlabel 'Iteration'
//x轴名称为Iteration,即迭代次数
http://www.cfd-online.com/Forums/openfoam-solving/64146-tutorial-how-plot-residuals.html
第一步:计算的过程中一定要使用日志文件: 比如
第二步:在计算过程中或者计算结束之后都可以plot残差数据已对计算过程进行监控。绘制残差的代码如下:
set logscale y
set title 'Residuals'
set ylabel 'Residual'
set xlabel 'Iteration'
