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

incompatible dimension for operation means??

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 30, 2011, 04:04
Post incompatible dimension for operation means??
  #1
Senior Member
 
Tushar Chourushi
Join Date: Jul 2009
Location: IIT-Indore, India
Posts: 318
Blog Entries: 1
Rep Power: 9
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 Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
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: 6
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
 
Tushar Chourushi
Join Date: Jul 2009
Location: IIT-Indore, India
Posts: 318
Blog Entries: 1
Rep Power: 9
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
 
Tushar Chourushi
Join Date: Jul 2009
Location: IIT-Indore, India
Posts: 318
Blog Entries: 1
Rep Power: 9
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
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Incompatible fields for operation tehache OpenFOAM Running, Solving & CFD 4 April 7, 2010 06:48
Incompatible dimensions for operation pramodopen4foam OpenFOAM 8 October 15, 2009 05:00
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
Incompatible fields for operation divphi Ub vvqf OpenFOAM Running, Solving & CFD 3 November 22, 2005 18:55


All times are GMT -4. The time now is 05:58.