编译错误,求指正



  • 编译以下语句时

    volVectorField gradAlpha(fvc::grad(alpha1_)):
    volScalarField mDot(this->mDot());
    volScalarField vmDot(mDot*gradAlpha);
    

    错误提示如下

    no matching function for call to Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >::tmp(Foam::tmp<Foam::Field<Foam::Vector<double> > >)
    

    各位大神有知道为什么的吗?



  • 你的gradAlpha矢量乘以mDot标量应该是个矢量,为何用volScalarField



  • @东岳 Thanks!


Log in to reply
 

CFD中文网 2016 - 2020 | 京ICP备15017992号-2