@李东岳
帮李老师补充一下OpenFOAM里面average的实现,对于vol场要先插值成surface场
template<class Type> tmp<GeometricField<Type, fvPatchField, volMesh>> average ( const GeometricField<Type, fvPatchField, volMesh>& vtf ) { return fvc::average(linearInterpolate(vtf)); }所以|3|0|2|到average函数里面以后要先插值成
| 3 | 0 | 2 | 1.5 1再基于
$v_{celli}=\frac{\sum (|\bfS_f| v_f)}{\sum |\bfS_f|}$
得到中间网格的值为1.25