公式求助
-
@东岳 ,李老师,这个我改了之后还是会出现量纲不匹配
--> FOAM FATAL ERROR: [1] LHS and RHS of + have different dimensions dimensions : [0 2 -2 0 0 0 0] + [1 -1 -2 0 0 0 0] [1] [1] [1] From function Foam::dimensionSet Foam::operator+(const Foam::dimensionSet&, const Foam::dimensionSet&) [1] in file dimensionSet/dimensionSet.C at line 501. [1] FOAM parallel run aborting [1] [1] #0 Foam::error::printStack(Foam::Ostream&)
-
@东岳 李老师我按照这个编译,
../cfdemParticle/subModels/forceModel/forceSubModels/forceSubModel/forceSubModel.C: In member function ‘const volVectorField& Foam::forceSubModel::IBDragPerV(const volVectorField&, const volScalarField&) const’: ../cfdemParticle/subModels/forceModel/forceSubModels/forceSubModel/forceSubModel.C:572:101: error: no matching function for call to ‘Foam::dimensioned<double>::dimensioned(const Foam::dimensionSet&, double)’ IBDragPerV_ = fvc::laplacian(rhoField()*nuField(),U)-fvc::grad(p)*dimensionedScalar(dimDensity, 1.0);
这个错误。