CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Incompatible dimensions (

sfigato January 8, 2013 13:18

Incompatible dimensions

During I add the temperature equation to cavitatingFoam I Got a problem! The new solver is compiled without any errors. Nevertheless, when I use it the terminal displays:

incompatible dimensions for operation
[T[0 0 -1 1 0 0 0] ] + [T[1 -3 -1 1 0 0 0] ]

From function checkMethod(const fvMatrix<Type>&, const fvMatrix<Type>&)
in file /home/ifas/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvMatrix.C at line 1316.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) in "/home/ifas/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGccDPOpt/lib/"
#1 Foam::error::abort() in "/home/ifas/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGccDPOpt/lib/"
#2 void Foam::checkMethod<double>(Foam::fvMatrix<double> const&, Foam::fvMatrix<double> const&, char const*) in "/home/ifas/OpenFOAM/ifas-2.1.1/platforms/linuxGccDPOpt/bin/thermalCavitatingFoam"
#3 Foam::tmp<Foam::fvMatrix<double> > Foam::operator+<double>(Foam::tmp<Foam::fvMatrix<d ouble> > const&, Foam::tmp<Foam::fvMatrix<double> > const&) in "/home/ifas/OpenFOAM/ifas-2.1.1/platforms/linuxGccDPOpt/bin/thermalCavitatingFoam"
in "/home/ifas/OpenFOAM/ifas-2.1.1/platforms/linuxGccDPOpt/bin/thermalCavitatingFoam"
#5 __libc_start_main in "/lib/"
at /home/abuild/rpmbuild/BUILD/glibc-2.15/csu/../sysdeps/i386/elf/start.S:122

Anyone can help me?

chegdan January 22, 2013 18:31


The error is telling you that you are attempting to add a term with the units kelvin per second to a term with a term with the units kilogram kelvin per meter cubed per second. Make sure your temperature equation units/dimensions are consistent throughout. For some help on the dimensions, look at Basic input/output file format.

mturcios777 January 22, 2013 18:50

Further to this discussion, it appears that either the first term should be divided by density, or the second one multiplied by it.

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