CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

Incompatible dimensions

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   January 8, 2013, 13:18
Default Incompatible dimensions
Senior Member
sfigato's Avatar
Marco Longhitano
Join Date: Jan 2013
Location: Aachen
Posts: 103
Rep Power: 6
sfigato is on a distinguished road
Send a message via Skype™ to sfigato

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:rintStack(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: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"
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?
sfigato is offline   Reply With Quote

Old   January 22, 2013, 18:31
Senior Member
chegdan's Avatar
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 613
Rep Power: 22
chegdan will become famous soon enoughchegdan will become famous soon enough

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.
chegdan is offline   Reply With Quote

Old   January 22, 2013, 18:50
Senior Member
mturcios777's Avatar
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 735
Rep Power: 21
mturcios777 will become famous soon enough
Further to this discussion, it appears that either the first term should be divided by density, or the second one multiplied by it.
mturcios777 is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Incompatible dimensions.... Amiga500 OpenFOAM Running, Solving & CFD 13 June 1, 2012 07: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 04:51
Incompatible dimensions for operation pramodopen4foam OpenFOAM 8 October 15, 2009 05:00
Dimensions of laplacian in PISO loop kumar2 OpenFOAM Running, Solving & CFD 2 July 3, 2006 14:34

All times are GMT -4. The time now is 11:48.