初始流速场流速分布不合理
-
我做的是三维多圆柱模拟,这是网格和初始流速(0.1s时刻)的分布图。
对于这个流速分布,我感觉很奇怪,初始流速场应该呈现连续的变化,而不会在初始时刻产生如此强烈的局部变化,有老师知道是什么原因吗?下面是我的U文件
internalField uniform (0 0 0); boundaryField { INLET { type codedFixedValue; value uniform (0 0 0); // 设置一个初始值 name inlet_log; codeOptions #{ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude #}; codeInclude #{ #include "fvCFD.H" #}; code #{ const fvPatch& boundaryPatch = patch(); const vectorField& Cf = boundaryPatch.Cf(); const scalar U_star = 0.004 ; const scalar ks = 0.00005; const scalar kappa = 0.41 ; vectorField& field = *this; forAll(Cf, faceI) { const scalar y = Cf[faceI].y(); field[faceI] = vector((U_star/kappa)*log(y/ks)+8.5*U_star,0,0); } #}; } OUTLET { type zeroGradient; } "(FRONT|BACK)" { type zeroGradient; } TOP { type slip; } "(CYLINDER|BOTTOM)" { type fixedValue; value uniform (0 0 0); }