surfaceInterpolationScheme中纯虚函数的定义
-
在surfaceInterpolationScheme类中,weights() 函数为一纯虚函数。这个类在使用的时候,weights()这个函数在哪里定义的?
-
limitedSurfaceInterpolationScheme.C
,limitedSurfaceInterpolationScheme.C
//- Return the interpolation weighting factors for the given field, // by limiting the given weights with the given limiter tmp<surfaceScalarField> weights ( const GeometricField<Type, fvPatchField, volMesh>&, const surfaceScalarField& CDweights, tmp<surfaceScalarField> tLimiter ) const;
-
多谢大佬。大体了解了OpenFOAM类的调用结构。在声明指针变量的时候,往往是基类指针,运行的时候,通过读取我们fvScheme文件中的设置,这些指针指向不同子类中的函数进行计算
论坛登录问题反馈可联系 li.dy@dyfluid.com