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

incompatible dimensions for operation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 3, 2014, 05:56
Default incompatible dimensions for operation
  #1
New Member
 
Noman Shakir
Join Date: Feb 2014
Posts: 5
Rep Power: 12
shakirbsm is on a distinguished road
Dear foamers

I have wrote solver for a coupled system which is working fine for the cavity case but when I run this solver for a different 3D domain then i get this error which is quite strange for me.
Can somebody help?

--> FOAM FATAL ERROR:
incompatible dimensions for operation
[Un[0 1 -2 0 0 0 0] ] + [Un[0 2 -3 0 0 0 0] ]

From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&)
in file /home/nshakir/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude/fvMatrix.C at line 1314.
shakirbsm is offline   Reply With Quote

Old   November 3, 2014, 06:10
Default
  #2
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 27
RodriguezFatz will become famous soon enough
For some reason you try to add two values with different units and openFoam complains about that. Units are shown in the way [kg m s K kgmol A d], so you try to add "m/s^2" and "m^2/s^3".

Edit: You say your code worked in a different case. Then, it is most likely that one of your input / boundary condition files (k, nu, ...) has the wrong dimension at the top of the file!
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz is offline   Reply With Quote

Old   November 3, 2014, 06:29
Default
  #3
New Member
 
Noman Shakir
Join Date: Feb 2014
Posts: 5
Rep Power: 12
shakirbsm is on a distinguished road
Dear Philipp

The solver is running for cavity case and taking the same case but with different 3D domain and only one different condition that is on boundary (rotatingWallVelocity) I get this error. So the only reason for this error can be this condition but I don't know how to sort it out.

Regards
Noman
shakirbsm is offline   Reply With Quote

Old   November 3, 2014, 06:50
Default
  #4
New Member
 
Noman Shakir
Join Date: Feb 2014
Posts: 5
Rep Power: 12
shakirbsm is on a distinguished road
Dear Philipp

Sorry, it was my bad, I found the error in transportProperties, dimensions of a parameter were wrong. Problem solved now.
Thanks for pointing.

Regards
Noman
shakirbsm is offline   Reply With Quote

Reply


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 05:51
modified solver gives this message: "incompatible dimensions for operation" sajad6 OpenFOAM Programming & Development 3 October 30, 2014 08:02
Incompatible dimensions sfigato OpenFOAM Running, Solving & CFD 2 January 22, 2013 18:50
Incompatible dimensions.... Amiga500 OpenFOAM Running, Solving & CFD 13 June 1, 2012 08:20
incompatible dimensions for operation (rhoSimpleFoam) dongest OpenFOAM Running, Solving & CFD 3 July 19, 2011 05:51


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