CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Error with dimensions (interFoam) (http://www.cfd-online.com/Forums/openfoam/106643-error-dimensions-interfoam.html)

Sagun September 4, 2012 10:31

Error with dimensions (interFoam)
 
Hello,

I am getting this error while trying to run my case files:

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


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

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#1 Foam::error::abort() in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#2 Foam::operator+(Foam::dimensionSet const&, Foam::dimensionSet const&) in "/opt/openfoam211/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#3
at interFoam.C:0
#4
in "/opt/openfoam211/platforms/linuxGccDPOpt/bin/interFoam"
#5 __libc_start_main in "/lib/i386-linux-gnu/libc.so.6"
#6
in "/opt/openfoam211/platforms/linuxGccDPOpt/bin/interFoam"


I think this has something to do with the dimensions of pressure (the ones which I have used are [0 2 -2 0 0 0 0]).

Any help will be much appreciated. :)

Bernhard September 4, 2012 10:44

Dimension of pressure in interFoam should be [1 -1 -2 0 0 0 0];

In incompressible and single phase solver, usually, p/rho is used instead of just p. You're trying to use the former one for interFoam, which is not correct.

Sagun September 4, 2012 11:29

Thank you!
 
Thank you so much. It worked!

But now I am getting time step continuity errors in my simulations. I just went through some of the old forums on the same and found out that they are related to the pressure solver tolerance. Typical values that I'm getting:

time step continuity errors : sum local = 6.68285e-06, global = -5.08031e-07, cumulative = -0.000199826


Is the cumulative value too big and a cause for concern? If yes, how can I fix it?

akidess September 4, 2012 11:49

Quote:

Originally Posted by Sagun (Post 380162)
I just went through some of the old forums on the same and found out that they are related to the pressure solver tolerance.

Quote:

Originally Posted by Sagun (Post 380162)
If yes, how can I fix it?

Did you try your own suggestion?

Sagun September 4, 2012 11:55

Hello!

No I haven't tried that yet since my simulations are still running. I figured that I should let it run atleast once and see what the results looks like.

But is the cumulative value too large and something to be worried about?


All times are GMT -4. The time now is 10:08.