|
[Sponsors] |
February 10, 2017, 15:35 |
rhoSimpleFoam and Spalart Allmaras
|
#1 |
New Member
Andrea Matiz C
Join Date: Feb 2017
Posts: 10
Rep Power: 9 |
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 |
|
February 16, 2017, 07:21 |
|
#2 |
Senior Member
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9 |
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 |
|
February 18, 2017, 02:52 |
|
#3 |
Senior Member
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9 |
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 |
|
Tags |
compressible, dimensions, rhosimplefoam, spalart allamaras |
|
|