|
[Sponsors] |
November 3, 2014, 05:56 |
incompatible dimensions for operation
|
#1 |
New Member
Noman Shakir
Join Date: Feb 2014
Posts: 5
Rep Power: 12 |
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. |
|
November 3, 2014, 06:10 |
|
#2 |
Senior Member
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 27 |
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. |
|
November 3, 2014, 06:29 |
|
#3 |
New Member
Noman Shakir
Join Date: Feb 2014
Posts: 5
Rep Power: 12 |
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 |
|
November 3, 2014, 06:50 |
|
#4 |
New Member
Noman Shakir
Join Date: Feb 2014
Posts: 5
Rep Power: 12 |
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 |
|
|
|
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 |