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

incompatible dimension for operation means??

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 30, 2011, 04:04
Post incompatible dimension for operation means??
  #1
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 17
Tushar@cfd is on a distinguished road
Hello,

I made a new solver and ran it successfully without any error.


Afterwards, when I tried to run my case I got an error. What could be the reason behind this error???
Do I need to re-check my solver? Is it the error of solver?


Error is shown below:

Calculating face flux


Starting time loop
Time = 0.0005

Courant Number mean: 0 max: 0.0349808
diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0


incompatible dimensions for operation
[U[0 1 -2 0 0 0 0] ] - [convection(phiB,((2*DBU)*B))[1 -2 -2 0 0 0 0] ]#0 Foam::error:rintStack(Foam::Ostream&) in "/home/iitgn/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in "/home/iitgn/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libOpenFOAM.so"
#2 void Foam::checkMethod<Foam::Vector<double> >(Foam::fvMatrix<Foam::Vector<double> > const&, Foam:imensionedField<Foam::Vector<double>, Foam::volMesh> const&, char const*) in "/home/iitgn/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxGccDPOpt/plrFoam"
#3 Foam::tmp<Foam::fvMatrix<Foam::Vector<double> > > Foam:perator-<Foam::Vector<double> >(Foam::tmp<Foam::fvMatrix<Foam::Vector<double> > > const&, Foam::tmp<Foam::GeometricField<Foam::Vector<double >, Foam::fvPatchField, Foam::volMesh> > const&) in "/home/iitgn/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxGccDPOpt/plrFoam"
#4
in "/home/iitgn/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxGccDPOpt/plrFoam"
#5 __libc_start_main in "/lib/tls/i686/cmov/libc.so.6"
#6
in "/home/iitgn/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxGccDPOpt/plrFoam"


From function checkMethod(const fvMatrix<Type>&, const GeometricField<Type, fvPatchField, volMesh>&)
in file /home/iitgn/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMatrix.C at line 1219.

FOAM aborting

Aborted
Tushar@cfd is offline   Reply With Quote

Old   June 30, 2011, 04:43
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
openFOAM check the dimension of operator before execute it so look the dimension of ur equation!
nimasam is offline   Reply With Quote

Old   June 30, 2011, 04:54
Default
  #3
New Member
 
Joel Lehikoinen
Join Date: Jun 2011
Posts: 26
Rep Power: 14
joel.lehikoinen is on a distinguished road
Quote:
Originally Posted by Tushar_Mtechcfd View Post
Hello,

I made a new solver and ran it successfully without any error.
What do you mean by this? Do you mean that you compiled it without any errors, or did you actually run a case with it?

Quote:
Originally Posted by Tushar_Mtechcfd View Post
Afterwards, when I tried to run my case I got an error. What could be the reason behind this error???
Do I need to re-check my solver? Is it the error of solver?


Error is shown below:

Calculating face flux


Starting time loop
Time = 0.0005

Courant Number mean: 0 max: 0.0349808
diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0


incompatible dimensions for operation
[U[0 1 -2 0 0 0 0] ] - [convection(phiB,((2*DBU)*B))[1 -2 -2 0 0 0 0] ...
Looks to me that one of the terms should be multiplied or divided by density rho (the dimensions are off by kg/m^3). Either there is an error in the equation your solver is solving, in which case you should correct the equation and recompile your solver. The other possibility is that a field in your case has the wrong dimensions; the field in question being most probably the field phi. If you have a file called phi (it could come from you copying a 0/-directory of an existing case) in your <case>/0/ -directory, try deleting it and then rerunning the case. The dimensions of phi are different for incompressible and compressible cases.
joel.lehikoinen is offline   Reply With Quote

Old   June 30, 2011, 05:08
Default Hello Joel,
  #4
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 17
Tushar@cfd is on a distinguished road
"
Hello,

I made a new solver and ran it successfully without any error.
"

By the above line. I mean to say I did a successful compilation of the new solver that I wrote.

In the second part of the question

It looks to me the first mentioned suggestion is right. I wrote an equation in the solver from there this error continued. Anyways thanks a lot..
Tushar@cfd is offline   Reply With Quote

Old   June 30, 2011, 05:13
Post Hello nimasam,
  #5
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 17
Tushar@cfd is on a distinguished road
The problem actually came from the "dimension of operator" as you have mentioned. I rechecked my solver.

Thanks a lot....
Tushar@cfd is offline   Reply With Quote

Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Incompatible dimensions for operation pramodopen4foam OpenFOAM 10 January 4, 2024 04:51
Incompatible fields for operation divphi Ub vvqf OpenFOAM Running, Solving & CFD 4 April 4, 2018 03:28
Incompatible fields for operation tehache OpenFOAM Running, Solving & CFD 5 January 30, 2018 15:32
Incompatible fields for operation su_junwei OpenFOAM Pre-Processing 1 October 15, 2008 08:34
TurbFoam simpleFoam incompatible fields for operation braennstroem OpenFOAM Running, Solving & CFD 0 June 19, 2008 10:43


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