CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   rhoSimpleFoam and Spalart Allmaras (https://www.cfd-online.com/Forums/openfoam-solving/183693-rhosimplefoam-spalart-allmaras.html)

andreamc February 10, 2017 14:35

rhoSimpleFoam and Spalart Allmaras
 
Hello
I am trying to run a compressible case with rhoSimpleFoam in an OpenFoam v. 3.0.1 with the turbulence model Spalart Allmaras. However, I keep getting this error:

Selecting patchDistMethod meshWave


--> FOAM FATAL ERROR:
LHS and RHS of + have different dimensions
dimensions : [0 6 0 0 0 0 0] + [0 0 0 0 0 0 0]


From function operator+(const dimensionSet&, const dimensionSet&)
in file dimensionSet/dimensionSet.C at line 490.

I believe, the problem is somewhere in the BC or the transportProperties. Bur I do not know where or what's wrong. I've checked all my boundary conditions and I think they are all right. Regarding transport properties I've defined:

rho [1 -3 0 0 0 0 0] 1.23;

nu [0 2 -1 0 0 0 0] 1e-05;

Can anyone help me? What's the problem or where could it be?
Many thanks in advance

PeterShi February 16, 2017 06:21

Hi Andrea,

From your pop up error information, it must be something wrong with the dimension.

The dimensions of your given rho and nu are correct.

However, I suggest you check the dimensions of each variable to see whether they are correctly defined. Especially pay attention to the dimension of p, since you are using rhoSimpleFoam, now its dimension should be [1 -1 -2 0 0 0 0], rather than [0 2 -2 0 0 0 0] in the incompressible cases.

Hope this will help.

Cheers,
Peter

PeterShi February 18, 2017 01:52

Hi Andrea,

I am not sure whether you have included Phi in the "0" folder. If so, please check its dimension. In compressible flow, the correct dimension of Phi should be [1 0 -1 0 0 0 0], rather than [0 3 -1 0 0 0 0] in the incompressible case.

Best,
Peter


All times are GMT -4. The time now is 17:00.