Navigation

    CFD中文网

    CFD中文网

    • Login
    • Search
    • 最新

    surfaceInterpolationScheme中纯虚函数的定义

    OpenFOAM
    2
    3
    1132
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 史
      史浩 讲师 last edited by

      在surfaceInterpolationScheme类中,weights() 函数为一纯虚函数。这个类在使用的时候,weights()这个函数在哪里定义的?
      0_1537520478212_f6c81163-a465-435e-88de-07a16bdb4a56-image.png

      让我们随波逐流

      1 Reply Last reply Reply Quote
      • 李东岳
        李东岳 管理员 last edited by

        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;
        

        线上CFD课程 7月1日报名截止 http://dyfluid.com/class.html
        CFD高性能服务器 http://dyfluid.com/servers.html

        1 Reply Last reply Reply Quote
        • 史
          史浩 讲师 last edited by

          多谢大佬。大体了解了OpenFOAM类的调用结构。在声明指针变量的时候,往往是基类指针,运行的时候,通过读取我们fvScheme文件中的设置,这些指针指向不同子类中的函数进行计算

          让我们随波逐流

          1 Reply Last reply Reply Quote
          • First post
            Last post

          CFD中文网 | 东岳流体 | 京ICP备15017992号-2
          论坛登录问题反馈可联系 li.dy@dyfluid.com