有时候在使用SU2的计算结果进行后处理时会发现没有想要的数据。这时可以通过修改配置文件进行解决,可以找来SU2官方的全配置文件查找相关配置代码。其下载链接可在我的SU2常见问题这篇文章中找到。
首先,我们可以在全配置文件中找到这样一段代码:
% ------------------------- SCREEN/HISTORY VOLUME OUTPUT --------------------------%
%
% Screen output fields (use 'SU2_CFD -d <config_file>' to view list of available fields)
SCREEN_OUTPUT= (INNER_ITER, RMS_DENSITY, RMS_MOMENTUM-X, RMS_MOMENTUM-Y, RMS_ENERGY)
% Volume output fields/groups (use 'SU2_CFD -d <config_file>' to view list of available fields)
VOLUME_OUTPUT= (COORDINATES, SOLUTION, LIMITER)
按上面的提示,在命令行输入SU2_CFD -d <config_file>
其中<config_file>
为你需要计算的case的配置文件名称,其实,对于轻度运用来说,所有的操作都是围绕着配置文件进行的。
可以看到如下表单
Available volume output fields for the current configuration in Zone 0 (Comp. Fluid):
Note: COORDINATES and SOLUTION groups are always in the volume output.
+--------------------------------------------------------------------------------+
|Name |Group Name |Description |
+--------------------------------------------------------------------------------+
|COORD-X |COORDINATES |x-component of the coordinate vector |
|COORD-Y |COORDINATES |y-component of the coordinate vector |
|DENSITY |SOLUTION |Density |
|MOMENTUM-X |SOLUTION |x-component of the momentum vector |
|MOMENTUM-Y |SOLUTION |y-component of the momentum vector |
|ENERGY |SOLUTION |Energy |
|PRESSURE |PRIMITIVE |Pressure |
|TEMPERATURE |PRIMITIVE |Temperature |
|MACH |PRIMITIVE |Mach number |
|PRESSURE_COEFF |PRIMITIVE |Pressure coefficient |
|LAMINAR_VISCOSITY |PRIMITIVE |Laminar viscosity |
|SKIN_FRICTION-X |PRIMITIVE |x-component of the skin friction vector|
|SKIN_FRICTION-Y |PRIMITIVE |y-component of the skin friction vector|
|HEAT_FLUX |PRIMITIVE |Heat-flux |
|Y_PLUS |PRIMITIVE |Non-dim. wall distance (Y-Plus) |
|RES_DENSITY |RESIDUAL |Residual of the density |
|RES_MOMENTUM-X |RESIDUAL |Residual of the x-momentum component |
|RES_MOMENTUM-Y |RESIDUAL |Residual of the y-momentum component |
|RES_ENERGY |RESIDUAL |Residual of the energy |
|LIMITER_VELOCITY-X|LIMITER |Limiter value of the x-velocity |
|LIMITER_VELOCITY-Y|LIMITER |Limiter value of the y-velocity |
|LIMITER_PRESSURE |LIMITER |Limiter value of the pressure |
|LIMITER_DENSITY |LIMITER |Limiter value of the density |
|LIMITER_ENTHALPY |LIMITER |Limiter value of the enthalpy |
|VORTICITY |VORTEX_IDENTIFICATION|Value of the vorticity |
|Q_CRITERION |VORTEX_IDENTIFICATION|Value of the Q-Criterion |
+--------------------------------------------------------------------------------+
其中第一列是输出变量的名称,第二列是VOLUME_OUTPUT= (COORDINATES, SOLUTION, LIMITER)
中后面括号中参数的名称。第三列是变量的具体解释。如果不在配置文件中加这行代码,SU2会默认输出SOLUTION
和COORDINATES
。
比如说想输出LIMITER_VELOCITY_X
这个量,就加上VOLUME_OUTPUT= (COORDINATES, SOLUTION, LIMITER)
值得注意的是,对于不可压缩流和可压缩流来说其输出是不同的。上图是可压缩流的结果。下图是不可压缩流的输出变量表。
Available volume output fields for the current configuration in Zone 0 (Incomp. Fluid):
Note: COORDINATES and SOLUTION groups are always in the volume output.
+---------------------------------------------------------------------------------+
|Name |Group Name |Description |
+---------------------------------------------------------------------------------+
|COORD-X |COORDINATES |x-component of the coordinate vector |
|COORD-Y |COORDINATES |y-component of the coordinate vector |
|PRESSURE |SOLUTION |Pressure |
|VELOCITY-X |SOLUTION |x-component of the velocity vector |
|VELOCITY-Y |SOLUTION |y-component of the velocity vector |
|TEMPERATURE |SOLUTION |Temperature |
|PRESSURE_COEFF |PRIMITIVE |Pressure coefficient |
|DENSITY |PRIMITIVE |Density |
|LAMINAR_VISCOSITY |PRIMITIVE |Laminar viscosity |
|SKIN_FRICTION-X |PRIMITIVE |x-component of the skin friction vector|
|SKIN_FRICTION-Y |PRIMITIVE |y-component of the skin friction vector|
|HEAT_FLUX |PRIMITIVE |Heat-flux |
|Y_PLUS |PRIMITIVE |Non-dim. wall distance (Y-Plus) |
|RES_PRESSURE |RESIDUAL |Residual of the pressure |
|RES_VELOCITY-X |RESIDUAL |Residual of the x-velocity component |
|RES_VELOCITY-Y |RESIDUAL |Residual of the y-velocity component |
|RES_TEMPERATURE |RESIDUAL |Residual of the temperature |
|LIMITER_PRESSURE |LIMITER |Limiter value of the pressure |
|LIMITER_VELOCITY-X |LIMITER |Limiter value of the x-velocity |
|LIMITER_VELOCITY-Y |LIMITER |Limiter value of the y-velocity |
|LIMITER_TEMPERATURE|LIMITER |Limiter value of the temperature |
|VORTICITY |VORTEX_IDENTIFICATION|Value of the vorticity |
|Q_CRITERION |VORTEX_IDENTIFICATION|Value of the Q-Criterion |
+---------------------------------------------------------------------------------+