|
[Sponsors] |
January 8, 2013, 13:18 |
Incompatible dimensions
|
#1 |
Senior Member
|
Hi,
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: --> FOAM FATAL ERROR: 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:rintStack(Foam::Ostream&) in "/home/ifas/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGccDPOpt/lib/libOpenFOAM.so" #1 Foam::error::abort() in "/home/ifas/OpenFOAM/OpenFOAM-2.1.1/platforms/linuxGccDPOpt/lib/libOpenFOAM.so" #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:perator+<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" #4 in "/home/ifas/OpenFOAM/ifas-2.1.1/platforms/linuxGccDPOpt/bin/thermalCavitatingFoam" #5 __libc_start_main in "/lib/libc.so.6" #6 at /home/abuild/rpmbuild/BUILD/glibc-2.15/csu/../sysdeps/i386/elf/start.S:122 Anyone can help me? Thanks Marco |
|
January 22, 2013, 18:31 |
|
#2 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
Marco,
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. |
|
January 22, 2013, 18:50 |
|
#3 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
Further to this discussion, it appears that either the first term should be divided by density, or the second one multiplied by it.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Incompatible dimensions for operation | pramodopen4foam | OpenFOAM | 10 | January 4, 2024 05:51 |
Incompatible dimensions.... | Amiga500 | OpenFOAM Running, Solving & CFD | 13 | June 1, 2012 08:20 |
Software that can stretch the overall dimensions of a mesh. | Robert_B | Main CFD Forum | 2 | January 27, 2012 08:39 |
incompatible dimensions for operation (rhoSimpleFoam) | dongest | OpenFOAM Running, Solving & CFD | 3 | July 19, 2011 05:51 |
Dimensions of laplacian in PISO loop | kumar2 | OpenFOAM Running, Solving & CFD | 2 | July 3, 2006 15:34 |