fixedGradient为何梯度和变量一个类型?
-
如题,参考https://www.openfoam.com/documentation/cpp-guide/html/classFoam_1_1fixedGradientFvPatchField.html#a1a4ebfb8aa4dc581e54081a12bfbd0d3
This boundary condition supplies a fixed gradient condition, such that the patch values are calculated using:
$$
xp=xc+∇(x)/Δ
$$
wherexp = patch values
xc = internal field values
∇(x) = gradient (user-specified)
Δ = inverse distance from patch face centre to cell centretemplate<class Type> class fixedGradientFvPatchField : public fvPatchField<Type> { // Private data Field<Type> gradient_; //...
速度fixedGradient的梯度还是矢量?要不就只能是法向梯度?