HelioVillanueva / helio-3.0.x

OpenFOAM 3.0.x user directory with cases and developments
4 stars 6 forks source link

Compressible BUG: incompatible dimensions for operation #2

Open jiaqiwang969 opened 2 years ago

jiaqiwang969 commented 2 years ago

Hi, Sir

For compressible Case:

[26] --> FOAM FATAL ERROR: [26] incompatible dimensions for operation [intermittency[1 -3 -1 0 0 0 0] ] - [intermittency[0 0 -1 0 0 0 0] ]

 // Re_theta  equation
    tmp<fvScalarMatrix> ReEqn
    (
        fvm::ddt(alpha, rho, Ret_)
      + fvm::div(alphaRhoPhi, Ret_)
      - fvm::Sp(fvc::div(this->phi_), Ret_)
    ==
        Ptheta*Reo_
      - fvm::Sp(Ptheta, Ret_)
    );
jiaqiwang969 commented 2 years ago

I change it to:

    // Re_theta  equation
    tmp<fvScalarMatrix> ReEqn
    (
        fvm::ddt(alpha, rho, Ret_)
      + fvm::div(alphaRhoPhi, Ret_)
      - fvm::Sp(fvc::div(alphaRhoPhi), Ret_)
    ==
        Ptheta*Reo_*alpha*rho
      - fvm::Sp(Ptheta*alpha*rho, Ret_)
    );

It running.. Not sure it is corret or not?