CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

rhoSimpleFoam and Spalart Allmaras

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 10, 2017, 15:35
Default rhoSimpleFoam and Spalart Allmaras
  #1
New Member
 
Andrea Matiz C
Join Date: Feb 2017
Posts: 9
Rep Power: 4
andreamc is on a distinguished road
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
andreamc is offline   Reply With Quote

Old   February 16, 2017, 07:21
Default
  #2
Member
 
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 98
Rep Power: 4
PeterShi is on a distinguished road
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 is offline   Reply With Quote

Old   February 18, 2017, 02:52
Default
  #3
Member
 
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 98
Rep Power: 4
PeterShi is on a distinguished road
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
PeterShi is offline   Reply With Quote

Reply

Tags
compressible, dimensions, rhosimplefoam, spalart allamaras

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:36.