incompatible dimensions for operation
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. |
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! |
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 |
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 |
All times are GMT -4. The time now is 06:53. |